summaryrefslogtreecommitdiffstats
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* Add new tunable 'net.link.ifqmaxlen' to set default send interfacesobomax2010-05-031-2/+2
| | | | | | | | | | queue length. The default value for this parameter is 50, which is quite low for many of today's uses and the only way to modify this parameter right now is to edit if_var.h file. Also add read-only sysctl with the same name, so that it's possible to retrieve the current value. MFC after: 1 month
* Decrement rxa_pad due to the addition of rxa_private.rpaulo2010-04-291-1/+1
|
* Add a private field to struct ieee80211_rx_ampdu do hold driver specificrpaulo2010-04-281-0/+1
| | | | | | data. Sponsored by: iXsystems, inc
* Add ic_rxstream and ic_txstream. These variables hold the number of RXrpaulo2010-04-281-1/+2
| | | | | | | streams and the number of TX streams respectively. Obtained from: //depot/user/rpaulo/80211n/... Sponsored by: iXsystems, inc.
* When in the RUN -> AUTH -> RUN FSM transition happens, we'll call therpaulo2010-04-282-17/+21
| | | | | | | | | ratectl_node_init() functions and since ni_rtctls was already malloc'ed() we will panic. Fix this by using the already malloc'ed pointer. Found by: bschmidt Reviewed by: bschmidt
* Fix typo. No functional change.rpaulo2010-04-281-1/+1
| | | | Obtained from: DragonFlyBSD
* Make this code a little more portable by wrapping the mtx calls intorpaulo2010-04-142-23/+33
| | | | | | macros. MFC after: 1 week
* Add WPA-None support:bschmidt2010-04-103-62/+122
| | | | | | | | | | | | | | | | | | * WPA-None requires ap_scan=2: The major difference between ap_scan=1 (default) and 2 is, that no IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a dependency on those. For example the call to wpa_driver_bsd_scan() sets the interface UP, this never happens, therefore the interface must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID also is not called, which means that the SSID has not been set prior to the IEEE80211_MLME_ASSOC call. * WPA-None has no support for sequence number updates, it doesn't make sense to check for replay violations.. * I had some crashes right after the switch to RUN state, issue is that sc->sc_lastrs was not yet defined. Approved by: rpaulo (mentor) MFC after: 3 weeks
* Use M_NOWAIT instead of M_WAITOK to avoid race conditions.rpaulo2010-04-092-13/+28
| | | | MFC after: 1 month
* Swap IEEE80211_RATECTL_TX_SUCCESS/IEEE80211_RATECTL_TX_FAILURE.rpaulo2010-04-091-2/+2
| | | | | Submitted by: PseudoCylon Furukoshi <moonlightakkiy at yahoo.ca> MFC after: 1 month
* Prevent foot-shooting in ieee80211_ratectl_node_deinit().rpaulo2010-04-081-0/+2
| | | | MFC after: 1 month
* Fix build.rpaulo2010-04-071-1/+1
| | | | | Pointy hat: me MFC after: 1 month
* net80211 rate control framework (net80211 ratectl).rpaulo2010-04-0711-138/+423
| | | | | | | | | | | | | | | | | This framework allows drivers to abstract the rate control algorithm and just feed the framework with the usable parameters. The rate control framework will now deal with passing the parameters to the selected algorithm. Right now we have AMRR (the default) and RSSADAPT but there's no way to select one with ifconfig, yet. The objective is to have more rate control algorithms in the net80211 stack so all drivers[0] can use it. Ideally, we'll have the well-known sample rate control algorithm in the net80211 at some point so all drivers can use it (not just ath). [0] all drivers that do rate control in software, that is. Reviewed by: bschmidt, thompsa, weyongo MFC after: 1 months
* Constify vap argument of ieee80211_{note,discard}* functions.rpaulo2010-03-312-13/+14
| | | | MFC after: 1 week
* Add a comment explaining the previous commit.rpaulo2010-03-281-0/+5
| | | | | | | | | | | | | | | Submitted by: sam > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M ieee80211_hostap.c
* When receiving a management frame, pass the mbuf to bpf before callingrpaulo2010-03-231-0/+3
| | | | | | | | | | | iv_recv_mgmt(). iv_recv_mgmt() will generate management frame responses and pass them to bpf before the management frame that triggered the response. PR: 144323 Submitted by: Alexander Egorenkov <egorenar at gmail.com> MFC after: 2 weeks Sponsored by: iXsystems, inc.
* Add a new field for extended HT capabilities.rpaulo2010-03-233-3/+16
| | | | | | Submitted by: Alexander Egorenkov <egorenar at gmail.com> MFC after: 2 weeks Sponsored by: iXsystems, inc.
* Unbreak build by removing a code bit that is only related to other coderpaulo2010-03-181-1/+1
| | | | in my branch.
* Fix a couple of bugs with 802.11n:rpaulo2010-03-184-25/+90
| | | | | | | | | | | o Process the BAR frame on the adhoc, mesh and sta modes o Fix the format of the ADDBA reply frame o Fix references to the spec section numbers Also, print the all the MCS rates in bootverbose. Sponsored by: iXsystems, Inc. Obtained from: //depot/user/rpaulo/80211n/...
* fixes a broken software beacon miss handler. There is a race to checkweongyo2010-03-143-2/+4
| | | | | | | vap->iv_bmiss_count == 0 in ieee80211_swbmiss because iv_swbmiss_task is enqueued by taskqueue. Reviewed by: rpaulo
* Ensure that tkip_mixing_phase1() is called after a rekeying event whenbschmidt2010-02-081-0/+1
| | | | | | | useing plain s/w crypto. Approved by: rpaulo (mentor) Reviewed by: sam
* Revert unwanted changes in revision 203422.rpaulo2010-02-061-3/+3
| | | | Spotted by: sam
* Avoid a null pointer deref when parsing the meshid.rpaulo2010-02-031-3/+4
| | | | Found with: clang static analyzer
* When taking the AMPDU reorder fastpath, need_tap wasn't beingrpaulo2010-02-035-11/+7
| | | | | | initialized. Initialize on declaration to avoid this. Found with: clang static analyzer
* Call ieee80211_radiotap_rx, not ieee80211_radiotap_tx on sta_input()rpaulo2010-01-251-1/+1
| | | | | | PR: 143163 Submitted by: Alexander Egorenkov <egorenar at gmail.com> MFC after: 3 days
* While flushing the multicast filter of an interface, do not zero the relevantsyrinx2010-01-241-2/+5
| | | | | | | | | | ifmultiaddr structures' reference to the parent interface, unless the parent interface is really detaching. While here, program only link layer multicast filters to a wlan's hardware parent interface. PR: kern/142391, kern/142392 Reviewed by: sam, rpaolo, bms MFC after: 1 week
* Use the iflladdr_event event to keep the mac address on the vap in sync withthompsa2010-01-193-1/+40
| | | | | | | the parent wirless interface. If the user passed in a mac address or it was autogenerated then flag this to avoid trashing it on update. This will fix wlan+lagg in a post vap world.
* Fix bugs introduced in previous commit: off-by-one in add_meshconf() andrpaulo2010-01-141-2/+4
| | | | big-endian bug on verify_meshconf()
* Update mesh code to to D4.0.rpaulo2010-01-122-5/+8
|
* Fix #ifdefs so that GCC 4.4 doesn't complain about it.trasz2010-01-081-3/+3
| | | | Reviewed by: rpaulo
* Remove extraneous semicolons, no functional changes.mbr2010-01-071-1/+1
| | | | | Submitted by: Marc Balmer <marc@msys.ch> MFC after: 1 week
* Fix typo in commentrpaulo2009-12-081-1/+1
| | | | Submitted by: Paul B Mahol <onemda at gmail.com>
* Remove trailing ";" in struct ieee80211_beacon_offsets declarationantoine2009-11-111-1/+1
| | | | | | Found by: phk's FlexeLint in September Reviewed by: rpaulo@ MFC after: 1 month
* Fix off by one in ieee80211_send_action_registerantoine2009-11-111-1/+1
| | | | | | Found by: phk's FlexeLint in September Reviewed by: rpaulo@ MFC after: 1 month
* The isr_intval in ieee80211req_scan_result structure should be 16 bit.rpaulo2009-11-091-1/+1
| | | | | | | | This makes ifconfig list scan display the correct beacon interval (previously it would int overflow). As a side effect, this makes the ieee80211req_scan_result word aligned. Submitted by: Paul B Mahol <onemda at gmail.com>
* Take a step towards removing if_watchdog/if_timer. Don't explicitly setjhb2009-11-061-1/+0
| | | | | if_watchdog/if_timer to NULL/0 when initializing an ifnet. if_alloc() sets those members to NULL/0 already.
* Update the route's sequence number upon receiving a RANN.rpaulo2009-10-291-9/+12
| | | | MFC after: 3 days
* The draft spec doesn't say beacon frames need to have a wildcard BSSID,rpaulo2009-10-231-7/+1
| | | | | | so remove the mesh code necessary for that. MFC after: 2 days
* Initialize rann_flags properly.rpaulo2009-10-221-0/+1
| | | | MFC after: 2 days
* Don't call the newstate callback as that's dangerous. Rely no ENETRESETrpaulo2009-10-211-4/+0
| | | | | | to DTRT. MFC after: 3 days
* Fix a bug in composing PERR frames introduced by latest draft update.rpaulo2009-10-191-1/+2
| | | | MFC after: 3 days
* Implement the missing support for updating the mesh conf number ofrpaulo2009-10-194-1/+31
| | | | | | neighbors via ieee80211_beacon_notify(). MFC after: 3 days
* HWMP fixes, namely:rpaulo2009-10-191-31/+32
| | | | | | | | * fix the processing of RANN frames * the originator and target addresses were swapped and while it worked fine, it was not spec compliant. MFC after: 3 days
* Properly initialize the mesh conf capabilities byte.rpaulo2009-10-131-0/+1
| | | | MFC after: 2 days
* Fix a wrong initialization that snuck in the latest commit.rpaulo2009-10-121-1/+1
| | | | MFC after: 3 days
* Another 3.03 draft bit that I missed in the previous 802.11s stackrpaulo2009-10-123-85/+48
| | | | | | | update. The Mesh Configuration IE has changed quite a bit. Refactor the code to handle this change. MFC after: 3 days
* Update 802.11s mesh support to draft 3.03. This includes a revised framerpaulo2009-09-224-199/+125
| | | | | | | | format for peering and changes to the PERR frames. Note that this is incompatible with the previous code. Reviewed by: sam MFC after: 1 week
* Revert previous commit and add myself to the list of people who shouldphk2009-09-082-2/+2
| | | | know better than to commit with a cat in the area.
* Add necessary include.phk2009-09-082-2/+2
|
* correct timeout for doing NOL processing; need a ticks-relative valuesam2009-09-031-1/+1
| | | | | Obtained from: Marvell MFC after: 3 days
OpenPOWER on IntegriCloud