瀏覽代碼

iwlwifi: mvm: fix the TX queue hang timeout for MONITOR vif type

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>
Emmanuel Grumbach 7 年之前
父節點
當前提交
d1b275ffec
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/net/wireless/intel/iwlwifi/mvm/utils.c

+ 2 - 0
drivers/net/wireless/intel/iwlwifi/mvm/utils.c

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