summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_output.c
Commit message (Collapse)AuthorAgeFilesLines
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-081-2/+24
| | | | | | | | | | | | | | | o add net80211 support for a tdma vap that is built on top of the existing adhoc-demo support o add tdma scheduling of frame transmission to the ath driver; it's conceivable other devices might be capable of this too in which case they can make use of the 802.11 protocol additions etc. o add minor bits to user tools that need to know: ifconfig to setup and configure, new statistics in athstats, and new debug mask bits While the architecture can support >2 slots in a TDMA BSS the current design is intended (and tested) for only 2 slots. Sponsored by: Intel
* follow prevailing stylesam2008-12-311-1/+1
|
* Replace adhoc checks in ieee80211_start with a per-node flag thatsam2008-12-151-3/+1
| | | | | | | | indicates if an association id is required before outbound traffic is permitted. This cleans up the previous change that broke mcast traffic "to the stack" in ap mode as a side effect. Reviewed by: sephe, thompsa, weongyo
* convert calls to IFQ_HANDOFF to if_transmitkmacy2008-11-221-1/+1
|
* New ap-side power save implementation; the main change is to allow driverssam2008-10-261-1/+1
| | | | | to queue frames previously encapsulated on a separate high priority list that is dispatched before the unencapsulated frames (to preserve order).
* introduce M_ENCAP flag to mark packets encapsulated w/ an 802.11 headersam2008-10-261-0/+6
|
* fix comment that belonged w/ previous commitsam2008-10-261-3/+2
|
* change ieee80211_send_probereq to supply raw xmit parameters so it cansam2008-10-261-2/+19
| | | | control how frames are handled by the driver
* change ieee80211_send_nulldata to send a QoS Null Data frame to asam2008-10-261-14/+51
| | | | | | QoS-enabled station; this makes inactivity handling follow the spec as previously it would probe inactive stations w/ a Null Data (no QoS) data frame
* o change ieee80211_mgmt_output to take a raw xmit parameters block sosam2008-10-261-26/+33
| | | | | | | | | the net80211 layer has complete control over the handling of mgt frames (in particular, the ac, tx rate, and retry count); this also allows us to purge the M_LINK0 flag that was attached to mbufs to mark them as needing encryption for shared key auth o change ieee80211_send_setup to take a tid parameter so it can be used to setup QoS frames
* fix old merge botch that causes gaps in the tx seq# space for QoS framessam2008-10-261-1/+0
|
* fix associd check for adhoc modesam2008-10-251-18/+13
| | | | Reviewed by: jhay
* Cleanup AMPDU handling:sam2008-09-211-3/+23
| | | | | | | | | | | | | | | | | | | | | | For receive: o explicitly tag rx frames w/ M_AMPDU instead of passing frames through the reorder processing according to the node having HT and the frame being QoS data o relax ieee80211_ampdu_reorder asserts to allow any frame to be passed in, unsuitable frames are returned to the caller for normal processing; this permits drivers that cannot inspect the PLCP to mark all data frames as potential ampdu candidates with only a small penalty o add M_AMPDU_MPDU to identify frames resubmitted from the reorder q For transmit: o tag aggregation candidates with M_AMPDU_MPDU o fix the QoS ack policy set in ampdu subframes; we only support immediate BA streams which should be marked for "normal ack" to get implicit block ack behaviour; interestingly certain vendor parts BA'd frames with the 11e BA ack policy set o do not assign a sequence # to aggregation candidates; this must be done when frames are submitted for transmit (NB: this can/will be handled better when aggregation is pulled up to net80211)
* reorder RSN/WPA2 ie in beacon and probe response frames to complysam2008-07-071-13/+13
| | | | | | with IEEE802.11-2007 spec Submitted by: Chris Zimmermann
* Split s/w crypt/mic attributes to allow future hackery; this changesam2008-05-281-1/+1
| | | | should be a noop.
* Multi-bss (aka vap) support for 802.11 devices.sam2008-04-201-738/+1288
| | | | | | | | | | | 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)
* Add padding for anticipated functionalitykmacy2007-12-071-1/+1
| | | | | | | | | | | | - vimage - TOE - multiq - host rtentry caching Rename spare used by 80211 to if_llsoftc Reviewed by: rwatson, gnn MFC after: 1 day
* 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
* sync 11n support with vap code base; many changes based on interopsam2007-11-021-37/+55
| | | | | | testing with all major vendors MFC after: 1 week
* 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)
* Update beacon handling to sync w/ vap code base:sam2007-09-171-22/+20
| | | | | | | | | | | | | | | | | | | 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)
* drop frames marked for encryption when no key is availablesam2007-08-241-0/+1
| | | | | | Reviewed by: avatar Approved by: re (kensmith) Obtained from: madwifi
* Update 802.11 wireless support:sam2007-06-111-193/+657
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o major overhaul of the way channels are handled: channels are now fully enumerated and uniquely identify the operating characteristics; these changes are visible to user applications which require changes o make scanning support independent of the state machine to enable background scanning and roaming o move scanning support into loadable modules based on the operating mode to enable different policies and reduce the memory footprint on systems w/ constrained resources o add background scanning in station mode (no support for adhoc/ibss mode yet) o significantly speedup sta mode scanning with a variety of techniques o add roaming support when background scanning is supported; for now we use a simple algorithm to trigger a roam: we threshold the rssi and tx rate, if either drops too low we try to roam to a new ap o add tx fragmentation support o add first cut at 802.11n support: this code works with forthcoming drivers but is incomplete; it's included now to establish a baseline for other drivers to be developed and for user applications o adjust max_linkhdr et. al. to reflect 802.11 requirements; this eliminates prepending mbufs for traffic generated locally o add support for Atheros protocol extensions; mainly the fast frames encapsulation (note this can be used with any card that can tx+rx large frames correctly) o add sta support for ap's that beacon both WPA1+2 support o change all data types from bsd-style to posix-style o propagate noise floor data from drivers to net80211 and on to user apps o correct various issues in the sta mode state machine related to handling authentication and association failures o enable the addition of sta mode power save support for drivers that need net80211 support (not in this commit) o remove old WI compatibility ioctls (wicontrol is officially dead) o change the data structures returned for get sta info and get scan results so future additions will not break user apps o fixed tx rate is now maintained internally as an ieee rate and not an index into the rate set; this needs to be extended to deal with multi-mode operation o add extended channel specifications to radiotap to enable 11n sniffing Drivers: o ath: add support for bg scanning, tx fragmentation, fast frames, dynamic turbo (lightly tested), 11n (sniffing only and needs new hal) o awi: compile tested only o ndis: lightly tested o ipw: lightly tested o iwi: add support for bg scanning (well tested but may have some rough edges) o ral, ural, rum: add suppoort for bg scanning, calibrate rssi data o wi: lightly tested This work is based on contributions by Atheros, kmacy, sephe, thompsa, mlaier, kevlo, and others. Much of the scanning work was supported by Atheros. The 11n work was supported by Marvell.
* copyright updates:sam2007-06-061-7/+1
| | | | | | | o update to include 2007 o switch back to a 2-clause bsd-only license Reviewed by: onoe
* keep tx/rx seq #'s for non-QoS traffic separate from QoS; stationssam2007-03-111-4/+4
| | | | | | | aren't supposed mix traffic but if they did frames might be mis-handled Obtained from: Atheros MFC after: 2 weeks
* add IEEE80211_KEY_UNDEFINED and use it instead of local defssam2007-03-111-5/+5
| | | | Obtained from: netbsd
* First cut at half/quarter-rate 11a channel support (e.g. for usesam2006-12-271-4/+4
| | | | | | | | | | | | | | | | | | | | in the Public Safety Band): o add channel flags to identify half/quarter-rate operation o add rate sets (need to check spec on 4Mb/s in 1/4 rate) o add if_media definitions for new rates o split net80211 channel setup out into ieee80211_chan_init o fixup ieee80211_mhz2ieee and ieee80211_ieee2mhz to understand half/quarter rate channels: note we temporarily use a nonstandard/hack numbering that avoids overlap with 2.4G channels because we don't (yet) have enough state to identify and/or map overlapping channel sets o fixup ieee80211_ifmedia_init so it can be called post attach and will recalculate the channel list and associated state; this enables changing channel-related state like the regulatory domain after attach (will be needed for 802.11d support too) o add ieee80211_get_suprates to return a reference to the supported rate set for a given channel o add 3, 4.5, and 27 MB/s tx rates to rate <-> media conversion routines o const-poison channel arg to ieee80211_chan2mode
* back out use of LLC_SNAPFRAMELEN now that sizeof(struct llc) isn'tsam2006-12-011-3/+3
| | | | padded on arm
* sizeof(struct llc) includes padding on arm; use LLC_SNAPFRAMELEN for nowsam2006-12-011-3/+3
| | | | | Submitted by: jhay MFC after: 2 weeks
* Move ethernet VLAN tags from mtags to its own mbuf packet header fieldandre2006-09-171-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | m_pkthdr.ether_vlan. The presence of the M_VLANTAG flag on the mbuf signifies the presence and validity of its content. Drivers that support hardware VLAN tag stripping fill in the received VLAN tag (containing both vlan and priority information) into the ether_vtag mbuf packet header field: m->m_pkthdr.ether_vtag = vlan_id; /* ntohs()? */ m->m_flags |= M_VLANTAG; to mark the packet m with the specified VLAN tag. On output the driver should check the mbuf for the M_VLANTAG flag to see if a VLAN tag is present and valid: if (m->m_flags & M_VLANTAG) { ... = m->m_pkthdr.ether_vtag; /* htons()? */ ... pass tag to hardware ... } VLAN tags are stored in host byte order. Byte swapping may be necessary. (Note: This driver conversion was mechanic and did not add or remove any byte swapping in the drivers.) Remove zone_mtag_vlan UMA zone and MTAG_VLAN definition. No more tag memory allocation have to be done. Reviewed by: thompsa, yar Sponsored by: TCP/IP Optimization Fundraise 2005
* add per-sta ucast/mcast statssam2006-08-101-0/+4
| | | | MFC after: 1 week
* add support for 802.11 packet injection via bpfsam2006-07-261-0/+124
| | | | | | Together with: Andrea Bittau <a.bittau@cs.ucl.ac.uk> Reviewed by: arch@ MFC after: 1 month
* when doing s/w crypto make sure work is done w/ a writable mbuf chain;sam2006-03-151-0/+15
| | | | | | | | | this corrects problems with drivers that rely on the host to do crypto (iwi, ipw, ral, ural, wi (hostap), awi) Hard work by: luigi, mlaier Reviewed by: luigi, mlaier MFC after: 1 week
* consolidate calculation of capabilities iesam2006-02-251-47/+34
| | | | | Reviewed by: avatar MFC after: 2 weeks
* set the mgt frame tx timer before dispatching the frame to thesam2006-02-081-8/+10
| | | | | | | | | driver; this closes a race where a response could be processed before the timer was started and cause a RUN->SCAN state change when operating in station mode Reviewed by: avatar, dyoung MFC after: 1 week
* update erp information element in the beacon frame to reflectsam2006-01-021-4/+16
| | | | | | | | changes in the bss Reviewed by: avatar Obtained from: atheros MFC after: 2 weeks
* correct handling of dtim for periods > 1sam2005-12-051-1/+1
| | | | Obtained from: madwifi
* Retire MT_HEADER mbuf type and change its users to use MT_DATA.andre2005-11-021-1/+1
| | | | | | | | | | | | Having an additional MT_HEADER mbuf type is superfluous and redundant as nothing depends on it. It only adds a layer of confusion. The distinction between header mbuf's and data mbuf's is solely done through the m->m_flags M_PKTHDR flag. Non-native code is not changed in this commit. For compatibility MT_HEADER is mapped to MT_DATA. Sponsored by: TCP/IP Optimization Fundraise 2005
* Clarify/fix handling of the current channel:sam2005-08-101-10/+10
| | | | | | | | | | | | | | | | | | | o add ic_curchan and use it uniformly for specifying the current channel instead of overloading ic->ic_bss->ni_chan (or in some drivers ic_ibss_chan) o add ieee80211_scanparams structure to encapsulate scanning-related state captured for rx frames o move rx beacon+probe response frame handling into separate routines o change beacon+probe response handling to treat the scan table more like a scan cache--look for an existing entry before adding a new one; this combined with ic_curchan use corrects handling of stations that were previously found at a different channel o move adhoc neighbor discovery by beacon+probe response frames to a new ieee80211_add_neighbor routine Reviewed by: avatar Tested by: avatar, Michal Mertl MFC after: 2 weeks
* Cleanup beacon/listen interval handling:sam2005-08-081-3/+3
| | | | | | | | | | | | | | | | | o separate configured beacon interval from listen interval; this avoids potential use of one value for the other (e.g. setting powersavesleep to 0 clobbers the beacon interval used in hostap or ibss mode) o bounds check the beacon interval received in probe response and beacon frames and drop frames with bogus settings; not clear if we should instead clamp the value as any alteration would result in mismatched sta+ap configuration and probably be more confusing (don't want to log to the console but perhaps ok with rate limiting) o while here up max beacon interval to reflect WiFi standard Noticed by: Martin <nakal@nurfuerspam.de> MFC after: 1 week
* close a race between reclaiming a node when a station is inactivesam2005-07-311-1/+6
| | | | | | and sending the null data frame used to probe inactive stations MFC after: 5 days
* split xmit of probe request frame out into a separate routine thatsam2005-07-221-33/+85
| | | | | | | takes explicit parameters; this will be needed when scanning is decoupled from the state machine to do bg scanning MFC after: 3 days
* split 802.11 frame xmit setup code into ieee80211_send_setupsam2005-07-221-36/+72
| | | | MFC after: 3 days
* simplify tim callback apisam2005-07-221-1/+1
| | | | MFC after: 3 days
* simplify ieee80211_node_authorize and ieee80211_node_unauthorize api'ssam2005-07-221-1/+1
| | | | MFC after: 3 days
* simplifiy ieee80211_send_nulldata apisam2005-07-221-1/+2
| | | | MFC after: 3 days
* Fix handling of data frames queued for a station in power save mode:sam2005-07-061-0/+2
| | | | | | | | | | don't mark the MORE_DATA bit when taking it off the ps queue, there's no 802.11 header then; we must wait to do this at encap time so mark the mbuf instead. Reviewed by: avatar Approved by: re (scottl) Obtained from: Atheros
* mark stations authorized during recv processing instead of doing itsam2005-06-101-8/+0
| | | | | as a side effect of sending an auth success frame; sending mgmt frames should not have side effects
* WPA/802.11i interoperability fixes:sam2005-06-071-3/+2
| | | | | | | | o only include capabilities word in the WPA ie when non-zero and not preauth o always include the capabilities in the RSN ie Obtained from: Atheros
OpenPOWER on IntegriCloud