diff options
| author | Ganesh Kondabattini <ganeshk@codeaurora.org> | 2017-12-13 15:31:41 +0530 |
|---|---|---|
| committer | snandini <snandini@codeaurora.org> | 2017-12-17 23:58:23 -0800 |
| commit | e30a683368432d4e9aeb1e26f1b38734f979b3a2 (patch) | |
| tree | 78a530247d7bfd5127a72dc4a2379976ed439e04 | |
| parent | 132581779bf819aebfce45f6549f3c4e7a2d12e4 (diff) | |
qcacld-3.0: Override SAP channel if force SCC is enabled
If ACS and force SCC is enabled in ini file then override the SAP
channel with STA channel to make it SCC.
CRs-Fixed: 2155251
Change-Id: I23eb2a1de373a87b844740e4d66befc124447f48
| -rw-r--r-- | core/hdd/src/wlan_hdd_hostapd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 978cb5e607ef..38fe1a45b2ac 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -8341,7 +8341,12 @@ int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter, pConfig->ch_width_orig = CH_WIDTH_20MHZ; } - if (wlan_hdd_setup_driver_overrides(pHostapdAdapter)) { + if (cds_is_force_scc() && + cds_mode_specific_get_channel(CDS_STA_MODE)) { + pConfig->channel = cds_mode_specific_get_channel(CDS_STA_MODE); + hdd_debug("force SCC is enabled and STA is active, override the SAP channel to %d", + pConfig->channel); + } else if (wlan_hdd_setup_driver_overrides(pHostapdAdapter)) { ret = -EINVAL; goto error; } |
