aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* Fix adhoc mode to scan all available channels for a bss to joinSam Leffler2008-02-291-42/+63
| | | | | | | | | | | | | while still restricting auto-channel select to only those channels permitted by regulatory constraints (sorta, we're still missing the checks to honor radar and noadhoc status on channels). This somehow got lost in the initial merge of the revised scanning code. Reviewed by: jhay MFC after: 2 weeks Notes: svn path=/head/; revision=176653
* - Correctly handle ALTQ in ieee80211_deliver_data()Sepherosa Ziehau2008-02-031-2/+6
| | | | | | | | | | - Add comment from sam that ALTQ probably does not work well with WME PR: kern/119548 Approved by: sam (mentor) Notes: svn path=/head/; revision=175939
* add opaque pointer to tx ampdu state for driversSam Leffler2008-02-021-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=175880
* o correct typo that broke check when handling addba responseSam Leffler2008-02-011-1/+2
| | | | | | | | | | o add a comment about the ht rates being for 20MHz channels w/ long GI; needs a separate fix after more thought MFC after: 3 days Notes: svn path=/head/; revision=175877
* update channel flag defs to match _ieee80211.h so cpp doesn't complainSam Leffler2007-12-131-16/+13
| | | | | | | | | about redefinitions MFC after: 1 week Notes: svn path=/head/; revision=174568
* Add padding for anticipated functionalityKip Macy2007-12-072-3/+3
| | | | | | | | | | | | | | | - vimage - TOE - multiq - host rtentry caching Rename spare used by 80211 to if_llsoftc Reviewed by: rwatson, gnn MFC after: 1 day Notes: svn path=/head/; revision=174388
* Be more careful handling off-channel frames: if the driver (wrongly)Sam Leffler2007-11-261-3/+4
| | | | | | | | | | | | | | sends frames up the stack after changing the current channel then the lookup by ieee channel number may fail leaving a null ptr in se_chan; if this happens fallback to the channel recorded when the frame is processed (curchan). Since the frame doesn't contribute to scan results for the sta this is acceptable. Reviewed by: thompsa MFC after: 3 days Notes: svn path=/head/; revision=173956
* correct WMM packet classification:Sam Leffler2007-11-231-40/+9
| | | | | | | | | | o use TID_TO_WME_AC on vlan tag priority o ignore ECN bits in DSCP when mapping IP TOS and use TID_TO_WME_AC MFC after: 3 days Notes: svn path=/head/; revision=173867
* o correct re-association indicator dispatched in node join eventSam Leffler2007-11-231-3/+3
| | | | | | | | | o remove misleading "reassociation" msg on sta join MFC after: 3 days Notes: svn path=/head/; revision=173866
* correct sta mode setup: adopt ap's ampdu density and max ampdu sizeSam Leffler2007-11-231-2/+8
| | | | | | | | | instead of using local settings MFC after: 3 days Notes: svn path=/head/; revision=173865
* parse htcap ie early so ampdu density and max rx size are availableSam Leffler2007-11-231-1/+3
| | | | | | | | | for constructing the AssocReq frame MFC after: 3 days Notes: svn path=/head/; revision=173864
* correct TID_TO_WME_AC handling of BESam Leffler2007-11-231-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173863
* use the DSPARMS ie to find the home channel for off-channel framesSam Leffler2007-11-231-11/+12
| | | | | | | | Reviewed by: thompsa MFC after: 1 week Notes: svn path=/head/; revision=173862
* add ieee80211_find_channel_byieee to lookup a channel by ieee channel #Sam Leffler2007-11-232-0/+28
| | | | | | | | Reviewed by: thompsa MFC after: 1 week Notes: svn path=/head/; revision=173861
* update default wme parameters to latest WiFi test plansSam Leffler2007-11-231-24/+24
| | | | | | | | Reviewed by: Allan Lim MFC after: 3 days Notes: svn path=/head/; revision=173860
* correct MIMO power save action frame format;Sam Leffler2007-11-141-2/+8
| | | | | | | | | this one really is from the D2.04 spec MFC after: 3 days Notes: svn path=/head/; revision=173618
* correct termination check doing amsdu de-aggregationSam Leffler2007-11-081-4/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=173462
* Correct handling of off-channel frames:Sam Leffler2007-11-051-12/+37
| | | | | | | | | | | | | | | | | | o do not override the home channel recorded for the sta when the frame is received off-channel; this fixes a problem where we might think the sta was operating on the channel the frame was received on causing association requests to be ignored/rejected (likely cause of kern/99036) o don't include rssi of off-channel frames in the avg rssi used to select a bss; this gives us a better estimate of the signal we will see for the station when on-channel PR: kern/99036 Found by: Yubin Gong Reviewed by: sephe MFC after: 1 week Notes: svn path=/head/; revision=173368
* sync 11n support with vap code base; many changes based on interopSam Leffler2007-11-0216-272/+1036
| | | | | | | | | testing with all major vendors MFC after: 1 week Notes: svn path=/head/; revision=173273
* correct channel flags returned by IEEE80211_IOC_STA_INFO; we needSam Leffler2007-11-021-1/+1
| | | | | | | | | to return all 32-bits to identify stations operating with HT MFC after: 1 week Notes: svn path=/head/; revision=173272
* don't try to re-associate after a parameter change, too many ap'sSam Leffler2007-11-021-11/+1
| | | | | | | | | | don't do this right; instead go to the scan cache so we pass through auth state (if the cache is warm we can do this w/o an actual scan) MFC after: 1 week Notes: svn path=/head/; revision=173271
* silence complaint about not loading the wlan_scan_monitor module;Sam Leffler2007-10-241-1/+2
| | | | | | | | | | | it does not exist and is not needed as monitor mode operation has always required setting the current channel Reviewed by: thompsa MFC after: 1 week Notes: svn path=/head/; revision=172931
* invalidate ic_prevchan when constructing a new channel listSam Leffler2007-09-181-0/+1
| | | | | | | Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172233
* honor IEEE80211_C_TXFRAG; drivers should never get fragmented packetsSam Leffler2007-09-181-0/+1
| | | | | | | | | unless they indicate they're able to handle them Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172232
* tag mgmt and null data frames w/ a WME priority so drivers can assumeSam Leffler2007-09-181-0/+6
| | | | | | | | | only data frames require classification Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172231
* mgmt subtype 13 is actionSam Leffler2007-09-181-1/+1
| | | | | | | | Approved by: re (blanket wireless) MFC after: 2 weeks Notes: svn path=/head/; revision=172230
* Close longstanding race dropping inactive stations; grab a referenceSam Leffler2007-09-181-0/+2
| | | | | | | | | | | to the node before starting the work, otherwise the node may go away before a reference is made in ieee80211_send_mgmt. Approved by: re (blanket wireless) Obtained from: Atheros Notes: svn path=/head/; revision=172229
* Safeguard count of stations in power save; don't touch it unless we'reSam Leffler2007-09-181-1/+2
| | | | | | | | | | operating in a mode where it should be maintained. Approved by: re (blanket wireless) MFC after: 2 weeks Notes: svn path=/head/; revision=172228
* skip IEEE80211_MODE_AUTO in announcing supported rates in ieee80211_announce;Sam Leffler2007-09-181-1/+2
| | | | | | | | | there won't be any Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172227
* o add IEEE80211_RATE_MCS to use instead of naked constant (for marking MCS)Sam Leffler2007-09-183-3/+8
| | | | | | | | | | o correct ieee80211_rate2media handling of MCS o correct rate HT announcements for 11n devices Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172226
* o move IEEE80211_NONQOS_TID into a public locationSam Leffler2007-09-183-5/+10
| | | | | | | | | o add IEEE80211_TID_SIZE and replace all the nake constants Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172225
* remove IFM_IEEE80211_HT40PLUS and IFM_IEEE80211_HT40MINUS; theySam Leffler2007-09-181-4/+0
| | | | | | | | | never got used so nuke 'em before we branch Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172223
* Update beacon handling to sync w/ vap code base:Sam Leffler2007-09-179-79/+207
| | | | | | | | | | | | | | | | | | | | | | o add driver callback to handle notification of beacon changes; this is required for devices that manage beacon frames themselves (devices must override the default handler which does nothing) o move beacon update-related flags from ieee80211com to the beacon offsets storage (or handle however a driver wants) o expand beacon offsets structure with members needed for 11h/dfs and appie's o change calling convention for ieee80211_beacon_alloc and ieee80211_beacon_update o add overlapping bss support for 11g; requires driver to pass beacon frames from overlapping bss up to net80211 which is not presently done by any driver o move HT beacon contents update to a routine in the HT code area Reviewed by: avatar, thompsa, sephe Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172211
* correct netband skip check in constructing a country ieSam Leffler2007-09-171-1/+1
| | | | | | | Approved by: re (blanket net80211) Notes: svn path=/head/; revision=172204
* oops, add missing bit from last changeSam Leffler2007-09-061-0/+2
| | | | | | | Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172063
* Fixup sta inactivity handling:Sam Leffler2007-09-064-6/+24
| | | | | | | | | | | | | | | o reset ni_inact when ni_inact_reload is changed so we're assured a valid setting o never let ni_inact go negative o add a knob to disable hostap sta idle handling (e.g. so it can be done by a user application) o remove bogus reload on associate Reviewed by: avatar Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172062
* o add 802.11 state machine states for DFS and client-side power saveSam Leffler2007-09-052-3/+21
| | | | | | | | | | o fixup drivers to ignore new states Reviewed by: avatar (?) Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172058
* Update channel definition:Sam Leffler2007-09-051-16/+40
| | | | | | | | | | | | | o add ic_extieee to hold the HT40 extension channel number o add ic_state to track dynamic channel state for DFS o add flags to mark regulatory channel requirements o add state defs for DFS/radar support Reviewed by: avatar Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172056
* Miscellaneous fixups to 802.11 defs:Sam Leffler2007-09-053-39/+64
| | | | | | | | | | | | | | | | o update 11n definitions to D2.0 spec o add IEEE80211_CAPINFO_SPECTRUM_MGMT for DFS support o add CSA ie definition for DFS support o purge some unused definitions o correct 802.11 reason and status codes o correct reason code returned when a sta tries to associate to an ap operating with WPA/RSN but without a WPA/RSN ie Reviewed by: thompsa, avatar Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172055
* o add M_WEP mbuf flag so drivers can mark frames that are decrypted by theSam Leffler2007-09-052-1/+10
| | | | | | | | | | | device and have had the crypto bits stripped from the 802.11 header o strip mbuf flags in the rx path before passing up the stack Reviewed by: thompsa, sephe, avatar Approved by: re (blanket wireless) Notes: svn path=/head/; revision=172054
* Off-by-one bug in country ie construction, which will make HOSTAP send outSepherosa Ziehau2007-08-261-1/+3
| | | | | | | | | | malformatted beacons. Reviewed by: sam Approved by: re (bmah), sam (mentor) Notes: svn path=/head/; revision=171985
* Fix following nits:Sepherosa Ziehau2007-08-261-1/+2
| | | | | | | | | | | - Per ieee80211com sysctl ctx leakage on detach - getmgtframe incorrectly adjusts mbuf.m_data Reviewed by: sam Approved by: re (bmah), sam (mentor) Notes: svn path=/head/; revision=171984
* drop frames marked for encryption when no key is availableSam Leffler2007-08-241-0/+1
| | | | | | | | | Reviewed by: avatar Approved by: re (kensmith) Obtained from: madwifi Notes: svn path=/head/; revision=171950
* In add_channel(), search 11g channels if mode is AUTO and correspondingSepherosa Ziehau2007-07-201-5/+11
| | | | | | | | | | | | | 11b channel is not found, e.g. Atheros 5211. Reported by: matteo Problem outlined by: thompsa Reviewed by: sam, thompsa Approved by: re (kensmith), sam (mentor) Tested by: matteo (an early version) Notes: svn path=/head/; revision=171519
* revert handling of ssid and bssid to be manadatory instead of advisorySam Leffler2007-07-121-33/+40
| | | | | | | | | Prodded by: Kevin Gerry Reviewed by: thompsa, sephe Approved by: re (kensmith) Notes: svn path=/head/; revision=171409
* Move the XCHANNEL radiotap definition to a free slot. NetBSD defined someAndrew Thompson2007-07-011-1/+2
| | | | | | | | | | additional values causing a conflict. Submitted by: sam Approved by: re (kensmith) Notes: svn path=/head/; revision=171127
* Fix scanning issues since the new net80211 code went inAndrew Thompson2007-06-302-10/+14
| | | | | | | | | | | | | | | - provide dummy routines for ic_scan_curchan and ic_scan_mindwell, we do not support those operations. - add ieee80211_scan_done() to tell the scanning module that all channels have been scanned. - pass IEEE80211_S_SCAN state off to net80211 so it can initiate scanning - fix overflow in the rates array - scale the rate value passed back from the firmware scan to the units that net80211 uses. Submitted by: Token Reviewed by: sam, avatar Approved by: re (kensmith) Notes: svn path=/head/; revision=171125
* Change the channel number in the scan results struct to be a pointer to theAndrew Thompson2007-06-305-10/+13
| | | | | | | | | | | | | | | operating channel and use this in the scan cache rather than directly using ic_curchan. Some firmware cards can only do a full scan and so ic_curchan does not have the correct value. Also add IEEE80211_CHAN2IEEE to directly dereference ic_ieee from the channel to be used in the fast path. Reviewed by: sam, sephe Approved by: re (kensmith) Notes: svn path=/head/; revision=171124
* Correct msecs_to_ticks macro. This fixes problems when hz is not theSam Leffler2007-06-251-1/+1
| | | | | | | | | | default 1000 setting. Reviewed by: thompsa, rpaulo Approved by: re (bmah) Notes: svn path=/head/; revision=171022
* Correct state machine handling of AUTH -> AUTH transitions that passSam Leffler2007-06-161-0/+1
| | | | | | | | | | | through wpa_supplcant. If a sta is deauth'd (e.g. due to inactivity) with roaming mode set to manual then a subsequent MLME assoc request will be incorrectly handled and the station will never reauthenticate. To fix this interpret a reason code of zero as sufficient to send an auth request frame. Notes: svn path=/head/; revision=170817