summaryrefslogtreecommitdiffstats
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* add missing return that broke WPA1+2 supportsam2009-01-111-0/+1
| | | | Submitted by: "Jared Go" <jared@hobnob.com>
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-0818-20/+1024
| | | | | | | | | | | | | | | 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
* only mark an infrastructure node to require an associd for xmit; fixes adhocsam2009-01-071-1/+4
| | | | mode sta's that join an existing ibss
* mark discovered neighbors QoS capable if they advertise wmesam2008-12-311-0/+4
|
* follow prevailing stylesam2008-12-313-3/+3
|
* convert MALLOC/FREE to malloc/freesam2008-12-1814-51/+51
|
* fix commentsam2008-12-161-1/+1
| | | | Submitted by: Daan Vreeken
* Fix ucastkey teardown for drivers that plumb clear keys or similarsam2008-12-151-1/+1
| | | | | | | | | | (e.g. ath): we must check the key index and not whether the key points at a cipher other than "undef". This looks like it's been broken for a while. Might be worth adding an explicit clear cipher at some point though this would require changes to the usage of IEEE80211_KEY_UNDEFINED. PR: 125906
* remove extraneous ';'sam2008-12-151-1/+1
|
* Fix definition of IEEE80211_CHAN_MAX; it was defined as 255 butsam2008-12-159-33/+20
| | | | | | | really was meant to be 256. Adjust usage accordingly and replace bogus usage of this value in checking IEEE channel #'s. NB: this causes an ABI change; ifconfig must be recompiled
* Replace adhoc checks in ieee80211_start with a per-node flag thatsam2008-12-155-17/+19
| | | | | | | | 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
* Rather than using hidden includes (with cicular dependencies),bz2008-12-021-0/+1
| | | | | | | | | | | directly include only the header files needed. This reduces the unneeded spamming of various headers into lots of files. For now, this leaves us with very few modules including vnet.h and thus needing to depend on opt_route.h. Reviewed by: brooks, gnn, des, zec, imp Sponsored by: The FreeBSD Foundation
* correct sortingsam2008-11-231-1/+1
|
* convert calls to IFQ_HANDOFF to if_transmitkmacy2008-11-223-3/+3
|
* Fix checks for fast frames negotiation. ni_ath_flags holds thesam2008-10-304-4/+4
| | | | | | | | | | | | | | capabilities reported by the ap. These need to be cross-checked against the local configuration in the vap. Previously we were only checking the ap capabilities which meant that if an ap reported it was ff-capable but we were not setup to use them we'd try to do ff aggregation and drop the frame. There are a number of problems to be fixed here but applying this fix immediately as the problem causes all traffic to stop (and has not workaround). Reported by: Ashish Shukla
* o use the new association callback to notify the driver when joining a bsssam2008-10-272-2/+11
| | | | | | | in sta and adhoc modes; this should've been done forever ago as most all drivers use this hook to set per-station transmit parameters such as for tx rate control o adjust drivers to remove explicit calls to the driver newassoc method
* o re-enable a lock assertsam2008-10-261-5/+5
| | | | o while here reformat a comment to sync w/ other repot's
* Fix joining an 11b BSS: scanning is normally done using 11g channelssam2008-10-261-17/+72
| | | | | | | | | | | | | | (unless explicitly locked to mode 11b) so when we join the bss the channel attached to the scan cache entry may need to be demoted. o demote to 11b if the ap is advertising 11b rates o skip the ap if it's 11b but we're locked to 11g (could consider this advisory but for now treat it as mandatory) o handle an odd edge case, if there is a fixed transmit rate for 11g then the rate check against the 11b ap will fail, try to demote to 11b and retry the rate check Reviewed by: sephe, thompsa
* New ap-side power save implementation; the main change is to allow driverssam2008-10-268-113/+285
| | | | | to queue frames previously encapsulated on a separate high priority list that is dispatched before the unencapsulated frames (to preserve order).
* move decl up before first usesam2008-10-261-1/+1
|
* introduce M_ENCAP flag to mark packets encapsulated w/ an 802.11 headersam2008-10-262-1/+8
|
* 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-264-30/+45
| | | | | | | | | 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
|
* Sync BAR frame handling with out of tree work:sam2008-10-253-56/+190
| | | | | | | | | | | | | o correct BAR frame construction for AMPDU o retransmit BAR frames until ACK'd or timeout (use tunables to control behaviour, default is very aggressive) o defer seq# update until BAR frame is ACK'd o add BAR response handling callback for driver to interpose and push new state to device or push pending aggregates While here also: o add backpointer to node in the per-tid tx aggregation data structure o move ampdu tx state setup/teardown work to separate functions
* set erp flag and tx parameter state when joining a bss; this allowssam2008-10-251-0/+3
| | | | drivers to use ni_txparms
* honor IEEE80211_CLONE_NOBEACONS for type of vap, not just a sta mode vapsam2008-10-251-5/+3
|
* improve inactivity handling debug supportsam2008-10-251-5/+29
|
* use a private mgt frame recv handler for ahdemo mode instead of an inlinesam2008-10-251-4/+24
| | | | | test in the adhoc mode rx path so classes derived from ahdemo mode can override the default behaviour
* expand captured ie's before calling match_bss so they can potentiallysam2008-10-251-1/+1
| | | | be used in the process
* change ieee80211_sta_join to take an explicit channel instead ofsam2008-10-254-7/+18
| | | | | using the value in the scan parameters; this will be used to fix issues with 11b operation
* o add support for ifconfig wlanX mode foosam2008-10-251-62/+8
| | | | | | o yank useless code for setting fixed rate through media opts: this mechanism didn't scale to HT rates and couldn't handle multiple bands; fixed tx rates are set with the IEEE80211_IOC_TXPARAMS ioctl
* add debug msgssam2008-10-251-5/+28
|
* fix associd check for adhoc modesam2008-10-251-18/+13
| | | | Reviewed by: jhay
* ignore IEEE80211_ELEMID_PWRCNSTR when parsing beacon/probe response framessam2008-10-251-0/+1
| | | | | to avoid counting it as an unknown elemid (we often beacon this so it shows up as a "false positive")
* add 1/2 and 1/4 channel flags to IEEE80211_CHAN_ALL so that operationssam2008-10-251-0/+1
| | | | like ieee80211_find_channel are more useful
* add/improve debug msgssam2008-10-253-4/+18
|
* Revert the removal of the MALLOC and FREE macros from the net80211 code.des2008-10-2314-51/+56
| | | | Requested by: sam
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-2314-56/+51
| | | | MFC after: 3 months
* Step 1.5 of importing the network stack virtualization infrastructurezec2008-10-021-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the vimage project, as per plan established at devsummit 08/08: http://wiki.freebsd.org/Image/Notes200808DevSummit Introduce INIT_VNET_*() initializer macros, VNET_FOREACH() iterator macros, and CURVNET_SET() context setting macros, all currently resolving to NOPs. Prepare for virtualization of selected SYSCTL objects by introducing a family of SYSCTL_V_*() macros, currently resolving to their global counterparts, i.e. SYSCTL_V_INT() == SYSCTL_INT(). Move selected #defines from sys/sys/vimage.h to newly introduced header files specific to virtualized subsystems (sys/net/vnet.h, sys/netinet/vinet.h etc.). All the changes are verified to have zero functional impact at this point in time by doing MD5 comparision between pre- and post-change object files(*). (*) netipsec/keysock.c did not validate depending on compile time options. Implemented by: julian, bz, brooks, zec Reviewed by: julian, bz, brooks, kris, rwatson, ... Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* guard against adhoc_pick_channel returning a NULL channel; this cansam2008-09-271-3/+6
| | | | happen after a scan cache flush (e.g. in response to ifconfig wlan bssid -)
* must do a deep copy of mcast packets as they can be modified after dispatchsam2008-09-251-1/+1
| | | | Submitted by: "Jared Go" <jared@hobnob.com>
* Use db_printsym to lookup and print the function pointers.thompsa2008-09-251-40/+46
|
* cleanup bss node setup; syncs w/ p4 state that's been in use for monthssam2008-09-221-8/+10
|
* cleanup after mergesam2008-09-221-1/+0
|
* Fix handling of shortgi: use the local configuration (and implicitlysam2008-09-223-2/+25
| | | | | device capabilities) to decide whether to use short gi. Drivers inspect ni_flags to decide whether to send a frame w/ short sgi.
* RIFS support; needs driver callback for dynamic state changesam2008-09-228-8/+54
|
* MIMO power save support; still needs callbacks for notifying driverssam2008-09-218-6/+88
| | | | of dynamic state change in station mode.
OpenPOWER on IntegriCloud