qcacld-3.0: Add a new ini item to control the INDOOR channels support
qcacld-2.0 to qcacld-3.0 propagation
Currently indoor channels are unconditionally set to
IEEE80211_CHAN_PASSIVE_SCAN in driver. Add logic to report INDOOR
channel as passive channel only when gindoor_channel_support is FALSE.
Change-Id: Iab55a394a28ff452c06c739f3fbd47506eda85eb
CRs-Fixed: 955272
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c
index 4a33cf8..c96f8ef 100644
--- a/core/hdd/src/wlan_hdd_regulatory.c
+++ b/core/hdd/src/wlan_hdd_regulatory.c
@@ -393,13 +393,17 @@
if (wiphy_chan->flags & IEEE80211_CHAN_DISABLED) {
cds_chan->state = CHANNEL_STATE_DISABLE;
- } else if (wiphy_chan->flags &
- (IEEE80211_CHAN_RADAR |
- IEEE80211_CHAN_PASSIVE_SCAN |
- IEEE80211_CHAN_INDOOR_ONLY)) {
-
- if (wiphy_chan->flags &
- IEEE80211_CHAN_INDOOR_ONLY)
+ } else if ((wiphy_chan->flags &
+ (IEEE80211_CHAN_RADAR |
+ IEEE80211_CHAN_PASSIVE_SCAN)) ||
+ ((hdd_ctx->config->indoor_channel_support
+ == false) &&
+ (wiphy_chan->flags &
+ IEEE80211_CHAN_INDOOR_ONLY))) {
+ if ((wiphy_chan->flags &
+ IEEE80211_CHAN_INDOOR_ONLY) &&
+ (false ==
+ hdd_ctx->config->indoor_channel_support))
wiphy_chan->flags |=
IEEE80211_CHAN_PASSIVE_SCAN;
cds_chan->state = CHANNEL_STATE_DFS;