fw-api: CL 5574292 - update fw common interface files

Change-Id: Ia7f2989ebbf76ce7716d8d2f30854ab6a773ec13
WMI: provide unconditional defs of wmi_pdev_stats struct
CRs-Fixed: 2262693
Cette révision appartient à :
spuligil
2018-10-16 03:21:38 -07:00
révisé par Gerrit - the friendly Code Review server
Parent aa10ef5510
révision ebf00a49fd
2 fichiers modifiés avec 44 ajouts et 5 suppressions

Voir le fichier

@@ -7118,8 +7118,23 @@ typedef struct {
/**
* PDEV statistics
* @todo
* add all PDEV stats here
*
* This struct incorporates the wlan_dbg_stats struct, which is
* conditionally defined, based on the AR900B flag.
* The below _v1 struct variant is the unconditional definition
* that matches what would be conditionally defined by builds that
* don't use the AR900B flag. The _v2 struct variant is the
* unconditional definition that matches what would be conditionally
* defined by builds that use the AR900B flag.
* The _v2 struct def can be used within host or target builds
* that don't use the AR900B flag, but needs to interoperate with a
* target or host build that does use the AR900B flag.
* Similarly, the _v1 struct def can be used by a host or target build
* that does use the AR900B flag, but needs to interoperate with a
* target or host build that doesn't use the AR900B flag.
*
* For backwards compatibility, wmi_pdev_stats is still (conditionally)
* defined, as an alias for either the _v1 or _v2 variant.
*/
typedef struct {
/** Channel noise floor */
@@ -7137,9 +7152,33 @@ typedef struct {
/** Channel Tx Power */
A_UINT32 chan_tx_pwr;
/** WAL dbg stats */
struct wlan_dbg_stats pdev_stats;
struct wlan_dbg_stats_v1 pdev_stats;
} wmi_pdev_stats_v1;
} wmi_pdev_stats;
typedef struct {
/** Channel noise floor */
A_INT32 chan_nf;
/** TX frame count */
A_UINT32 tx_frame_count;
/** RX frame count */
A_UINT32 rx_frame_count;
/** rx clear count */
A_UINT32 rx_clear_count;
/** cycle count */
A_UINT32 cycle_count;
/** Phy error count */
A_UINT32 phy_err_count;
/** Channel Tx Power */
A_UINT32 chan_tx_pwr;
/** WAL dbg stats */
struct wlan_dbg_stats_v2 pdev_stats;
} wmi_pdev_stats_v2;
#if defined(AR900B)
#define wmi_pdev_stats wmi_pdev_stats_v2
#else
#define wmi_pdev_stats wmi_pdev_stats_v1
#endif
/**
* VDEV statistics

Voir le fichier

@@ -36,7 +36,7 @@
#define __WMI_VER_MINOR_ 0
/** WMI revision number has to be incremented when there is a
* change that may or may not break compatibility. */
#define __WMI_REVISION_ 583
#define __WMI_REVISION_ 584
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work