瀏覽代碼

qcacld-3.0: Add check for eht operation present

For big data stats command, if STA connected in HE mode, EHT stats
are returning failure to the user space.

To solve this add check if EHT mode is connected, then only add the
EHT stats and send to user space.

Change-Id: Icb2bf9ef076797c85bf45cc384f6beb7b7790ef9
CRs-Fixed: 3642332
Vinod Kumar Myadam 1 年之前
父節點
當前提交
68153e2452
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      core/hdd/src/wlan_hdd_station_info.c

+ 5 - 3
core/hdd/src/wlan_hdd_station_info.c

@@ -954,9 +954,11 @@ hdd_populate_station_info_skb(struct sk_buff *skb,
 		hdd_err("he operation info put fail");
 		return QDF_STATUS_E_FAILURE;
 	}
-	if (hdd_add_eht_oper_info(skb, hdd_sta_ctx)) {
-		hdd_err("eht operation info put fail");
-		return QDF_STATUS_E_FAILURE;
+	if (hdd_sta_ctx->cache_conn_info.conn_flag.eht_op_present) {
+		if (hdd_add_eht_oper_info(skb, hdd_sta_ctx)) {
+			hdd_err("eht operation info put fail");
+			return QDF_STATUS_E_FAILURE;
+		}
 	}
 
 	if (hdd_sta_ctx->cache_conn_info.conn_flag.hs20_present) {