浏览代码

qca-wifi: Add a new parameter for rx decrypt errors

Add a new parameter 'cs_rx_decryptcrc' for rx decrypt
errors in rx protected management frames.

Change-Id: I0aaeea7971d2ad8a0ffff91e291c09d27d0c9908
Pavankumar Nandeshwar 5 年之前
父节点
当前提交
5a9ef8ffef

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_defs.h

@@ -446,6 +446,7 @@ struct vdev_ic_cp_stats {
  *  @cs_tx_dropblock: tx dropblock
  *  @cs_tx_assoc: tx assoc success
  *  @cs_tx_assoc_fail: tx assoc failure
+ *  @cs_rx_decryptcrc: rx decrypt errors
  */
 struct peer_ic_cp_stats {
 	int8_t   cs_rx_mgmt_rssi;
@@ -466,6 +467,7 @@ struct peer_ic_cp_stats {
 	uint32_t cs_tx_assoc;
 	uint32_t cs_tx_assoc_fail;
 	uint32_t cs_is_tx_nobuf;
+	uint32_t cs_rx_decryptcrc;
 };
 
 #endif /* QCA_SUPPORT_CP_STATS */

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_ucfg_api.h

@@ -620,6 +620,7 @@ UCFG_PEER_CP_STATS_SET_FUNCS(is_tx_nobuf);
 #ifdef ATH_SUPPORT_IQUE
 UCFG_PEER_CP_STATS_SET_FUNCS(tx_dropblock);
 #endif
+UCFG_PEER_CP_STATS_SET_FUNCS(rx_decryptcrc);
 
 static inline
 void ucfg_peer_cp_stats_rx_mgmt_rssi_update(struct wlan_objmgr_peer *peer,
@@ -680,6 +681,7 @@ UCFG_PEER_CP_STATS_GET_FUNCS(rx_mgmt_rate);
 #ifdef ATH_SUPPORT_IQUE
 UCFG_PEER_CP_STATS_GET_FUNCS(tx_dropblock);
 #endif
+UCFG_PEER_CP_STATS_GET_FUNCS(rx_decryptcrc);
 
 /**
  * wlan_ucfg_get_peer_cp_stats() - ucfg API to get peer cp stats

+ 2 - 0
umac/cp_stats/dispatcher/inc/wlan_cp_stats_ic_utils_api.h

@@ -66,6 +66,7 @@ PEER_CP_STATS_SET_FUNCS(is_tx_nobuf);
 #ifdef ATH_SUPPORT_IQUE
 PEER_CP_STATS_SET_FUNCS(tx_dropblock);
 #endif
+PEER_CP_STATS_SET_FUNCS(rx_decryptcrc);
 
 #define PEER_CP_STATS_GET_FUNCS(field) \
 	static inline uint64_t \
@@ -78,6 +79,7 @@ PEER_CP_STATS_GET_FUNCS(rx_mgmt_rate);
 #ifdef ATH_SUPPORT_IQUE
 PEER_CP_STATS_GET_FUNCS(tx_dropblock);
 #endif
+PEER_CP_STATS_GET_FUNCS(rx_decryptcrc);
 
 static inline void
 peer_cp_stats_rx_mgmt_rssi_update(struct wlan_objmgr_peer *peer,