iwlwifi: mvm: force protection for P2P
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 31 Jul 2014 10:58:53 +0000 (13:58 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:33:12 +0000 (22:33 +0300)
Performance is less an issue in P2P and reliability
is critical. Enable protection always for P2P.

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

index 51fa571d5c4549997843372d534bf8fb72d43538..b7a1efcac48054495cb2f958b615d900fb1b953c 100644 (file)
@@ -2858,6 +2858,9 @@ static void rs_fill_lq_cmd(struct iwl_mvm *mvm,
        if (iwl_mvm_vif_low_latency(mvmvif))
                lq_cmd->agg_frame_cnt_limit--;
 
+       if (mvmsta->vif->p2p)
+               lq_cmd->flags |= LQ_FLAG_USE_RTS_MSK;
+
        lq_cmd->agg_time_limit =
                        cpu_to_le16(iwl_mvm_coex_agg_time_limit(mvm, sta));
 }