summaryrefslogtreecommitdiff
path: root/sys/dev/ic/bwi.c
AgeCommit message (Collapse)Author
2010-05-19BUS_DMA_ZERO instead of alloc, map, bzero.Owain Ainsworth
ok krw@
2009-09-13M_DUP_PKTHDR() define -> m_dup_pkthdr() function to properly dealKenneth R Westerback
with m_tag_copy_chain() failures. Use m_defrag() to eliminate hand rolled defragging of mbufs and some uses of M_DUP_PKTHDR(). Original diff from thib@, claudio@'s feedback integrated by me. Tests kevlo@ claudio@, "reads ok" blambert@ ok thib@ claudio@, "m_defrag() bits ok" kettenis@
2009-08-02timeout_add -> timeout_add_msecBret Lambert
ok mglocker@ jsg@
2009-07-25Fix crash in bwi on armish by properly aligning a 32-bit value. NotKenneth R Westerback
to say it works great yet. Might fix bwi on any other alignment sensitive archs we have. My original hack generalized and made sane by jsg@. Didn't affect operation on my macppc. Problem first noted by ian@ a long time ago. ok jsg@ (whose tree is currently unavailable to commit from)
2009-07-19Include 0x4402 in the bbp id mapping table used on olderJonathan Gray
devices. http://bcm-specs.sipsolutions.net/BackPlane agrees.
2009-06-02change a sizeof() to nitems() because the array subtype is a short.Theo de Raadt
change all the N() macros to our favorite new macro nitems() found by Parfait ok oga guenther
2009-05-24declare a variable at the start of bwi_dma_free() insteadJonathan Gray
of several times throughout the function, in and outside of a loop.
2009-01-21Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).Alexander Yurchenko
No functional changes. ok krw@ miod@
2009-01-07declare bwi_modtype enum before it is used in function prototypes.Jonathan Gray
2008-11-26dont have bpf.h expose the kernel ticks variable wherever it is includeing.David Gwynne
it is very confusing like this. ok deraadt@ canacar@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-08-27another IEEE80211_RADIOTAP_F_FCS candidate.Damien Bergamini
2008-08-27override net80211's ic_node_alloc function to allocate a fullDamien Bergamini
bwi_node structure (containing the rate control state). because bwi(4) does not support HostAP or IBSS modes there is no need to maintain a per-node rate control state, so we could as well store it in bwi_softc but that will allow for future improvements. pointed out by Taylor R Campbell (campbell AT mumble DOT net) on tech@
2008-08-27introduce new IEEE80211_STA_ONLY kernel option that can be set toDamien Bergamini
remove IBSS and HostAP support from net80211 and 802.11 drivers. it can be used to shrink RAMDISK kernels for instance (like what was done for wi(4)). it also has the benefit of highlighting what is specific to IBSS and HostAP modes in the code. the cost is that we now have two code paths to maintain.
2008-08-22a ; in a bad place; dragonfly; ok mglockerTheo de Raadt
2008-07-21instead of passing rx tstamp and rssi to the ieee80211_input function,Damien Bergamini
pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix.
2008-06-11Don't get the address of the txstats pointers when doing bzero,Jonathan Gray
just use the actual pointers. Debugged into the early hours of the morning with todd, without being able to use a keyboard with ddb. Fixes a panic seen on his powerbook.
2008-04-16Kernel implementation of the 4-way handshake and group-keyDamien Bergamini
handshake protocols (both supplicant and authenticator state machines) as defined in the IEEE 802.11i standard. Software implementation of the TKIP (Temporal Key Integrity Protocol) and CCMP (CTR with CBC-MAC Protocol) protocols. This diff doesn't implement any of the 802.1X authentication protocols and thus only PSK authentication (using pre-shared keys) is currently supported. In concrete terms, this adds support for WPA-PSK and WPA2-PSK protocols, both in station and hostap modes. The following drivers are marked as WPA-capable and should work: bwi(4), malo(4), ral(4), iwn(4), wpi(4), ural(4), rum(4), upgt(4), and zyd(4) The following options have been added to ifconfig(8): wpa, wpapsk, wpaprotos, wpaakms, wpaciphers, wpagroupcipher wpa-psk(8) can be used to generate keys from passphrases. tested by many@ ok deraadt@
2008-02-25Make bwi compile in debug mode again.Marcus Glocker
2008-02-25Sync up with DragonFlyBSD driver. Please read their commit messageMarcus Glocker
for details: http://leaf.dragonflybsd.org/mailarchive/commits/2008-02/msg00165.html Tested and OK brad@, kettenis@
2008-02-16Zap KKASSERT porting macro and use KASSERT instead.Marcus Glocker
2008-02-16Count output packets.Marcus Glocker
2008-02-16Replace bwi_rate2plcp() with ieee80211_rate2plcp().Marcus Glocker
2008-02-16Fix spacing / comments.Marcus Glocker
2008-02-16While importing the driver a lot of printf's have been converted toMarcus Glocker
DPRINTF's by mistake. Fix this so we can see fatal errors without beeing in DEBUG mode.
2008-02-16Report rssi and rate in rx radio tap.Marcus Glocker
From the DragonFlyBSD driver.
2008-02-16Better support for 11b mode.Marcus Glocker
From the DragonFlyBSD driver.
2008-02-16Remove some double prototype definitions.Marcus Glocker
2008-02-16Always print device name in front of debug messages.Marcus Glocker
2007-11-17- Add more LED support, like activity blinking (though just supportingMarcus Glocker
some devices yet). - Calculate RX rate which can be used later in bpf_mtap(). Diff ported from DragonFlyBSD, tested by some.
2007-10-18Add some first LEDs support. Tested on my cardbus Linksys WPC54G Ver 3.Marcus Glocker
Diff ported from DragonFlyBSD
2007-10-04Since we know the firmware load works, merge the single firmware filesMarcus Glocker
together to one single, finally. You need to bump the firmware package to version 1.3! OK jsg@
2007-10-01Spacing.Marcus Glocker
2007-10-01Fix `bogus xmit rate setup' panic, which mostly happened while associatingMarcus Glocker
to an 11b AP due to not correct initialized tx rates.
2007-10-01remove rate_fb variable as it always gets set to the same valueJonathan Gray
as rate anyway.
2007-10-01Print the MAC address.Jonathan Gray
2007-10-01Disable default debug setting, make tx power map printing debug only.Jonathan Gray
2007-10-01Use uint_* consistent.Marcus Glocker
Agreed with jsg@
2007-09-30Spacing.Marcus Glocker
2007-09-30Don't count interrupts with state "not of interest".Marcus Glocker
From Oleg Safiullin. OK jsg@
2007-09-30BWI_BBP_ATTEN is a 16-bit register, so use CSR_WRITE_2 to access it.Mark Kettenis
Fixes unaligned access on strict-alignment architectures. ok mglocker@
2007-09-29Fix two panic's on macppc. Allows me first network communication overMarcus Glocker
my PowerBook G4 internal BCM4306 device.
2007-09-27Spacing.Marcus Glocker
2007-09-27Add automatic rate control (AMRR).Marcus Glocker
2007-09-27Spacing.Marcus Glocker
2007-09-27Kill __BIT* macros.Marcus Glocker
Help and OK jsg@
2007-09-24Add radio tap support. We still need to calculate correct RX rate andMarcus Glocker
RX signal strength.
2007-09-23Fix page fault kernel crash when changing media and device is up.Marcus Glocker
2007-09-23Add missing device name printf arguments for firmware load error output.Marcus Glocker
2007-09-23More debug ouput cleanup.Marcus Glocker