diff options
author | Ilan Peer <ilan.peer@intel.com> | 2013-02-13 13:27:18 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-18 20:18:48 +0100 |
commit | ec8b6885b543ceeb47fdb0c0e6981bb7420ab59e (patch) | |
tree | ab4d46c412cda4078a121749991f65d8e483b47a | |
parent | 1e849c93ee5bd07b2ce84d1c3cbcd5d06cb9d2a5 (diff) | |
download | linux-ec8b6885b543ceeb47fdb0c0e6981bb7420ab59e.tar.bz2 |
iwlwifi: mvm: Reserve MAC id 0 for managed interfaces
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c index 3f937b27ada2..341dbc0237ea 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c @@ -245,6 +245,10 @@ static int iwl_mvm_mac_ctxt_allocate_resources(struct iwl_mvm *mvm, * that we should share it with another interface. */ + /* Currently, MAC ID 0 should be used only for the managed vif */ + if (vif->type != NL80211_IFTYPE_STATION || vif->p2p) + __clear_bit(0, data.available_mac_ids); + ieee80211_iterate_active_interfaces_atomic( mvm->hw, IEEE80211_IFACE_ITER_RESUME_ALL, iwl_mvm_mac_iface_iterator, &data); |