qcacld-3.0: Skip moving to single MAC mode after 2.4 Ghz connection for 2x2 DBS
Since 2.4 Ghz connection is by default on MAC1 for 2x2 DBS, skip the
optimization of moving to single MAC mode after 2.4 Ghz connection.
Change-Id: I09c2491f59b020e9c691c74c613e39fa250844f4
CRs-Fixed: 2008744
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index ba2b68f..91612c9 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -13134,9 +13134,11 @@
pRoamProfile->ChannelInfo.numOfChannels = 0;
if ((QDF_STA_MODE == pAdapter->device_mode)
- && wma_is_current_hwmode_dbs()) {
+ && wma_is_current_hwmode_dbs() &&
+ !wma_is_hw_dbs_2x2_capable()) {
cds_get_channel_from_scan_result(pAdapter,
pRoamProfile, &channel);
+ hdd_info("Move to single MAC mode(optimization) if applicable");
if (channel)
cds_checkn_update_hw_mode_single_mac_mode
(channel);