239 Commits

Author SHA1 Message Date
sam
b73801d433 MFC 1.104: split check for rate set mismatch on assoc req away from
check for pure 11g mode so we can give meaningful diagnostic msgs
2007-03-31 21:45:55 +00:00
sam
2822b1cc98 MFC 1.103: disallow re-associate with a slot time mismatch
Obtained from:	Atheros
2007-03-31 21:44:41 +00:00
sam
c1059823eb MFC 1.36: change ieee80211_mhz2ieee to use the PSB mapping when the
frequency falls in the proper place, not when we're handed
	  a 1/2 or 1/4-rate channel
2007-03-31 21:42:21 +00:00
sam
e04dc0c1b8 remove dead code
Coverity CID:	1082
Found with:	Coverity Prevent(tm)
2007-03-31 19:11:19 +00:00
sam
50ad12ffaa MFC: power save fix:
When dispatching frames saved on the power save queue to a
station exiting power save mode prepend them to the driver's
send q instead of appending them.  This insures the packets
are not misordered wrt any packets already q'd for the station.

This corrects a problem noticed when using a VoIP phone talking
to an ath card in ap mode; the misordered packets caused noise.

Submitted by:	"J.R. Oldroyd" <jr@opal.com>
2007-03-21 05:01:44 +00:00
sam
d27615575e MFC 1.79: when starting up an ibss master use a random address for the bssid
Obtained from:	Atheros
2007-03-21 04:56:38 +00:00
sam
d4ffe23b32 MFC 1.46: correct conversions between TU and ms/ticks
Submitted by:	sephe
2007-03-19 05:27:18 +00:00
sam
03123b2cb5 MFC: Correct several issues with rate set negotiation
Submitted by:	Sepherosa Ziehau (w/ modifications)
Obtained from:	DragonFly
2007-03-10 00:33:47 +00:00
sam
87823eabb6 MFC: Fix potential node refcnt leak
Submitted by:	Sepherosa Ziehau
Obtained from:	DragonFly
2007-03-10 00:31:03 +00:00
sam
b900ca9d90 MFC 1.7: add IEEE80211_IS_CHAN_PASSIVE 2007-03-10 00:28:43 +00:00
sam
c48f416515 MFC: half- and quarter-rate channel support
900MHz channel support
     support for respecifying the channel set after attach
     default rate sets
2007-01-28 04:07:54 +00:00
sam
473caab65c MFC 1.10: reduce user-visible namespace to just what is needed 2007-01-26 06:48:07 +00:00
sam
d034c91e3a MFC 1.43: add rate control debug msg bit 2007-01-25 17:39:21 +00:00
jhb
bd48914a94 MFC: Change the life cycle of bpf interface objects to close attach/detach
races with bpf(4).  This includes shims to preserve the ABI for any old
modules.  For more details see the commit log for 1.166 of sys/net/bpf.c.
2007-01-19 23:01:34 +00:00
cvs2svn
c712674dad This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2006-12-13 02:37:49 +00:00
sam
fa95e80fa3 MFC: statistics fixups:
o change rssi to be signed in ieee80211_nodestats
    o add noise floor in ieee80211_nodestats (use an implicit hole to
      preserve layout); return it as zero until we can update the api's
      so the driver can provide noise floor data
    o add a bandaid so IEEE80211_IOC_STA_STATS works for sta mode; when
      all nodes are in the station table this will no longer be needed
    o fix braino in IEEE80211_IOC_STA_INFO implementation; was supposed
      to take a mac address and return info for that sta or all stations
      if ff:ff:ff:ff:ff was supplied--but somehow this didn't get implemented;
      implement the intended semantics and leave a compat shim at the old
      ioctl number for the previous api

Note this changes the api for IEEE80211_IOC_STA_INFO but old binaries
will continue to work.  FreeBSD_version bumped so apps can track the
change (no such applications are known to exist but just in case).
2006-09-02 17:09:26 +00:00
sam
f010108be3 MFC: minor fixups (mostly statistics) 2006-09-02 15:16:12 +00:00
sam
d8676a1b3e MFC 1.42: add per-sta ucast/mcast stats 2006-09-02 15:06:04 +00:00
sam
b1418fef41 MFC 1.47: power save mode state changes should not require clocking... 2006-08-10 06:23:37 +00:00
sam
1c11bdb679 MFC 1.93: correct ie length check 2006-08-10 06:21:50 +00:00
sam
e8143f6360 MFC: add IEEE80211_IOC_BMISSTHRESHOLD for managing the
beacon miss threshold
2006-08-10 06:08:22 +00:00
sam
2070ea2ad7 MFC: shuffle some definitions to a public location 2006-08-10 06:07:49 +00:00
sam
7bc92c7182 sync w/ HEAD: add some useful definitions 2006-07-10 00:47:49 +00:00
sam
f58c250c14 MFC 1.75:
Move conditional preprocessing out from the IEEE80211_DPRINTF macro
    invocation.  Per C99 6.10.3 paragraph 11 preprocessing directives
    appearing as macro arguments yield undefined behavior.
