Sfoglia il codice sorgente

qcacld-3.0: Setting epcs_pri_access after initialize

Setting epcs_pri_access flag should be after initialization or it
is overwritten.

Change-Id: Ia3018d35b9a4db5e00e187ca7f03817ee7596762
CRs-Fixed: 3549759
Paul Zhang 1 anno fa
parent
commit
7da360b2a2
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 3 - 3
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -9296,14 +9296,14 @@ QDF_STATUS populate_dot11f_eht_caps(struct mac_context *mac_ctx,
 		return QDF_STATUS_SUCCESS;
 	}
 
-	if (!wlan_epcs_get_config(session->vdev))
-		eht_cap->epcs_pri_access = 0;
-
 	/** TODO: String items needs attention. **/
 	qdf_mem_copy(eht_cap, &session->eht_config, sizeof(*eht_cap));
 	if (session->ch_width != CH_WIDTH_320MHZ)
 		eht_cap->support_320mhz_6ghz = 0;
 
+	if (!wlan_epcs_get_config(session->vdev))
+		eht_cap->epcs_pri_access = 0;
+
 	populate_dot11f_rtwt_eht_cap(mac_ctx, eht_cap);
 	return QDF_STATUS_SUCCESS;
 }