summaryrefslogtreecommitdiff
path: root/sys/dev/ic/pgt.c
AgeCommit message (Collapse)Author
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
2010-03-29Initialize various uninitialized variables. Found by jsg@ via Clang.Kenneth R Westerback
Feedback from miod@ and kettenis@. ok beck@
2009-12-30remove dead assignments and newly created unused variables.Charles Longeau
found by LLVM/Clang Static Analyzer. ok claudio@ mglocker@
2009-11-12memory leak found by parfait in an ioctl path, ok damien jsgTheo de Raadt
2009-11-06cosmetic. claudio@ okFederico G. Schwindt
2009-01-26Add some initial HT bits (not enabled yet) based on 802.11n Draft 7.01:Damien Bergamini
- implement A-MPDU frames buffering and reordering - implement A-MSDU decapsulation - process/send ADDBA Request, ADDBA Response and DELBA action frames - process Block Ack Request control frames (including MTBAR) - implement PBAC support (Protected Block Ack) - add some incomplete HT Capabilities and HT Operation IEs parsing Add more Management Frame Protection bits based on 802.11w Draft 7.0: - implement SA Query procedure (both AP and STA) - cleanup BIP Fix some bugs: - fix check for WEP key length that otherwise caused a stack smash in ieee80211_wep_encrypt (pointed out by Xavier Santolaria on macppc) - properly stop EAPOL timeout: fixes a panic that occured in HostAP mode when turning the interface down while a 4-way handshake is in progress (pointed out by Doughertys) Did some code cleanup too. The HT bits are currently not compiled in (IEEE80211_NO_HT is defined) because they won't be ready until after the next release and I didn't want to grow the kernel or to inadvertently introduce new bugs. They are here such that other people can look at the code. Notice that I had to add an extra parameter to ic_send_mgmt() for action frames, that is why there are small changes in drivers defining their own ic_send_mgmt() handler. Sorry for the not very incremental diff but this has been sitting in my tree for too long now.
2008-08-29move code to support Frequency-Hopping spread spectrum (FHSS) PHYsDamien Bergamini
to the Attic. nothing uses it in the tree and it is very unlikely that something will use it one day. the only driver supporting FHSS PHYs in the tree is ray(4) and it does not use net80211.
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-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-07-01Do not use MINCLSIZE to figure out if a single mbuf or a mcluster should beClaudio Jeker
used. Instead use MHLEN and MLEN acordingly because MINCLSIZE is bigger than a single mbuf now. OK mglocker@
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-03-13Do not increment the input packet counter in these drivers asBrad Smith
ieee80211_input() already does this. Mentioned by Peter Philipp in PR 5248. ok claudio@ mglocker@
2007-12-30Only do pullups when necessary, m_pullup() always prepends an mbufClaudio Jeker
which is very bad if it is not necessary as it causes scrary mbuf fragmentation. tested and OK mglocker@
2007-09-18Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-08-28unify firmware load failure messages; ok mglockerTheo de Raadt
2007-07-18replace the ieee80211_wepkey structure with a more generic ieee80211_keyDamien Bergamini
one that can be used with other ciphers than WEP.
2007-05-22Pass string to printf instead of struct that contains string.Ray Lai
OK tedu@ and miod@.
2007-02-14Add SIOCADDMULTI and SIOCDELMULTI ioctl handlers. Without them IPv6 doesClaudio Jeker
not work. Issue reported by brad@ OK mglocker@
2006-12-30Don't use M_DUP_PKTHDR() on static mbufs. M_DUP_PKTHDR() copies the mtagClaudio Jeker
chain and so a later MFREE() is needed to free the chain again. Just initialize a minimal mbuf header for bpf_mtap(). See earlier rum(4) commit for the full story. OK mglocker@ Sounds good jsg@
2006-12-07Fix some channel tweaks; e.g. solves a bug which sets the channel to 40Marcus Glocker
when switching into hostap mode. ok claudio@
2006-11-25remove a comment that only applies to freebsd.Damien Bergamini
2006-10-13Fix kernel page fault when the device gets detached after the firmwareMarcus Glocker
failed to load. Spotted by bernd@, aaron@ ok claudio@
2006-10-11more ether_sprintf()'sDamien Bergamini
ok claudio@
2006-10-11fix a potential null deref and a memleak (both in error path).Damien Bergamini
ok mglocker@
2006-10-11Use correct arguments in printfs. OK mglocker@Claudio Jeker
2006-10-09Kill unused debug flag.Marcus Glocker
2006-10-09Change historical leftovers (tsleep "pftres" to "pgtres").Marcus Glocker
2006-10-09Add powerhooks. Tested with a Netgear WG511v1 on my X40.Marcus Glocker
ok claudio@
2006-10-06Fix cardbus support for pgt(4). Tested with a Netgear WG511.Marcus Glocker
ok claudio@
2006-10-05Zap more dead dot1x code.Marcus Glocker
ok claudio@
2006-10-05Zap dead dot1x routine pgt_update_hw_from_nodes(). There is some moreMarcus Glocker
dot1x stuff spreaded around which needs to be removed. ok claudio@
2006-10-05Remove obsolete ioctl command.Marcus Glocker
ok claudio@
2006-10-05Zap dead routine pgt_80211_set().Marcus Glocker
ok claudio@
2006-10-04Merge pgt_start_body() into pgt_start().Marcus Glocker
ok claudio@
2006-10-04Mini cleanup.Marcus Glocker
ok claudio@
2006-10-03Do not use IF_PREPEND. Instead use IFQ_POLL and IFQ_DEQUEUE. This shouldClaudio Jeker
"fix" altq. OK mglocker@
2006-10-02Zap unused MLME routines. Probably they were just used in WPA mode.Marcus Glocker
ok claudio@
2006-10-02Simplify device attachment. From brad@ with a tiny correction.Marcus Glocker
2006-10-01Make monitor mode work by prepending the right kind headers and fixing theClaudio Jeker
channel selection code. Joint work with mglocker@, OK mglocker@
2006-10-01Get rid of this strange pgt_data_frame which is unused. Nice side-effect isClaudio Jeker
an easier to read pgt_datarx_completion. OK mglocker@
2006-10-01Kill some #if 0 code. OK mglocker@Claudio Jeker
2006-10-01Set ic_max_rssi to 255 the rssi value returned by the card is a u_int8_tClaudio Jeker
and mglocker@ and I both have seen values up to 240. OK mglocker@
2006-09-27- do not bother printing the attach error message from the attach hookBrad Smith
if pgt_attach() fails. - remove pgt_disable/pgt_reboot from the pgt_attach error path, just return for now. ok mglocker@
2006-09-26Start to get HostAP mode working for pgt(4). Works at the first try,Marcus Glocker
but surely needs more testing and some more modifications.
2006-09-23In pgt_media_status() also DPRINTF if the rate == 0.Marcus Glocker
2006-09-23Update media state correctly.Marcus Glocker
ok claudio@
2006-09-19add missing sys/device.h.Brad Smith
ok mglocker@
2006-09-16Don't panic if firmware files are not in place. Ja ja ja ja claudio@.Marcus Glocker
ok deraadt@
2006-09-16Bring pgt(4) in a working state. Much work also done by claudio@.Marcus Glocker
ok deraadt@
2006-08-31Start to get interface attach working.Marcus Glocker
ok deraadt@