iwlwifi: mvm: refuse connection to APs with BI < 16
authorJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jul 2013 13:55:29 +0000 (15:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 16 Jul 2013 10:55:07 +0000 (13:55 +0300)
commit48bc13072109ea58465542aa1ee31b4e1065468a
tree9e74f1a4172ff1de0f25a1e7ab7c57fe7b4b0c74
parent113a04470d9178170a5d1aa165809515884f39a8
iwlwifi: mvm: refuse connection to APs with BI < 16

Due to a firmware bug, it crashes when the beacon interval
is smaller than 16. Avoid this by refusing the station state
change creating the AP station, causing mac80211 to abandon
the attempt to connect to the AP, and eventually wpa_s to
blacklist it.

Cc: stable@vger.kernel.org
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac80211.c