ANDROID: iwl7000: mac80211: don't increment crypto_tx_tailroom_needed_cnt twice

In reconfig, in case the driver asks to disconnect during the reconfig,
all the keys of the interface are marked as tainted.
Then ieee80211_reenable_keys will loop over all the interface keys, and
for each one it will
a) increment crypto_tx_tailroom_needed_cnt
b) call ieee80211_key_enable_hw_accel, which in turn will detect that
this key is tainted, so it will mark it as "not in hardware", which is
paired with crypto_tx_tailroom_needed_cnt incrementation, so we get two
incrementations for each tainted key.
Then we get a warning in ieee80211_free_keys.

To fix it, don't increment the count in ieee80211_reenable_keys for
tainted keys

Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Change-Id: Id6e554f4b1c83760aa02d5a9e4e3080edb197aa2
iwl7000-tree: 614b2d5dc230102999e13876b46ed4ee5ecca3ea
1 file changed
tree: 55ae3ec67a732add74aa7e5d49e92fd104d698ee
  1. hdrs/
  2. iwlwifi/
  3. mac80211/
  4. BUILD.bazel
  5. LICENSE