qcacld-3.0: Add ini support to disable regulatory channels
Currently regulatory channels are disabled for QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT vendor command event if ini coex_unsafe_chan_nb_user_prefer is not set and if STA operates on disabled channels which results in crash for STA interface in STA + SAP SCC case. Hence coex_unsafe_chan_reg_disable ini is controlled based on coex_unsafe_chan_nb_user_prefer. Ini behavior summary: |----------------|----------------------|-------------|--------------------------------| |User prefer ini | Reg chan disable ini | PLs | Expectation | | | | | | |----------------|----------------------|-------------|--------------------------------| | 1 | 1 | LE | accept freq ext command and | | | | | disable the regulatory channel| |----------------|----------------------|-------------|--------------------------------| | 0 | 0 | Non-Pixel SP| reject freq ext cmd driver and | | | | | returns NOT SUPP | |----------------|----------------------|-------------|--------------------------------| | 1 | 0 | Pixel SP | accept freq ext command and | | | | | Don't disable the reg channels| |----------------|----------------------|-------------|--------------------------------| Change-Id: Ia3acbc133cab4865d8ad69992e893be91439f856 CRs-Fixed: 3128908
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f8ac5388dc
commit
8fbe1e4593
@@ -1705,4 +1705,17 @@ bool ucfg_mlme_get_coex_unsafe_chan_nb_user_prefer(
|
||||
}
|
||||
return mlme_obj->cfg.reg.coex_unsafe_chan_nb_user_prefer;
|
||||
}
|
||||
|
||||
bool ucfg_mlme_get_coex_unsafe_chan_reg_disable(
|
||||
struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_obj) {
|
||||
mlme_legacy_err("Failed to get MLME Obj");
|
||||
return cfg_default(CFG_COEX_UNSAFE_CHAN_REG_DISABLE);
|
||||
}
|
||||
return mlme_obj->cfg.reg.coex_unsafe_chan_reg_disable;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user