qcacmn: Add check for regulatory channel list
Regulatory module calls registered callbacks when channel list is changed. But channel list may not have been received when path for callbacks is reached. So keep a track if channel list has been received. If not, do not call the callbacks. Change-Id: I2e1a6e442b0d5c79e786806e00b1c50c9491dae0 CRs-Fixed: 2563759
Этот коммит содержится в:

коммит произвёл
nshrivas

родитель
3af8bd05e8
Коммит
8e992e56f0
@@ -252,12 +252,6 @@ static QDF_STATUS dispatcher_regulatory_psoc_close(struct wlan_objmgr_psoc
|
||||
return regulatory_psoc_close(psoc);
|
||||
}
|
||||
|
||||
static QDF_STATUS dispatcher_regulatory_pdev_open(struct wlan_objmgr_pdev
|
||||
*pdev)
|
||||
{
|
||||
return regulatory_pdev_open(pdev);
|
||||
}
|
||||
|
||||
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
||||
#ifdef SPECTRAL_MODULIZED_ENABLE
|
||||
QDF_STATUS dispatcher_register_spectral_pdev_open_handler(
|
||||
@@ -1064,9 +1058,6 @@ QDF_STATUS dispatcher_pdev_open(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
|
||||
if (QDF_STATUS_SUCCESS != dispatcher_regulatory_pdev_open(pdev))
|
||||
goto regulatory_pdev_open_fail;
|
||||
|
||||
status = dispatcher_spectral_pdev_open(pdev);
|
||||
if (status != QDF_STATUS_SUCCESS && status != QDF_STATUS_COMP_DISABLED)
|
||||
goto spectral_pdev_open_fail;
|
||||
@@ -1089,8 +1080,6 @@ mgmt_txrx_pdev_open_fail:
|
||||
cfr_pdev_open_fail:
|
||||
dispatcher_spectral_pdev_close(pdev);
|
||||
spectral_pdev_open_fail:
|
||||
dispatcher_regulatory_pdev_close(pdev);
|
||||
regulatory_pdev_open_fail:
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
qdf_export_symbol(dispatcher_pdev_open);
|
||||
|
Ссылка в новой задаче
Block a user