Commit 95a35ec7 authored by Gregory Greenman's avatar Gregory Greenman Committed by Johannes Berg

wifi: iwlwifi: mvm: update mac id management

The restriction where MAC ID 0 could be used only for the
managed/IBSS vif is not required when using the new MLO FW API.
Update the driver.
Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230417113648.e4355615da92.Iba934ccf8589c3c27a25a390dc5e938312889b45@changeidSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3ec6697e
...@@ -225,16 +225,20 @@ int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif) ...@@ -225,16 +225,20 @@ int iwl_mvm_mac_ctxt_init(struct iwl_mvm *mvm, struct ieee80211_vif *vif)
* that we should share it with another interface. * that we should share it with another interface.
*/ */
/* Currently, MAC ID 0 should be used only for the managed/IBSS vif */ /* MAC ID 0 should be used only for the managed/IBSS vif with non-MLO
switch (vif->type) { * FW API
case NL80211_IFTYPE_ADHOC: */
break; if (!mvm->mld_api_is_used) {
case NL80211_IFTYPE_STATION: switch (vif->type) {
if (!vif->p2p) case NL80211_IFTYPE_ADHOC:
break; break;
fallthrough; case NL80211_IFTYPE_STATION:
default: if (!vif->p2p)
__clear_bit(0, data.available_mac_ids); break;
fallthrough;
default:
__clear_bit(0, data.available_mac_ids);
}
} }
ieee80211_iterate_active_interfaces_atomic( ieee80211_iterate_active_interfaces_atomic(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment