summaryrefslogtreecommitdiffstats
path: root/sys/net80211
Commit message (Collapse)AuthorAgeFilesLines
* use 1/2 and 1/4 rate phy types to simplify txtime calculationsam2009-02-191-81/+73
|
* Add modes for 1/2 and 1/4-width channels so we have separate roamingsam2009-02-199-8/+69
| | | | | | | | | | | | | | | | | | and xmit parameters. This makes it possible to use tdma on fractional channels. o add IEEE80211_MODE_HALF and IEEE80211_MODE_QUARTER; note these are band-agnostic (may need revisiting) o setup all default rates in ic_sup_rates instead of doing it only for active modes; we need these to calculate the default tx parameters which are not recalculated after a regulatory update (can't just recalculate after installing a new channel list because we might clobber user settings) o remove special case code in ieee80211_get_suprates; this is now a candidate for an inline or removal o add various entries for new modes (roaming+tx params, wme, rate mapping, scan set setup, country ie construction, tdma, basic rates) Note these modes are intentionally not visible through if_media.
* o looseen abi dependencies on IEEE80211_MODE_MAX by accepting smallersam2009-02-191-49/+31
| | | | | | parameters for IEEE80211_IOC_ROAM and IEEE80211_IOC_TXPARAMS; this lets us add more modes and still have old apps work o consolidate loops to remote assumptions about mode ordering
* use c99 initializerssam2009-02-192-112/+112
|
* o consolidate loops to eliminate assumptions about ordering of modessam2009-02-191-13/+10
| | | | o replace 0x80 by IEEE80211_RATE_MCS
* Change country ie construction to simplify forthcoming changes:sam2009-02-191-11/+17
| | | | | o use c99 initializer for skipflags o calculate band flags instead of statically listing them in the table
* use c99 initializersam2009-02-191-10/+13
|
* simplify setting up the roaming parameters; writing default parameters onlysam2009-02-191-43/+29
| | | | | for active modes hasn't turned out to be useful so just define a const table and copy it in place
* check ptr against NULLsam2009-02-191-1/+1
|
* instead of special casing lookups for the 11na/g legacy rate set, justsam2009-02-192-8/+4
| | | | install the rates once when creating the com structure
* add phy types for 1/2 and 1/4-rate modessam2009-02-191-0/+2
|
* remove ic_stats; it was intended to accumulate stats from vaps as theysam2009-02-133-3/+0
| | | | were reaped but was never used and is inaccessible
* strip M_FRAG & co mbufs coming down from ip_output, these flags aresam2009-02-131-1/+2
| | | | | re-used within net80211 to mark 802.11 frags so allowing them to leak through to the driver caused packets to be dropped in ath
* o replace ieee80211_node_reclaim by individual operations to release thesam2009-02-121-60/+2
| | | | | | | | | | references to iv_bss and the sta table; this is equivalent and causes direct reclaim of the old bss node when any references in packets inflight are reclaimed (previously the old node would sit in the bss table until the inactivity processing reclaimed it) o remove ieee80211_node_reclaim now that it's only use is gone Reviewed by: avatar, cbzimmer
* Add a ieee80211_waitfor_parent() function that will wait for all deferredthompsa2009-02-124-2/+18
| | | | | | | | parent interface tasks to complete. This had been added to the ioctl path but it is also need elsewhere like detach so its safe to teardown. Reported by: Hans Petter Selasky Submitted by: sam
* improve key index map reclaim debug msgsam2009-02-111-6/+5
|
* oops, fix octal escape sequencesam2009-02-111-1/+1
|
* remove bogus reference reclaim on the slave-side bss node on beacon misssam2009-02-111-1/+0
|
* fix mis-numbering of IEEE80211_MSG_BITSsam2009-02-111-4/+4
|
* when operating as a slave, clear neighbor entries and the peer bss nodesam2009-02-101-2/+16
| | | | | | on beacon miss while here, remove a stray pointless write of iv_bmiss_count
* clean neighbor entries on beacon misssam2009-02-101-1/+13
|
* correctly fixup iv_des_chan after installing a new channel table; if thesam2009-02-101-1/+2
| | | | previous channel is now invalid we must set it to IEEE80211_CHAN_ANYC
* mark M_LASTFRAG at the last fragment.weongyo2009-02-091-0/+3
| | | | | Reviewed by: sam MFC after: 3 weeks
* o change _db_show_key to always dump the contents instead of checkingsam2009-02-051-4/+36
| | | | | | | IEEE80211_KEY_DEVKEY o fix channel power printing (they are signed values) o add show statab to dump a node table and automatically dump the sta table of a com structure with /s
* o add IEEE80211_KEY_BITS for %b printing of wk_flagssam2009-02-052-15/+9
| | | | | | o replace hand-rolled code to print wk_flags o add display of ni_ucastkey in show sta o fix \n in _db_show_key
* When crafting a media setting w/ an auto (non-fixed) rate mask out thesam2009-02-031-12/+14
| | | | | | | | | | turbo option in addition to the mode bits; otherwise if the current channel is a turbo mode channel we'll form an invalid media setting and the ifmedia_set operation in vap_attach will panic. While here use C99-style initialization for an array indexed by mode; this makes it consistent w/ other usage and avoids breakage if we should ever change the set of modes.
* when promoting an 11b channel to 11g do not accept a ``pure G'' (OFDM only)sam2009-02-011-2/+2
| | | | | | channel, only accept a real 11g channel; this fixes a problem where we were wrongly promoting 11b to a Dynamic Turbo G channel which broke scanning on channel 6
* setup default fixed rates for static turbo and 11n;sam2009-01-291-6/+22
| | | | the 11n rates are pure guess
* set ni_txparms for static turbo modesam2009-01-291-6/+11
|
* setup default rate set for static turbo modesam2009-01-291-0/+1
|
* add an assert to verify the number of channels returned by ic_getradiocapssam2009-01-281-0/+2
| | | | | | correlates with the size of the channel array passed down might want to promote this to be always present to catch for driver errors
* change null_getradiocaps to return the actual count of channels insteadsam2009-01-281-1/+1
| | | | | of the true number; otherwise the caller may use the count to do things with the data it should not (e.g. sort the channel table)
* Extend channel definition with:sam2009-01-271-0/+3
| | | | | | | | o max antenna gain o driver private opaque data Note this grows the size of a channel to 16 bytes; which makes the default channel table 4Kbytes (up from 3Kbytes).
* fix commentsam2009-01-271-1/+1
|
* Remove assumptions about the max # channels in ioctl's:sam2009-01-272-30/+73
| | | | | | | | | o change ioctl's that pass channel lists in/out to handle variable-size arrays instead of a fixed (compile-time) value; we do this in a way that maintains binary compatibility o change ifconfig so all channel list data structures are now allocated to hold MAXCHAN entries (1536); this, for example, allows the kernel to return > IEEE80211_CHAN_MAX entries for calls like IEEE80211_IOC_DEVCAPS
* change ic_getradiocaps driver callback to include the max # channelssam2009-01-273-6/+8
| | | | so callers know the size of the array passed down
* o add country codes from Atheros regulatory; these are not listed insam2009-01-271-10/+43
| | | | | | | | the ISO tables, mark them accordingly o add sku's for handling 900MHz cards o add opaque struct defs and change []'s to *'s so this file can be included w/o requiring all of net80211 to be pulled in o make CTRY_DEBUG and CTRY_DEFAULT public
* o make %b msg bit defines public (to user apps too)sam2009-01-277-61/+61
| | | | o rename IEEE80211_C_CRYPTO_BITS to IEEE80211_CRYPTO_BITS
* fill in ieee channel #'s and max tx power for drivers that work exclusivelysam2009-01-271-0/+15
| | | | with frequencies; this mimics how ieee80211_setregdomain works
* add new state bit to indicate when interference is observed on the channelsam2009-01-271-0/+3
|
* change IEEE80211_IS_CHAN_OFDM and IEEE80211_IS_CHAN_CCK to return truesam2009-01-271-2/+2
| | | | for 11g (dynamic CCK/OFDM)
* define IEEE80211_CHAN_108A and IEEE80211_CHAN_108G in terms of theirsam2009-01-271-2/+2
| | | | non-turbo names to make the relationship more clear
* If the parent up/down task was queued then sync with it before returning fromthompsa2009-01-251-0/+3
| | | | | | | | | the vap ioctl. This means that the parent interface should hopefully be up before we return to userland, it does not depend on the parent init succeeding, just that it was run. This fixes wpa_supplicant with ndis and USB where the parent interfaces can be slow to init.
* fix regulatory state check for all vaps' being down; it must be donesam2009-01-231-7/+7
| | | | before calling the ic_setregdomain callback
* add defines for driver-private bits to eliminate use of constantssam2009-01-231-1/+4
|
* 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
|
OpenPOWER on IntegriCloud