qcacld-3.0: Assign third octet of country string field

Assign third octet of country string field as 0x04 to support MBO AP.

Change-Id: I639d713e05c9408915071d233bfd433d98606aff
CRs-Fixed: 2518536
This commit is contained in:
Li Feng 2019-09-03 12:29:05 +08:00 • committed by nshrivas
commit 9a7ee6c492

View file

@ -413,6 +413,13 @@ populate_dot11f_country(struct mac_context *mac,
qdf_mem_copy(pDot11f->country, code, 2);
/* a wi-fi agile multiband AP shall include a country */
/* element in all beacon and probe response frames */
/* where the last octet of country string field is */
/* set to 0x04 */
if (mac->mlme_cfg->oce.oce_sap_enabled)
pDot11f->country[2] = 0x04;
if (len > MAX_SIZE_OF_TRIPLETS_IN_COUNTRY_IE) {
pe_err("len:%d is out of bounds, resetting", len);
len = MAX_SIZE_OF_TRIPLETS_IN_COUNTRY_IE;