qcacld-3.0: Add fature flag to get usable channels

Add feature flag for the feature to get usable channels.

Change-Id: I6dd2360284c395747b55f806caab2a5a44089866
CRs-Fixed: 2947180
This commit is contained in:
sheenam monga 2021-05-17 14:45:30 +05:30 committed by Madan Koyyalamudi
parent aae25f8df2
commit c1e87af47a
3 changed files with 15 additions and 0 deletions

1
Kbuild
View File

@ -3099,6 +3099,7 @@ cppflags-$(CONFIG_LL_DP_SUPPORT) += -DCONFIG_LL_DP_SUPPORT
cppflags-$(CONFIG_LL_DP_SUPPORT) += -DWLAN_FULL_REORDER_OFFLOAD
cppflags-$(CONFIG_WLAN_FEATURE_BIG_DATA_STATS) += -DWLAN_FEATURE_BIG_DATA_STATS
cppflags-$(CONFIG_WLAN_FEATURE_IGMP_OFFLOAD) += -DWLAN_FEATURE_IGMP_OFFLOAD
cppflags-$(CONFIG_WLAN_FEATURE_GET_USABLE_CHAN_LIST) += -DWLAN_FEATURE_GET_USABLE_CHAN_LIST
# For PCIe GEN switch
cppflags-$(CONFIG_PCIE_GEN_SWITCH) += -DPCIE_GEN_SWITCH

View File

@ -1046,6 +1046,7 @@ CONFIG_WLAN_FEATURE_TWT := y
CONFIG_FW_THERMAL_THROTTLE := y
CONFIG_WLAN_FEATURE_BIG_DATA_STATS := y
CONFIG_WLAN_FEATURE_IGMP_OFFLOAD := y
CONFIG_WLAN_FEATURE_GET_USABLE_CHAN_LIST := y
ifeq (y,$(findstring y,$(CONFIG_LITHIUM) $(CONFIG_ICNSS) $(CONFIG_ICNSS_MODULE) $(CONFIG_ICNSS2_HELIUM)))
CONFIG_WLAN_FEATURE_BMI := n

View File

@ -15282,6 +15282,7 @@ get_usable_channel_policy[QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX + 1] = {
},
};
#ifdef WLAN_FEATURE_GET_USABLE_CHAN_LIST
/**
* hdd_fill_usable_channels_data() - Fill the data requested by userspace
* @skb: SK buffer
@ -15487,6 +15488,7 @@ err:
return ret;
return qdf_status_to_os_return(status);
}
#endif
/**
* __wlan_hdd_cfg80211_get_chain_rssi() - get chain rssi
@ -15576,6 +15578,7 @@ static int __wlan_hdd_cfg80211_get_chain_rssi(struct wiphy *wiphy,
return retval;
}
#ifdef WLAN_FEATURE_GET_USABLE_CHAN_LIST
/**
* wlan_hdd_cfg80211_get_usable_channel() - get chain rssi
* @wiphy: wiphy pointer
@ -15604,6 +15607,16 @@ static int wlan_hdd_cfg80211_get_usable_channel(struct wiphy *wiphy,
return errno;
}
#else
static int wlan_hdd_cfg80211_get_usable_channel(struct wiphy *wiphy,
struct wireless_dev *wdev,
const void *data,
int data_len)
{
hdd_debug("get usable channel feature not supported");
return -EPERM;
}
#endif
/**
* wlan_hdd_cfg80211_get_chain_rssi() - get chain rssi