qcacld-3.0: Fix unsafe check failure for SAP
With MACRO FEATURE_WLAN_CH_AVOID_EXT enabled, "restriction_mask" can only be checked if coex_unsafe_chan_nb_user_prefer = 1. If the INI coex_unsafe_chan_nb_user_prefer = 0, do not need to check "restriction_mask". It will remain uninitialized 0. Change-Id: If7bd1223ee3779b72fadb40e622f682db03f4ea5 CRs-Fixed: 3287634
This commit is contained in:
@@ -291,6 +291,26 @@ wlan_mlme_get_wlm_multi_client_ll_caps(struct wlan_objmgr_psoc *psoc)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_CH_AVOID_EXT
|
||||
/**
|
||||
* wlan_mlme_get_coex_unsafe_chan_nb_user_prefer() - get coex unsafe nb
|
||||
* support
|
||||
* @psoc: pointer to psoc object
|
||||
* @value: pointer to the value which will be filled for the caller
|
||||
*
|
||||
* Return: coex_unsafe_chan_nb_user_prefer
|
||||
*/
|
||||
bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
|
||||
struct wlan_objmgr_psoc *psoc);
|
||||
#else
|
||||
static inline
|
||||
bool wlan_mlme_get_coex_unsafe_chan_nb_user_prefer(
|
||||
struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* wlan_mlme_set_band_capability() - Set the Band capability config
|
||||
* @psoc: pointer to psoc object
|
||||
|
Reference in New Issue
Block a user