iwlwifi: mvm: Reserve MAC id 0 for managed interfaces
authorIlan Peer <ilan.peer@intel.com>
Wed, 13 Feb 2013 11:27:18 +0000 (13:27 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 18 Feb 2013 19:18:48 +0000 (20:18 +0100)
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c

index 3f937b2..341dbc0 100644 (file)
@@ -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);