linux/drivers/net/wireless
Johannes Berg 523b02ea23 mac80211: fix TKIP races, make API easier to use
Our current TKIP code races against itself on TX
since we can process multiple packets at the same
time on different ACs, but they all share the TX
context for TKIP. This can lead to bad IVs etc.

Also, the crypto offload helper code just obtains
the P1K/P2K from the cache, and can update it as
well, but there's no guarantee that packets are
really processed in order.

To fix these issues, first introduce a spinlock
that will protect the IV16/IV32 values in the TX
context. This first step makes sure that we don't
assign the same IV multiple times or get confused
in other ways.

Secondly, change the way the P1K cache works. I
add a field "p1k_iv32" that stores the value of
the IV32 when the P1K was last recomputed, and
if different from the last time, then a new P1K
is recomputed. This can cause the P1K computation
to flip back and forth if packets are processed
out of order. All this also happens under the new
spinlock.

Finally, because there are argument differences,
split up the ieee80211_get_tkip_key() API into
ieee80211_get_tkip_p1k() and ieee80211_get_tkip_p2k()
and give them the correct arguments.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-07-08 11:11:19 -04:00
..
ath carl9170: use carl9170 queue enums 2011-07-05 15:26:55 -04:00
b43 mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
b43legacy b43legacy: Fix warnings from gcc 4.6.0 2011-06-01 15:12:30 -04:00
hostap net: call dev_alloc_name from register_netdevice 2011-05-05 10:57:45 -07:00
ipw2x00 ipw2100: Fix command list for debugging 2011-07-06 15:05:43 -04:00
iwlegacy mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
iwlwifi mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
iwmc3200wifi Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-24 16:47:54 -04:00
libertas if_spi: Fix compilation warning - unused variable 2011-06-17 14:22:21 -04:00
libertas_tf wireless: unify QoS control field definitions 2011-06-27 15:09:39 -04:00
mwifiex mwifiex: modify SDIO aggregation Tx/Rx buffer size 2011-07-06 15:05:44 -04:00
orinoco
p54 Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-05-24 16:47:54 -04:00
prism54
rt2x00 rt2x00: Implement tx_frames_pending mac80211 callback function. 2011-07-07 13:21:00 -04:00
rtl818x
rtlwifi rtlwifi: rtl8192de: Fix error exit from hw_init 2011-07-05 15:26:55 -04:00
wl12xx Merge branch 'for-linville' of git://git.kernel.org/pub/scm/linux/kernel/git/luca/wl12xx 2011-07-08 11:05:20 -04:00
wl1251
zd1211rw zd1211rw: detect stalled beacon interrupt faster 2011-06-22 16:09:47 -04:00
adm8211.c
adm8211.h
airo_cs.c
airo.c Merge branch 'for-davem' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2011-05-25 13:28:55 -04:00
airo.h
at76c50x-usb.c
at76c50x-usb.h
atmel_cs.c
atmel_pci.c
atmel.c
atmel.h
Kconfig
mac80211_hwsim.c mac80211: restrict advertised HW scan rates 2011-06-27 15:09:39 -04:00
mac80211_hwsim.h mac80211_hwsim driver support userspace frame tx/rx 2011-06-01 15:11:00 -04:00
Makefile
mwl8k.c mwl8k: Tell firmware to generate CCMP header 2011-06-15 08:13:03 -04:00
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211: Use consistent BSS matching between scan and sme 2011-05-19 10:37:18 -04:00
wl3501_cs.c
wl3501.h
zd1201.c
zd1201.h