iwlwifi: mvm: fix the TX queue hang timeout for MONITOR vif type
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 15 Nov 2017 12:12:30 +0000 (14:12 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 25 Nov 2017 15:03:13 +0000 (17:03 +0200)
The MONITOR type is missing in the interface type switch.
Add it.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/utils.c

index 19c1d1f..03ffd84 100644 (file)
@@ -1172,6 +1172,8 @@ unsigned int iwl_mvm_get_wd_timeout(struct iwl_mvm *mvm,
                return le32_to_cpu(txq_timer->p2p_go);
        case NL80211_IFTYPE_P2P_DEVICE:
                return le32_to_cpu(txq_timer->p2p_device);
+       case NL80211_IFTYPE_MONITOR:
+               return default_timeout;
        default:
                WARN_ON(1);
                return mvm->cfg->base_params->wd_timeout;