From 210ccabe9e5a3b628b45031b9829e1a85a54277f Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 7 Apr 2020 16:04:56 +0530 Subject: [PATCH] qcacld-3.0: Update dot11 mode correctly In case of sap big data logging, it is assumed that legacy dot11 mode is always supported, if the connection is done in 11ax and if station does not shares the ht and vht info in that case legacy dot11 mode should not be updated as it is possible that sta is only 11ax supported. Change-Id: I8324b3e5a2491d4a1722c03e5e86fa1bedbf5062 CRs-Fixed: 2656843 --- core/hdd/src/wlan_hdd_hostapd.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index fb49625fd4..b307dc89c5 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -1504,7 +1504,6 @@ static void hdd_fill_station_info(struct hdd_adapter *adapter, * should always be true. */ is_dot11_mode_abgn = true; - stainfo->support_mode |= is_dot11_mode_abgn << HDD_80211_MODE_ABGN; if (event->vht_caps.present) { stainfo->vht_present = true; @@ -1520,6 +1519,11 @@ static void hdd_fill_station_info(struct hdd_adapter *adapter, stainfo->support_mode |= (event->he_caps_present << HDD_80211_MODE_AX); + if (event->he_caps_present && !(event->vht_caps.present || + event->ht_caps.present)) + is_dot11_mode_abgn = false; + + stainfo->support_mode |= is_dot11_mode_abgn << HDD_80211_MODE_ABGN; /* Initialize DHCP info */ stainfo->dhcp_phase = DHCP_PHASE_ACK; stainfo->dhcp_nego_status = DHCP_NEGO_STOP;