|
@@ -518,7 +518,14 @@ void iwlagn_bss_info_changed(struct ieee80211_hw *hw,
|
|
|
|
|
|
mutex_lock(&priv->mutex);
|
|
|
|
|
|
- if (WARN_ON(!ctx->vif)) {
|
|
|
+ if (unlikely(!iwl_is_ready(priv))) {
|
|
|
+ IWL_DEBUG_MAC80211(priv, "leave - not ready\n");
|
|
|
+ mutex_unlock(&priv->mutex);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (unlikely(!ctx->vif)) {
|
|
|
+ IWL_DEBUG_MAC80211(priv, "leave - vif is NULL\n");
|
|
|
mutex_unlock(&priv->mutex);
|
|
|
return;
|
|
|
}
|