1
0

qcacmn: Ignore default country update during wlan restart

After driver load and interface up, if user changes the country code
and performs the interface down, now if interface change timer expires,
stop modules is invoked. When user again tries to do interface up, as a
part of start modules, update channel list indication comes from FW
with default country info from BDF file which overwrites user specified
country information.

To resolve this issue, if current country is set by user and if
driver gets notification to update channel list from FW with
different country code during restart of wlan modules then ignore
master channel list and send the current user country to FW.

Change-Id: I0a0c57eda03827dc3fef59928569bf2f0bc32634
CRs-Fixed: 2340798
Este cometimento está contido em:
Rajeev Kumar Sirasanagandla
2018-11-28 15:25:42 +05:30
cometido por nshrivas
ascendente 40d7624678
cometimento cc123bcab3
6 ficheiros modificados com 238 adições e 50 eliminações

Ver ficheiro

@@ -423,6 +423,18 @@ QDF_STATUS regulatory_pdev_open(struct wlan_objmgr_pdev *pdev)
QDF_STATUS regulatory_pdev_close(struct wlan_objmgr_pdev *pdev)
{
struct wlan_objmgr_psoc *psoc;
struct wlan_regulatory_psoc_priv_obj *soc_reg;
psoc = wlan_pdev_get_psoc(pdev);
soc_reg = reg_get_psoc_obj(psoc);
if (!soc_reg) {
reg_err("reg psoc private obj is NULL");
return QDF_STATUS_E_FAULT;
}
reg_reset_ctry_pending_hints(soc_reg);
return QDF_STATUS_SUCCESS;
}