| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
legacy parts (i.e. those that have 4 global key slots). We
blindly assign unicast keys to key slot 0. Devices that need
alternate allocation logic must override this method.
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
| |
Noticed by: Ralf Assmann
Reviewed by: apatti
Approved by: re (scottl)
|
|
|
|
|
|
|
| |
power save queue (missed in previous commit)
Submitted by: Bruno Randolf
Approved by: re (scottl)
|
|
|
|
|
|
|
| |
11b-only stations when operating in 11g
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
stations in ap mode. Track when a node's first auth frame is
received and use this to decide whether or not to bump the refcnt.
This insures we only ever bump the refcnt once.
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
|
|
| |
This fixes duplicative BSS entries(memory leaks as well) listed in
"ifconfig dev list scan" when a station fails to associate with an AP.
Reviewed by: sam
Approved by: re (scottl)
|
|
|
|
|
|
|
| |
set it have been fixed
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
|
|
|
|
| |
fixes a ref cnt leak
o make unicast key handling on delete identical to set
o change legacy wep key api to reset the 802.11 state
machine for backwards compatibility
Reviewed by: avatar
Approved by: re (scottl)
|
|
|
|
|
|
|
| |
stations when transitioning to INIT state (e.g. as a result of
changing state at the 802.11 level)
Approved by: re (scottl)
|
|
|
|
|
| |
Noticed by: Bruno Randolf
Approved by: re (dwhite)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a call to the
new function, if_alloc(). The layer 2 common structure is also allocated
via if_alloc() based on the interface type. It is hung off the new
struct ifnet member, if_l2com.
This change removes the size of these structures from the kernel ABI and
will allow us to better manage them as interfaces come and go.
Other changes of note:
- Struct arpcom is no longer referenced in normal interface code.
Instead the Ethernet address is accessed via the IFP2ENADDR() macro.
To enforce this ac_enaddr has been renamed to _ac_enaddr.
- The second argument to ether_ifattach is now always the mac address
from driver private storage rather than sometimes being ac_enaddr.
Reviewed by: sobomax, sam
|
|
|
|
| |
adhoc/ahdemo/hostap modes
|
|
|
|
|
|
|
|
| |
it; instead pass the space occupied by the header down into the
crypto modules (except in the demic case which needs it only when
doing int in s/w)
o while here fix defrag to strip the header from 2nd and later frames
o teach decap code how to handle 4-address frames
|
|
|
|
|
| |
as a side effect of sending an auth success frame; sending mgmt
frames should not have side effects
|
|
|
|
| |
where they are used
|
| |
|
| |
|
|
|
|
|
| |
operating in sta mode); this speeds up the state machine, previously
we were acting on a timeout
|
| |
|
|
|
|
| |
Obtained from: Atheros
|
| |
|
|
|
|
| |
o add missing call to clear tim after flushing ps q
|
| |
|
|
|
|
|
|
| |
the 802.11 spec says not to
Obtained from: Atheros
|
| |
|
|
|
|
|
| |
this is needed by drivers that want to resync their timers based on
the tsf of the last recv'd beacon frame
|
|
|
|
|
|
|
| |
can better program beacon timers
o leave placeholder in com structure for future ap/adhoc mode tim support
Reviewed by: avatar
|
|
|
|
|
|
|
| |
or a bssid+ssid. This is needed for later versions of wpa_supplicant
and for forthcoming addons to wpa_supplicant.
Note this is an api change and applications must be rebuilt.
|
|
|
|
| |
to manual; this helps keep wpa_supplicant in sync.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
and h/w mic verification
Reviewed by: avatar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o don't pre-assign key index to the global key table entries so device
has a chance to decide what to use
o make ieee80211_crypto_newkey take the desired flags as an argument
instead of wacking the key structure directly; this eliminates a
bunch of code warts
o add a new flag IEEE80211_KEY_GROUP to indicate a key is a WPA Group
key so devices don't need to guess (temporarily add this flag in the
ioctl code until we can get wpa_supplicant+hostapd updated)
o shuffle IEEE80211_KEY_* bits to move flags used internally to the high
nibble of the flags word
Reviewed by: Tai-hwa Liang
|
| |
|
| |
|
| |
|
|
|
|
| |
Submitted by: Divy Le Ray
|
|
|
|
|
|
|
| |
frames--move it there
Noticed by: Ghislain Mary
Submitted by: Michael Wong
|
|
|
|
| |
Noticed by: Coverity Prevent analysis tool
|
|
|
|
| |
Noticed by: Coverity Prevent analysis tool
|
|
|
|
| |
Noticed by: Coverity Prevent analysis tool
|
|
|
|
| |
Noticed by: Coverity Prevent analysis tool
|
|
|
|
|
| |
Prodded by: David Young
Obtained from: netbsd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
panic with the NDISulator if you did "ifconfig ndis0 10.0.0.1/24,"
whereas "ifconfig ndis0 10.0.0.1/24 up" worked fine. The double fault
was caused by the ifconfig thread running out of kernel stack space.
(This was partly due to the NDIsulator using a couple of big buffers on
the stack, but even after fixing that the double fault persisted.)
It turns out that ndis_init() is called in both cases, but in the first
case the code path passes through ieee80211_ioctl(), and it turns out
ieee80211_ioctl() consumes a whopping 2400 bytes of stack space.
Apparently, gcc -O2 causes the ieee80211_ioctl_get80211() routine to
be inlined into ieee80211_ioctl(), and for some reason which I do not
fully understand, this causes ieee80211_ioctl() to consume an extra 2K
of stack space.
To prevent this overly agressive optimization, ieee80211_ioctl_get80211()
is now declared with __attribute__ ((noinline)). With this change,
ieee80211_ioctl() now only reserves about 200 bytes of stack instead of 2400.
|
|
|
|
| |
Noticed by: Jeffrey D. Chung
|
|
|
|
|
|
|
| |
as an authenticator need to always check for the unicast key in the node
(as was the case before)
Submitted by: Divy Le Ray
|
|
|
|
|
|
|
| |
on state transitions; this is a stopgap measure, need to rethink
how we do management of this state
Identified by: Divy Le Ray
|
|
|
|
|
|
| |
uses only the global key state so looking in the per-node key slot is wrong
Submitted by: Tai-hwa Liang
|
|
|
|
|
|
| |
method to always be setup
Submitted by: Tai-hwa Liang
|