linux_dsm_epyc7002/drivers/net/wireless/iwlegacy
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
..
iwl3945-base.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl4965-base.c iwlegacy: fix up brokenness caused by cleanup 2011-06-17 14:22:24 -04:00
iwl-3945-debugfs.c
iwl-3945-debugfs.h
iwl-3945-fh.h
iwl-3945-hw.h
iwl-3945-led.c
iwl-3945-led.h
iwl-3945-rs.c
iwl-3945.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-3945.h
iwl-4965-calib.c
iwl-4965-calib.h
iwl-4965-debugfs.c
iwl-4965-debugfs.h
iwl-4965-eeprom.c
iwl-4965-hw.h
iwl-4965-led.c
iwl-4965-led.h
iwl-4965-lib.c iwlegacy: remove reset rf infrastructure 2011-06-10 14:57:49 -04:00
iwl-4965-rs.c iwlegacy: add missing null check 2011-06-03 15:16:35 -04:00
iwl-4965-rx.c iwlegacy: remove recover from statistics 2011-06-10 14:57:49 -04:00
iwl-4965-sta.c
iwl-4965-tx.c mac80211: fix TKIP races, make API easier to use 2011-07-08 11:11:19 -04:00
iwl-4965-ucode.c
iwl-4965.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-4965.h
iwl-commands.h iwlegacy: remove unused power commands defines 2011-06-10 14:57:48 -04:00
iwl-core.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-core.h iwlegacy: remove unnecessary read of PCI_CAP_ID_EXP 2011-06-29 14:53:25 -04:00
iwl-csr.h
iwl-debug.h
iwl-debugfs.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-dev.h iwlegacy: remove unused agg_tids_count 2011-06-10 14:57:51 -04:00
iwl-devtrace.c iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-devtrace.h iwlegacy: remove firmware event log 2011-06-10 14:57:50 -04:00
iwl-eeprom.c iwlegacy: remove unreachable code 2011-06-03 15:16:32 -04:00
iwl-eeprom.h
iwl-fh.h
iwl-hcmd.c iwlegacy: remove sync_cmd_mutex 2011-04-29 15:36:15 -04:00
iwl-helpers.h iwlegacy: fix stop/wake queue hacks 2011-06-20 15:16:31 -04:00
iwl-io.h
iwl-led.c
iwl-led.h
iwl-legacy-rs.h
iwl-power.c
iwl-power.h
iwl-prph.h
iwl-rx.c iwlegacy: remove recover from statistics 2011-06-10 14:57:49 -04:00
iwl-scan.c iwlegacy: remove reset rf infrastructure 2011-06-10 14:57:49 -04:00
iwl-spectrum.h
iwl-sta.c
iwl-sta.h
iwl-tx.c iwlegacy: fix enqueue hcmd race conditions 2011-04-29 15:36:14 -04:00
Kconfig
Makefile