summaryrefslogtreecommitdiffstats
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* Fix adhoc mode to scan all available channels for a bss to joinsam2008-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
* - Correctly handle ALTQ in ieee80211_deliver_data()sephe2008-02-031-2/+6
| | | | | | | - Add comment from sam that ALTQ probably does not work well with WME PR: kern/119548 Approved by: sam (mentor)
* add opaque pointer to tx ampdu state for driverssam2008-02-021-0/+1
| | | | MFC after: 3 days
* o correct typo that broke check when handling addba responsesam2008-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
* update channel flag defs to match _ieee80211.h so cpp doesn't complainsam2007-12-131-16/+13
| | | | | | about redefinitions MFC after: 1 week
* Add padding for anticipated functionalitykmacy2007-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
* Be more careful handling off-channel frames: if the driver (wrongly)sam2007-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
* correct WMM packet classification:sam2007-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
* o correct re-association indicator dispatched in node join eventsam2007-11-231-3/+3
| | | | | | o remove misleading "reassociation" msg on sta join MFC after: 3 days
* correct sta mode setup: adopt ap's ampdu density and max ampdu sizesam2007-11-231-2/+8
| | | | | | instead of using local settings MFC after: 3 days
* parse htcap ie early so ampdu density and max rx size are availablesam2007-11-231-1/+3
| | | | | | for constructing the AssocReq frame MFC after: 3 days
* correct TID_TO_WME_AC handling of BEsam2007-11-231-1/+1
| | | | MFC after: 3 days
* use the DSPARMS ie to find the home channel for off-channel framessam2007-11-231-11/+12
| | | | | Reviewed by: thompsa MFC after: 1 week
* add ieee80211_find_channel_byieee to lookup a channel by ieee channel #sam2007-11-232-0/+28
| | | | | Reviewed by: thompsa MFC after: 1 week
* update default wme parameters to latest WiFi test planssam2007-11-231-24/+24
| | | | | Reviewed by: Allan Lim MFC after: 3 days
* correct MIMO power save action frame format;sam2007-11-141-2/+8
| | | | | | this one really is from the D2.04 spec MFC after: 3 days
* correct termination check doing amsdu de-aggregationsam2007-11-081-4/+3
| | | | MFC after: 3 days
* Correct handling of off-channel frames:sam2007-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
* sync 11n support with vap code base; many changes based on interopsam2007-11-0216-272/+1036
| | | | | | testing with all major vendors MFC after: 1 week
* correct channel flags returned by IEEE80211_IOC_STA_INFO; we needsam2007-11-021-1/+1
| | | | | | to return all 32-bits to identify stations operating with HT MFC after: 1 week
* don't try to re-associate after a parameter change, too many ap'ssam2007-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
* silence complaint about not loading the wlan_scan_monitor module;sam2007-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
* invalidate ic_prevchan when constructing a new channel listsam2007-09-181-0/+1
| | | | Approved by: re (blanket wireless)
* honor IEEE80211_C_TXFRAG; drivers should never get fragmented packetssam2007-09-181-0/+1
| | | | | | unless they indicate they're able to handle them Approved by: re (blanket wireless)
* tag mgmt and null data frames w/ a WME priority so drivers can assumesam2007-09-181-0/+6
| | | | | | only data frames require classification Approved by: re (blanket wireless)
* mgmt subtype 13 is actionsam2007-09-181-1/+1
| | | | | Approved by: re (blanket wireless) MFC after: 2 weeks
* Close longstanding race dropping inactive stations; grab a referencesam2007-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
* Safeguard count of stations in power save; don't touch it unless we'resam2007-09-181-1/+2
| | | | | | | operating in a mode where it should be maintained. Approved by: re (blanket wireless) MFC after: 2 weeks
* skip IEEE80211_MODE_AUTO in announcing supported rates in ieee80211_announce;sam2007-09-181-1/+2
| | | | | | there won't be any Approved by: re (blanket wireless)
* o add IEEE80211_RATE_MCS to use instead of naked constant (for marking MCS)sam2007-09-183-3/+8
| | | | | | | o correct ieee80211_rate2media handling of MCS o correct rate HT announcements for 11n devices Approved by: re (blanket wireless)
* o move IEEE80211_NONQOS_TID into a public locationsam2007-09-183-5/+10
| | | | | | o add IEEE80211_TID_SIZE and replace all the nake constants Approved by: re (blanket wireless)
* remove IFM_IEEE80211_HT40PLUS and IFM_IEEE80211_HT40MINUS; theysam2007-09-181-4/+0
| | | | | | never got used so nuke 'em before we branch Approved by: re (blanket wireless)
* Update beacon handling to sync w/ vap code base:sam2007-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)
* correct netband skip check in constructing a country iesam2007-09-171-1/+1
| | | | Approved by: re (blanket net80211)
* oops, add missing bit from last changesam2007-09-061-0/+2
| | | | Approved by: re (blanket wireless)
* Fixup sta inactivity handling:sam2007-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)
* o add 802.11 state machine states for DFS and client-side power savesam2007-09-052-3/+21
| | | | | | | o fixup drivers to ignore new states Reviewed by: avatar (?) Approved by: re (blanket wireless)
* Update channel definition:sam2007-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)
* Miscellaneous fixups to 802.11 defs:sam2007-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)
* o add M_WEP mbuf flag so drivers can mark frames that are decrypted by thesam2007-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)
* Off-by-one bug in country ie construction, which will make HOSTAP send outsephe2007-08-261-1/+3
| | | | | | | malformatted beacons. Reviewed by: sam Approved by: re (bmah), sam (mentor)
* Fix following nits:sephe2007-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)
* drop frames marked for encryption when no key is availablesam2007-08-241-0/+1
| | | | | | Reviewed by: avatar Approved by: re (kensmith) Obtained from: madwifi
* In add_channel(), search 11g channels if mode is AUTO and correspondingsephe2007-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)
* revert handling of ssid and bssid to be manadatory instead of advisorysam2007-07-121-33/+40
| | | | | | Prodded by: Kevin Gerry Reviewed by: thompsa, sephe Approved by: re (kensmith)
* Move the XCHANNEL radiotap definition to a free slot. NetBSD defined somethompsa2007-07-011-1/+2
| | | | | | | additional values causing a conflict. Submitted by: sam Approved by: re (kensmith)
* Fix scanning issues since the new net80211 code went inthompsa2007-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)
* Change the channel number in the scan results struct to be a pointer to thethompsa2007-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)
* Correct msecs_to_ticks macro. This fixes problems when hz is not thesam2007-06-251-1/+1
| | | | | | | default 1000 setting. Reviewed by: thompsa, rpaulo Approved by: re (bmah)
* Correct state machine handling of AUTH -> AUTH transitions that passsam2007-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.
OpenPOWER on IntegriCloud