Add a global counter of missed beacons.
The existing missed beacon count is reset once a beacon isn't missed.
This commit is contained in:
parent
49d2c13794
commit
7ec4e6b83b
@ -2824,6 +2824,7 @@ ath_beacon_proc(void *arg, int pending)
|
||||
*/
|
||||
if (ath_hal_numtxpending(ah, sc->sc_bhalq) != 0) {
|
||||
sc->sc_bmisscount++;
|
||||
sc->sc_stats.ast_be_missed++;
|
||||
DPRINTF(sc, ATH_DEBUG_BEACON,
|
||||
"%s: missed %u consecutive beacons\n",
|
||||
__func__, sc->sc_bmisscount);
|
||||
|
@ -118,7 +118,8 @@ struct ath_stats {
|
||||
u_int32_t ast_tdma_ack; /* TDMA tx failed 'cuz ACK required */
|
||||
u_int32_t ast_tx_raw_fail;/* raw tx failed 'cuz h/w down */
|
||||
u_int32_t ast_tx_nofrag; /* tx dropped 'cuz no ath frag buffer */
|
||||
u_int32_t ast_pad[14];
|
||||
u_int32_t ast_be_missed; /* missed beacons */
|
||||
u_int32_t ast_pad[13];
|
||||
};
|
||||
|
||||
#define SIOCGATHSTATS _IOWR('i', 137, struct ifreq)
|
||||
|
Loading…
Reference in New Issue
Block a user