summaryrefslogtreecommitdiffstats
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* Change the calling convention for ic_node_alloc to deal withsam2008-06-072-5/+7
| | | | | | | | | | | | some longstanding issues: o pass the vap since it's now the "coin of the realm" and required to do things like set initial tx parameters in private node state for use prior to association o pass the mac address as cards that maintain outboard station tables require this to create an entry (e.g. in ibss mode) o remove the node table reference, we only have one node table and it's unlikely this will change so this is not needed to find the com structure
* Split ieee80211_notify_erp into locked and unlocked variantssam2008-06-071-4/+12
| | | | | | | and use the locked version to handle the hostap input path case where the com lock is not already held. Noticed by: Jared Go
* Fix node cleanup issues when the last reference is held bysam2008-06-071-16/+27
| | | | | the driver (e.g. in the tx q); ni_vap may not be valid, we must carefully check before using it.
* correct code returned in AsssocResp; the previous code is spec'd for usesam2008-06-071-2/+1
| | | | | | | only in deauth+disassoc frames Submitted by: Chris Zimmermann MFC after: 1 month
* Add ieee80211_crypto_reload_keys to push all keys knownsam2008-05-282-0/+44
| | | | | to net80211 back into the device; intended for use on resume by devices that lose the contents of their h/w key table.
* Add a mac address to the key definition as otherwise we lose thesam2008-05-283-13/+12
| | | | | | | | | | address specified in the ioctl and for drivers that need the address to locate a key (e.g. for delete). Note this changes net80211-private api's but not the driver callback; may want to change that in the future. Reviewed by: sephe, thompsa
* Split s/w crypt/mic attributes to allow future hackery; this changesam2008-05-285-12/+18
| | | | should be a noop.
* missing piece of last commit; add RESUME flag bit definitionsam2008-05-281-4/+4
|
* Add ieee80211_suspend_all and ieee80211_resume_all forsam2008-05-283-0/+43
| | | | brute force suspend/resume handling of vaps.
* Don't override the txpower cap installed by ieee80211_alloc_node;sam2008-05-281-3/+0
| | | | we use ic_txpowlimit (for now) to initialize all new sta entries.
* Simplify some contorted logic that wrongly left ISCAN_DISCARD setsam2008-05-281-15/+13
| | | | | | in certain cases causing the current ap to be lost from the scan cache. Obtained from: Atheros (original bug)
* Revise lock name handling:sam2008-05-283-20/+28
| | | | | | | | o construct a name for the com lock as done for other locks o pass the device name to IEEE80211_LOCK_INIT so the mtx name is constructed as foo_com_lock o introduce *_LOCK_OBJ macro's to hide the lock contents and minimize redundant code
* special-case broadcast probe request in ieee80211_find_rxnode; we needsam2008-05-221-16/+30
| | | | | | | | to spam all vaps and this won't happen if the frame comes from a station that is associated to an ap vap (and so has an entry in the table) Noticed by: Jared Go Reviewed by: thompsa
* ignore sw beacon miss while scanning, just reset the beacon count and timersam2008-05-221-1/+18
| | | | Reviewed by: thompsa
* no need to stop the sw beacon miss timer; it's not used with adhoc or wdssam2008-05-222-4/+0
|
* declare ieee80211_phymode_name with an array sizesam2008-05-121-1/+1
|
* Update PLCP<->rate mapping support:sam2008-05-122-13/+18
| | | | | | | | | | o correct mapping of CCK rates to PLCP; was using nonstandard Ralink values which just happened to also be used by Zydas (so went unnoticed) o change ieee80211_plcp2rate api to take a phy type instead of a flag that indicates ofdm/!ofdm o update drivers to match (restore per-driver code to map rate->PLCP) Reviewed by: sephe, weongyo, thompsa
* Minor cleanup of vap create work:sam2008-05-125-20/+31
| | | | | | | | | | | | | o add IEEE80211_C_STA capability to indicate sta mode is supported (was previously assumed) and mark drivers as capable o add ieee80211_opcap array to map an opmode to the equivalent capability bit o move IEEE80211_C_OPMODE definition to where capabilities are defined so it's clear it should be kept in sync (on future additions) o check device capabilities in clone create before trying to create a vap; this makes driver checks unneeded o make error codes return on failed clone request unique o temporarily add console printfs on clone request failures to aid in debugging; these will move under DIAGNOSTIC or similar before release
* we have a DFS capability now so enable checksam2008-05-111-3/+0
|
* use c99-style initialization for ieee80211_phymode_namesam2008-05-111-11/+11
|
* add DFS capability bit and use it to auto-enable DFS supportsam2008-05-113-3/+5
|
* use the current left edge of the BA window when forming ADDBA requestsam2008-05-111-3/+4
| | | | so an existing session is re-established with the correct seq#
* add PLCP service bit definitionssam2008-05-111-0/+5
|
* move inline keyword to silence compiler complaintssam2008-05-111-3/+3
|
* fix build w/ IEEE80211_DEBUG_REFCNT enabledsam2008-05-011-1/+1
|
* re-enable WME by default; after a full day of testing on iwi I see nosam2008-05-011-3/+0
| | | | issues and the only way we'll identify them is for people to use it
* disable default enabling of WME until we resolve driver regressionssam2008-04-301-0/+3
|
* hookup the parent device's if_input and if_output to stub routinessam2008-04-251-0/+19
| | | | | | | to catch unintended use (one might argue about if_output but it's behaviour is ill-defined without vap context) Noticed by: Paul B. Mahol
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-2052-8515/+18015
| | | | | | | | | | | Note this includes changes to all drivers and moves some device firmware loading to use firmware(9) and a separate module (e.g. ral). Also there no longer are separate wlan_scan* modules; this functionality is now bundled into the wlan module. Supported by: Hobnob and Marvell Reviewed by: many Obtained from: Atheros (some bits)
* 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
OpenPOWER on IntegriCloud