瀏覽代碼

qcacmn: Change union to structure to handle multiple stats

Currently, If FW sends both mac and counter stats data then
some data may get overwritten as union of structures can
handle only one structure data at a time.

Change-Id: I30f82ac1b3965f504d268e39a2516f57edc6ce38
CRs-Fixed: 3592413
Sheenam Monga 1 年之前
父節點
當前提交
f02143c909
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h

+ 3 - 3
umac/cp_stats/dispatcher/inc/wlan_cp_stats_public_structs.h

@@ -203,11 +203,11 @@ struct group_id_1 {
 };
 
 /**
- * union group_id_stats : stats for group provided group id
+ * struct group_id_stats : stats for group provided group id
  * @counter_stats: stats for group id 0
  * @mac_stats: stats for group id 1
  */
-union group_id_stats {
+struct group_id_stats {
 	struct group_id_0 counter_stats;
 	struct group_id_1 mac_stats;
 };
@@ -219,7 +219,7 @@ union group_id_stats {
  */
 struct cp_sta_stats {
 	uint8_t sta_stats_group_id;
-	union group_id_stats group;
+	struct group_id_stats group;
 };
 
 /**