qcacld-3.0: Add ini support to enable NAN on indoor channels

Currently there is no  support to enable NAN on indoor channels,
as per the new requirement add an ini support to enable NAN on
indoor channels.

Change-Id: Ia3acbc133cab4865d8ad69992e893be91439f50f
CRs-Fixed: 2943668
This commit is contained in:
Ashish Kumar Dhanotiya
2021-05-18 14:17:12 +05:30
zatwierdzone przez Madan Koyyalamudi
rodzic 9eb4979aac
commit cc3c67977d
8 zmienionych plików z 100 dodań i 12 usunięć

Wyświetl plik

@@ -1304,15 +1304,5 @@ QDF_STATUS ucfg_nan_disable_ind_to_userspace(struct wlan_objmgr_psoc *psoc)
bool ucfg_is_nan_allowed_on_freq(struct wlan_objmgr_pdev *pdev, uint32_t freq)
{
bool nan_allowed = false;
/* Check for SRD channels only */
if (!wlan_reg_is_etsi13_srd_chan_for_freq(pdev, freq))
return true;
wlan_mlme_get_srd_master_mode_for_vdev(wlan_pdev_get_psoc(pdev),
QDF_NAN_DISC_MODE,
&nan_allowed);
return nan_allowed;
return wlan_is_nan_allowed_on_freq(pdev, freq);
}