|
@@ -3252,7 +3252,11 @@ static void iwl4965_mac_update_tkip_key(struct ieee80211_hw *hw,
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- iwl_scan_cancel_timeout(priv, 100);
|
|
|
+ if (iwl_scan_cancel(priv)) {
|
|
|
+ /* cancel scan failed, just live w/ bad key and rely
|
|
|
+ briefly on SW decryption */
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
key_flags |= (STA_KEY_FLG_TKIP | STA_KEY_FLG_MAP_KEY_MSK);
|
|
|
key_flags |= cpu_to_le16(keyconf->keyidx << STA_KEY_FLG_KEYID_POS);
|