From 0f55d832ede00944e11962ff12c085bd3a5b6ab2 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Thu, 22 Apr 2021 17:54:40 +0530 Subject: [PATCH] qcacld-3.0: Start NDI in AUTO mode to allow max supported mode Currently, NDI is started in 11AC mode through the API hdd_ndi_start_bss(). Max supported mode(e.g. 11AX) is picked by csr_roam_get_phy_mode_band_for_bss() if either of the "ini param gDot11Mode" or "input profile mode" is set to AUTO. But if the ini param gDot11Mode is configured as 12(11AX) explicitly, csr_roam_get_phy_mode_band_for_bss() picks the mode sent by hdd_ndi_start_bss() which is 11AC(or the min out of these two). So, start the NDI in AUTO mode to let the mode be decided based on the ini param gDot11Mode and firmware support. Change-Id: I404ea7a4e042262032c17e5c736501146910d084 CRs-Fixed: 2931071 --- core/hdd/src/wlan_hdd_nan_datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_nan_datapath.c b/core/hdd/src/wlan_hdd_nan_datapath.c index 94312b5d3975..283998728d18 100644 --- a/core/hdd/src/wlan_hdd_nan_datapath.c +++ b/core/hdd/src/wlan_hdd_nan_datapath.c @@ -255,7 +255,7 @@ static int hdd_ndi_start_bss(struct hdd_adapter *adapter, roam_profile->SSIDs.numOfSSIDs = 1; roam_profile->SSIDs.SSIDList->SSID.length = 0; - roam_profile->phyMode = eCSR_DOT11_MODE_11ac; + roam_profile->phyMode = eCSR_DOT11_MODE_AUTO; roam_profile->BSSType = eCSR_BSS_TYPE_NDI; roam_profile->BSSIDs.numOfBSSIDs = 1; qdf_mem_copy((void *)(roam_profile->BSSIDs.bssid),