qcacmn: Extract and populate peer_extd2 stats from fw
Presently, the driver doesnot extract the peer extended2 stats (rx_bytes, rx_count, fcs_err) that are received from firmware. Provide the support to extract and populate the peer extended stats2 at the driver level. Change-Id: If1f1bb1ef2d1202581744dd509d0da1da718d8c1 CRs-Fixed: 2397638
Tento commit je obsažen v:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -33,6 +33,9 @@
|
||||
|
||||
#define MAX_NUM_CHAINS 2
|
||||
|
||||
#define IS_MSB_SET(__num) ((__num) & BIT(31))
|
||||
#define IS_LSB_SET(__num) ((__num) & BIT(0))
|
||||
|
||||
/**
|
||||
* enum stats_req_type - enum indicating bit position of various stats type in
|
||||
* request map
|
||||
@@ -248,6 +251,20 @@ struct peer_mc_cp_stats {
|
||||
uint8_t peer_macaddr[WLAN_MACADDR_LEN];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct peer_adv_mc_cp_stats - peer specific adv stats
|
||||
* @peer_macaddr: mac address
|
||||
* @fcs_count: fcs count
|
||||
* @rx_bytes: rx bytes
|
||||
* @rx_count: rx count
|
||||
*/
|
||||
struct peer_adv_mc_cp_stats {
|
||||
uint8_t peer_macaddr[WLAN_MACADDR_LEN];
|
||||
uint32_t fcs_count;
|
||||
uint32_t rx_count;
|
||||
uint64_t rx_bytes;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct congestion_stats_event: congestion stats event param
|
||||
* @vdev_id: vdev_id of the event
|
||||
@@ -284,6 +301,8 @@ struct chain_rssi_event {
|
||||
* @pdev_stats: if populated array indicating pdev stats (index = pdev_id)
|
||||
* @num_peer_stats: num peer stats
|
||||
* @peer_stats: if populated array indicating peer stats
|
||||
* @peer_adv_stats: if populated, indicates peer adv (extd2) stats
|
||||
* @num_peer_adv_stats: number of peer adv (extd2) stats
|
||||
* @cca_stats: if populated indicates congestion stats
|
||||
* @num_summary_stats: number of summary stats
|
||||
* @vdev_summary_stats: if populated indicates array of summary stats per vdev
|
||||
@@ -291,12 +310,16 @@ struct chain_rssi_event {
|
||||
* @vdev_chain_rssi: if populated indicates array of chain rssi per vdev
|
||||
* @tx_rate: tx rate (kbps)
|
||||
* @tx_rate_flags: tx rate flags, (enum tx_rate_info)
|
||||
* @last_event: The LSB indicates if the event is the last event or not and the
|
||||
* MSB indicates if this feature is supported by FW or not.
|
||||
*/
|
||||
struct stats_event {
|
||||
uint32_t num_pdev_stats;
|
||||
struct pdev_mc_cp_stats *pdev_stats;
|
||||
uint32_t num_peer_stats;
|
||||
struct peer_mc_cp_stats *peer_stats;
|
||||
uint32_t num_peer_adv_stats;
|
||||
struct peer_adv_mc_cp_stats *peer_adv_stats;
|
||||
struct congestion_stats_event *cca_stats;
|
||||
uint32_t num_summary_stats;
|
||||
struct summary_stats_event *vdev_summary_stats;
|
||||
@@ -305,6 +328,7 @@ struct stats_event {
|
||||
uint32_t tx_rate;
|
||||
uint32_t rx_rate;
|
||||
enum tx_rate_info tx_rate_flags;
|
||||
uint32_t last_event;
|
||||
};
|
||||
|
||||
#endif /* CONFIG_MCL */
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele