qcacld-3.0: Clear Country code information after roaming

The connected profile in csr_roam_session is filled after join
success with an AP in csr_roam_process_join_res(). The connected
profile information also has the country code advertised by the
AP over its beacon in the Country Element (EID 7). When STA
roams from AP1 having country IE to AP1 which doesn't have
country IE, the driver checks if the country IE is present in
the AP2 beacon IEs. If the country code is present, new value is
copied, else the older country code value is not cleared.
This results in beacon report failure when roamed to AP2 due
to country code and op class mismatch.

Clear the country code in connected profile before checking if the
country code IE is present.

Change-Id: I503f9761ff33fb245a25b23893360389d7a0b258
CRs-Fixed: 2590117
This commit is contained in:
Pragaspathi Thilagaraj 2019-12-19 20:43:05 +05:30 committed by nshrivas
parent 87fc43fe69
commit 1e30b6ac29

View File

@ -9341,6 +9341,8 @@ csr_roam_save_connected_information(struct mac_context *mac,
p_ext_cap->proxy_arp_service;
}
qdf_mem_zero(pConnectProfile->country_code,
WNI_CFG_COUNTRY_CODE_LEN);
if (pIesTemp->Country.present) {
qdf_mem_copy(pConnectProfile->country_code,
pIesTemp->Country.country,