iwlwifi: mvm: remove useless WARN_ON and rely on cfg80211's combination
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 24 Dec 2015 06:48:46 +0000 (08:48 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 7 Jan 2016 17:01:29 +0000 (19:01 +0200)
We advertise one STATION vif only, so this just can't
happen. Remove this useless WARN_ON.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/power.c

index 87a9f244e151d07011c425b98c6cb3d1485b8c8c..9de159f1ef2dd366fbfeb67a75c1547952a26087 100644 (file)
@@ -613,8 +613,6 @@ static void iwl_mvm_power_get_vifs_iterator(void *_data, u8 *mac,
                break;
 
        case NL80211_IFTYPE_STATION:
-               /* only a single MAC of the same type */
-               WARN_ON(power_iterator->bss_vif);
                power_iterator->bss_vif = vif;
                if (mvmvif->phy_ctxt)
                        if (mvmvif->phy_ctxt->id < MAX_PHYS)