linux/drivers/net/wireless/iwlwifi
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
..
Kconfig iwlwifi: support the svtool messages interactions through nl80211 test mode 2011-05-06 10:44:46 -07:00
Makefile iwlagn: introduce transport layer and implement rx_init 2011-07-01 07:57:34 -07:00
iwl-1000.c iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-2000.c iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-5000-hw.h iwlagn: generic temperature location in EEPROM 2011-06-11 07:10:48 -07:00
iwl-5000.c iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-6000-hw.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-6000.c iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-agn-calib.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
iwl-agn-calib.h iwlagn: clean up & autodetect statistics 2011-04-08 08:19:00 -07:00
iwl-agn-eeprom.c iwlagn: Sanity check for 11n capability 2011-06-11 07:13:15 -07:00
iwl-agn-hcmd.c iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-agn-hw.h iwlagn: move PCI power related functions to the PCI layer 2011-06-18 08:17:29 -07:00
iwl-agn-ict.c iwlagn: add get_dev to iwl_bus_ops 2011-06-18 08:06:24 -07:00
iwl-agn-lib.c iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-agn-rs.c iwlagn: change the logging level for aggregation enable check 2011-06-01 15:36:35 -04:00
iwl-agn-rs.h iwlagn: no 3945 define needed 2011-04-08 08:00:19 -07:00
iwl-agn-rxon.c iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-agn-sta.c iwlagn: don't use CCK rates for P2P interfaces 2011-06-24 11:54:51 -07:00
iwl-agn-tt.c iwlagn: use IWL_DEBUG_TEMP for temperature related debug 2011-06-11 07:10:25 -07:00
iwl-agn-tt.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-agn-tx.c mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
iwl-agn-ucode.c iwlagn: scd memory boundary 2011-07-01 07:58:08 -07:00
iwl-agn.c iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-agn.h iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-commands.h iwlagn: Support flush queues for specified interface 2011-06-18 08:04:19 -07:00
iwl-core.c iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-core.h iwlagn: remove hcmd ops 2011-07-01 07:59:26 -07:00
iwl-csr.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-debug.h iwlagn: add get_dev to iwl_bus_ops 2011-06-18 08:06:24 -07:00
iwl-debugfs.c iwlagn: Remove un-necessary indirect call 2011-06-18 08:03:18 -07:00
iwl-dev.h iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-devtrace.c iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-devtrace.h iwlagn: more ucode error log info 2011-05-13 12:01:50 -07:00
iwl-eeprom.c iwlagn: merge duplicate code into single function 2011-06-18 08:23:56 -07:00
iwl-eeprom.h iwlagn: remove incorrect define 2011-06-18 08:24:07 -07:00
iwl-fh.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-04-25 14:34:25 -04:00
iwl-hcmd.c iwlagn: verify mutex held for sync commands 2011-07-01 07:46:21 -07:00
iwl-helpers.h iwlwifi: fix stop/wake queue hacks 2011-06-20 15:16:32 -04:00
iwl-io.c iwlagn: introduce silent grabbing of NIC access 2011-04-30 08:39:22 -07:00
iwl-io.h iwlagn: move PCI related operations from probe and remove to PCI layer 2011-06-18 08:07:14 -07:00
iwl-led.c iwlagn: add get_dev to iwl_bus_ops 2011-06-18 08:06:24 -07:00
iwl-led.h iwlagn: use direct call for led functions 2011-04-18 08:47:43 -07:00
iwl-pci.c iwlwifi: remove unnecessary read of PCI_CAP_ID_EXP 2011-07-06 15:05:41 -04:00
iwl-pci.h iwlagn: add a iwl_pci.[ch] files that will contain all PCI specific code 2011-06-18 08:05:23 -07:00
iwl-power.c iwlagn: Add power_level module parameter 2011-06-18 08:23:30 -07:00
iwl-power.h iwlagn: move PCI power related functions to the PCI layer 2011-06-18 08:17:29 -07:00
iwl-prph.h iwlagn: scd memory boundary 2011-07-01 07:58:08 -07:00
iwl-rx.c iwlagn: remove the indirection for the rx write pointer 2011-07-01 08:00:10 -07:00
iwl-scan.c iwlagn: direct call to post_scan function 2011-06-03 15:16:37 -04:00
iwl-sta.c iwlagn: prepare for multi-TB commands 2011-05-13 10:31:52 -07:00
iwl-sta.h iwlagn: change Copyright to 2011 2011-04-07 15:51:37 -04:00
iwl-sv-open.c iwlagn: add get_dev to iwl_bus_ops 2011-06-18 08:06:24 -07:00
iwl-testmode.h iwlagn: re-define the testmode cmd and attr enum 2011-07-01 07:46:32 -07:00
iwl-trans.c iwlagn: move the tx allocation funcs to the transport layer 2011-07-01 07:57:59 -07:00
iwl-trans.h iwlagn: introduce transport layer and implement rx_init 2011-07-01 07:57:34 -07:00
iwl-tx.c iwlagn: move the tx allocation funcs to the transport layer 2011-07-01 07:57:59 -07:00