|
@@ -1077,6 +1077,7 @@ static void iwl_mvm_restart_cleanup(struct iwl_mvm *mvm)
|
|
|
mvm->vif_count = 0;
|
|
|
mvm->rx_ba_sessions = 0;
|
|
|
mvm->fwrt.dump.conf = FW_DBG_INVALID;
|
|
|
+ mvm->monitor_on = false;
|
|
|
|
|
|
/* keep statistics ticking */
|
|
|
iwl_mvm_accu_radio_stats(mvm);
|
|
@@ -1437,6 +1438,9 @@ static int iwl_mvm_mac_add_interface(struct ieee80211_hw *hw,
|
|
|
mvm->p2p_device_vif = vif;
|
|
|
}
|
|
|
|
|
|
+ if (vif->type == NL80211_IFTYPE_MONITOR)
|
|
|
+ mvm->monitor_on = true;
|
|
|
+
|
|
|
iwl_mvm_vif_dbgfs_register(mvm, vif);
|
|
|
goto out_unlock;
|
|
|
|
|
@@ -1526,6 +1530,9 @@ static void iwl_mvm_mac_remove_interface(struct ieee80211_hw *hw,
|
|
|
iwl_mvm_power_update_mac(mvm);
|
|
|
iwl_mvm_mac_ctxt_remove(mvm, vif);
|
|
|
|
|
|
+ if (vif->type == NL80211_IFTYPE_MONITOR)
|
|
|
+ mvm->monitor_on = false;
|
|
|
+
|
|
|
out_release:
|
|
|
mutex_unlock(&mvm->mutex);
|
|
|
}
|