瀏覽代碼

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
Ashish Kumar Dhanotiya 5 年之前
父節點
當前提交
210ccabe9e
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      core/hdd/src/wlan_hdd_hostapd.c

+ 5 - 1
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;