iwlwifi: mvm: don't enable bcast filtering on P2P client
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 1 Apr 2014 18:34:59 +0000 (21:34 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 06:36:01 +0000 (09:36 +0300)
The firmware doesn't support broadcast filtering on P2P
client. Trying to enable it makes the firmware assert.

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

index 4dd9ff43b8b68e6f9b509ed0650d8c5d5a31dd8d..01b4228fb85658cfb1a97d6a188d8782c514a12e 100644 (file)
@@ -1223,6 +1223,10 @@ static int iwl_mvm_configure_bcast_filter(struct iwl_mvm *mvm,
        if (!(mvm->fw->ucode_capa.flags & IWL_UCODE_TLV_FLAGS_BCAST_FILTERING))
                return 0;
 
+       /* bcast filtering isn't supported for P2P client */
+       if (vif->p2p)
+               return 0;
+
        if (!iwl_mvm_bcast_filter_build_cmd(mvm, &cmd))
                return 0;