iwlwifi: mvm: set the MAC_FILTER_IN_BEACON flag also for P2P
authorLuciano Coelho <luciano.coelho@intel.com>
Thu, 15 May 2014 10:50:01 +0000 (13:50 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 19 May 2014 13:39:23 +0000 (16:39 +0300)
There doesn't seem to be a good reason for not enabling the
MAC_FILTER_IN_BEACON flag for P2P client, as we do for station.

This can prevent potential, hard-to-reproduce problems during
association.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c

index 28549ba7f2fa3959ff4d2d226bc22b209b7b9470..fed012f2b6c09dce6a96511f0a69b7bdaad78721 100644 (file)
@@ -724,8 +724,7 @@ static int iwl_mvm_mac_ctxt_cmd_sta(struct iwl_mvm *mvm,
                /* Allow beacons to pass through as long as we are not
                 * associated, or we do not have dtim period information.
                 */
-               if (!vif->p2p)
-                       cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_BEACON);
+               cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_BEACON);
 
                /*
                 * The DTIM count counts down, so when it is N that means N