iwlwifi: mvm: fix ieee80211_get_he_iftype_cap() iftype
authorJohannes Berg <johannes.berg@intel.com>
Sun, 17 Oct 2021 08:43:39 +0000 (11:43 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 22 Oct 2021 07:48:57 +0000 (10:48 +0300)
commit4e6b69ec9a9eb2954930e80c14f8f77e8ed91177
treed7cecb96bdce2eba5c9e71020df06c6a972aaf66
parent595c230b95130b2bdb1e210f1c4e70faf796764c
iwlwifi: mvm: fix ieee80211_get_he_iftype_cap() iftype

We should consider the P2P interface type, which isn't in
vif->type due to mac80211's special handling of that. Use
ieee80211_vif_type_p2p() to convert appropriately.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211017113927.8e992a3beee2.I4231ac8a7ae8f844e35a1ec221baf3e2b676e765@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c