2006-07-10 00:46:27 +00:00
sam
eab2fe7180 MFC 1.74:
Ensure outbound data packets in hostap mode are delivered only
    to stations that are associated by making ieee80211_find_txnode
    return NULL when a unicast frame is to be delivered to an
    unassociated station.
2006-07-10 00:44:47 +00:00
sam
6440d09f41 MFC 1.12: remove duplicate ifname in debug msg 2006-07-10 00:41:00 +00:00
sam
927d42ef69 MFC 1.46: implement set(IEEE80211_IOC_STA_STATS) for hostapd
Approved by:	re (hrs)
2006-04-03 17:21:05 +00:00
sam
21d8390100 MFC 1.40: when doing s/w crypto make sure work is done w/ a writable
mbuf chain; this corrects problems with drivers that rely on the
    host to do crypto

Approved by:	re (hrs)
2006-03-23 23:28:43 +00:00
sam
e282b849e6 MFC 1.90: use m_dup instead of m_copypacket when doing internal bridging
in case packets are modified (e.g. encrypted)

Approved by:	re (scottl)
2006-03-14 23:24:02 +00:00
sam
40da564e5c MFC 1.30: fix switching between agressive and non-agressive wmm modes
Approved by:	re (mux)
2006-03-13 03:10:31 +00:00
sam
c605b0cd8f MFC 1.89: deliver an l2uf frame on sta join to prime the bridge
Approved by:	re (mux)
2006-03-13 03:09:18 +00:00
sam
d17fa08a65 MFC: when scanning channels marked passive defer probe request until
802.11 traffic is seend; fixes problems with ap's hiding their ssid

Approved by:	re (mux)
2006-03-13 03:05:48 +00:00
sam
5c0c80d1e4 MFC 1.39: consolidate calculation of capabilities ie
Approved by:	re (scottl)
2006-03-11 19:30:14 +00:00
sam
68f03e9a31 MFC: make driver override of net80211 parameter state consistent with methods
Approved by:	re (scottl)
2006-03-11 19:25:23 +00:00
sam
287e53e251 MFC 1.45: honor user-specified key index for global key slots
Approved by:	re (scottl)
2006-02-28 02:02:43 +00:00
sam
44cbc2ce07 MFC 1.44: treat setting the optional ie to a zero-length datum to
mean "delete the ie"

Approved by:	re (scottl)
2006-02-23 02:03:39 +00:00
sam
6ce8ffbd75 MFC: s/w beacon miss facility
Approved by:	re (scottl)
2006-02-16 16:57:24 +00:00
sam
9864643933 MFC 1.38: set the mgt frame tx timer before dispatching the frame to the driver
Approved by:	re (scottl)
2006-02-15 03:21:15 +00:00
sam
1d09453a57 pad embedded structs so we can preserve abi's moving forward
Reviewed by:	scottl, dwhite, kensmith, avatar
Approved by:	re
2006-02-12 19:00:39 +00:00
sam
f3bb385026 MFC: switch beacon miss threshold from a time to the number of beacon frames 2006-01-29 07:33:27 +00:00
sam
2564db3b51 MFC 1.86: bounds check each ie's length when parsing 2006-01-29 07:28:02 +00:00
sam
f27a601503 MFC 1.68: propagate current bss state on sta join 2006-01-29 07:20:23 +00:00
sam
8bcd9b14f4 MFC 1.72: bump the scan generation number before iterating 2006-01-29 07:18:09 +00:00
sam
198715ce2a MFC 1.6: add flag to tag frames w/ a known bad FCS 2006-01-29 07:13:58 +00:00
sam
44a7889d74 MFC 1.27:
enable "aggressive mode" only when operating in ap or station mode; in
  particular this fixes use of wme in adhoc demo mode, it wasn't possible
  to set the txop limit because the aggressive mode logic would override
2006-01-29 07:13:03 +00:00
sam
732ef3704c MFC: update erp information element in the beacon frame to reflect
changes in the bss
2006-01-29 07:11:24 +00:00
cperciva
1f4d619dab Correct a buffer overflow when scanning for 802.11 wireless networks.
Security:	FreeBSD-SA-06:05.80211
2006-01-18 09:03:15 +00:00
glebius
03bc08061d - Restore VLAN_INPUT_TAG() macro to preserve API compatibility for
third party drivers.
- Fix bugs destribed in previous revision using macro with
  another name.
2006-01-13 19:21:45 +00:00
glebius
ed67dec936 MFC:
- Use VLAN_TAG_VALUE() not only to read a dot1q tag
    value from an m_tag, but also to set it.  This reduces
    complex code duplication and improves its readability.
  - Fix VLAN_INPUT_TAG() macro, so that it doesn't touch mtag in
    case if memory allocation failed.
  - Remove fourth argument from VLAN_INPUT_TAG(), that was used
    incorrectly in almost all drivers. Indicate failure with
    mbuf value of NULL.
2006-01-13 11:51:11 +00:00
sam
69d4b44077 MFC 1.26: unbreak handling of turboG channels 2006-01-01 22:33:45 +00:00