Prechádzať zdrojové kódy

qcacld-3.0: Logical AND current UAPSD bitmask with ADDTS rsp values

In function sme_ps_fill_uapsd_req_params perform a logical AND rather than OR
between current UASPD bitmask and values received in ADDTS response, otherwise
existing UAPSD bitmask (if all set) will always override ADDTS rsp values.

Change-Id: I17872f62b1f073963d3c04ad72415acd395f1ca5
CRs-Fixed: 1095306
Naveen Rawat 8 rokov pred
rodič
commit
2560111dd2
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      core/sme/src/common/sme_power_save.c

+ 2 - 2
core/sme/src/common/sme_power_save.c

@@ -81,11 +81,11 @@ static void sme_ps_fill_uapsd_req_params(tpAniSirGlobal mac_ctx,
 	struct ps_params *ps_param = &ps_global_info->ps_params[session_id];
 
 	uapsd_delivery_mask =
-		ps_param->uapsd_per_ac_bit_mask |
+		ps_param->uapsd_per_ac_bit_mask &
 		ps_param->uapsd_per_ac_delivery_enable_mask;
 
 	uapsd_trigger_mask =
-		ps_param->uapsd_per_ac_bit_mask |
+		ps_param->uapsd_per_ac_bit_mask &
 		ps_param->uapsd_per_ac_trigger_enable_mask;
 
 	uapsdParams->bkDeliveryEnabled =