linux/drivers/net/wireless/b43
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
..
b43.h b43: define new PHYs and radio regs for cores >= 24 2011-06-17 14:22:19 -04:00
bus.c b43: implement BCMA bus ops 2011-07-08 11:11:18 -04:00
bus.h b43: implement BCMA bus ops 2011-07-08 11:11:18 -04:00
debugfs.c
debugfs.h
dma.c b43: Add RX side DMA memory barrier 2011-07-05 15:26:59 -04:00
dma.h b43: allocate receive buffers big enough for max frame len + offset 2011-04-04 15:22:11 -04:00
Kconfig b43: add Kconfig option for compiling SSB driver 2011-06-17 14:22:22 -04:00
leds.c b43: bus: abstract board info 2011-06-01 15:10:57 -04:00
leds.h
lo.c b43: Fix warnings from gcc 4.6.0 2011-06-01 15:12:29 -04:00
lo.h
main.c b43: implement BCMA bus ops 2011-07-08 11:11:18 -04:00
main.h b43: do not use SSB specific flags when calling core reset function 2011-06-03 15:01:07 -04:00
Makefile b43: HT-PHY: prepare place for HT-PHY tables 2011-06-29 14:53:22 -04:00
pcmcia.c
pcmcia.h
phy_a.c b43: bus: abstract board info 2011-06-01 15:10:57 -04:00
phy_a.h
phy_common.c b43: HT-PHY: add place for writing HT PHY support 2011-06-17 14:22:20 -04:00
phy_common.h b43: HT-PHY: add place for writing HT PHY support 2011-06-17 14:22:20 -04:00
phy_g.c b43: do not use SSB specific flags when calling core reset function 2011-06-03 15:01:07 -04:00
phy_g.h Fix common misspellings 2011-03-31 11:26:23 -03:00
phy_ht.c b43: HT-PHY: correct 0x2059 radio init 2011-06-29 15:11:06 -04:00
phy_ht.h b43: HT-PHY: upload PHY values when switching channel 2011-06-29 14:53:23 -04:00
phy_lp.c b43: LP-PHY: use new pointers path to access ssb_device 2011-06-01 15:12:27 -04:00
phy_lp.h
phy_n.c b43: N-PHY: update switching analog on/off 2011-06-22 16:09:43 -04:00
phy_n.h Fix common misspellings 2011-03-31 11:26:23 -03:00
pio.c b43: bus: abstract 80211 core info 2011-06-01 15:10:56 -04:00
pio.h
radio_2055.c
radio_2055.h b43: N-PHY: move declarations of chantables functions to correct files 2011-06-22 16:09:43 -04:00
radio_2056.c
radio_2056.h b43: N-PHY: move declarations of chantables functions to correct files 2011-06-22 16:09:43 -04:00
radio_2059.c b43: HT-PHY: add channel switching tables for 2 GHz band 2011-06-29 14:53:24 -04:00
radio_2059.h b43: HT-PHY: replace radio routing magic numbers 2011-06-29 15:11:01 -04:00
rfkill.c b43: bus: abstract bus and core operations 2011-06-01 15:10:58 -04:00
rfkill.h
sdio.c ssb: add __devinit to some functions 2011-06-22 16:09:58 -04:00
sdio.h
sysfs.c b43: bus: abstract device structs and irq 2011-06-01 15:10:57 -04:00
sysfs.h
tables.c
tables.h
tables_lpphy.c b43: bus: abstract chip info 2011-06-01 15:10:57 -04:00
tables_lpphy.h
tables_nphy.c b43: N-PHY: rev3+: add tables with gain ctl workarounds 2011-03-04 14:05:18 -05:00
tables_nphy.h b43: N-PHY: move declarations of chantables functions to correct files 2011-06-22 16:09:43 -04:00
tables_phy_ht.c b43: HT-PHY: add init tables 2011-06-29 15:11:03 -04:00
tables_phy_ht.h b43: HT-PHY: basic PHY init 2011-06-29 15:11:03 -04:00
wa.c b43: bus: abstract board info 2011-06-01 15:10:57 -04:00
wa.h
xmit.c mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
xmit.h b43: fill PHY ctl word1 in TX header for N-PHY 2011-02-25 15:33:39 -05:00