diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c index 3bcaa82f59b2..a9ac872226fd 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | |||
@@ -1077,6 +1077,7 @@ static void iwl_mvm_restart_cleanup(struct iwl_mvm *mvm) | |||
1077 | mvm->vif_count = 0; | 1077 | mvm->vif_count = 0; |
1078 | mvm->rx_ba_sessions = 0; | 1078 | mvm->rx_ba_sessions = 0; |
1079 | mvm->fwrt.dump.conf = FW_DBG_INVALID; | 1079 | mvm->fwrt.dump.conf = FW_DBG_INVALID; |
1080 | mvm->monitor_on = false; | ||
1080 | 1081 | ||
1081 | /* keep statistics ticking */ | 1082 | /* keep statistics ticking */ |
1082 | iwl_mvm_accu_radio_stats(mvm); | 1083 | iwl_mvm_accu_radio_stats(mvm); |
@@ -1437,6 +1438,9 @@ static int iwl_mvm_mac_add_interface(struct ieee80211_hw *hw, | |||
1437 | mvm->p2p_device_vif = vif; | 1438 | mvm->p2p_device_vif = vif; |
1438 | } | 1439 | } |
1439 | 1440 | ||
1441 | if (vif->type == NL80211_IFTYPE_MONITOR) | ||
1442 | mvm->monitor_on = true; | ||
1443 | |||
1440 | iwl_mvm_vif_dbgfs_register(mvm, vif); | 1444 | iwl_mvm_vif_dbgfs_register(mvm, vif); |
1441 | goto out_unlock; | 1445 | goto out_unlock; |
1442 | 1446 | ||
@@ -1526,6 +1530,9 @@ static void iwl_mvm_mac_remove_interface(struct ieee80211_hw *hw, | |||
1526 | iwl_mvm_power_update_mac(mvm); | 1530 | iwl_mvm_power_update_mac(mvm); |
1527 | iwl_mvm_mac_ctxt_remove(mvm, vif); | 1531 | iwl_mvm_mac_ctxt_remove(mvm, vif); |
1528 | 1532 | ||
1533 | if (vif->type == NL80211_IFTYPE_MONITOR) | ||
1534 | mvm->monitor_on = false; | ||
1535 | |||
1529 | out_release: | 1536 | out_release: |
1530 | mutex_unlock(&mvm->mutex); | 1537 | mutex_unlock(&mvm->mutex); |
1531 | } | 1538 | } |