Track the number of bad beacons received.

PR:		kern/165517
This commit is contained in:
Adrian Chadd 2012-02-28 04:05:35 +00:00
parent 27e50fccd8
commit fd9a6137da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232244
2 changed files with 5 additions and 2 deletions

View File

@ -241,8 +241,9 @@ struct ieee80211_stats {
uint32_t is_mesh_notproxy; /* dropped 'cuz not proxying */
uint32_t is_rx_badalign; /* dropped 'cuz misaligned */
uint32_t is_hwmp_proxy; /* PREP for proxy route */
uint32_t is_beacon_bad; /* Number of bad beacons */
uint32_t is_spare[11];
uint32_t is_spare[10];
};
/*

View File

@ -1305,8 +1305,10 @@ sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0,
return;
}
/* XXX probe response in sta mode when !scanning? */
if (ieee80211_parse_beacon(ni, m0, &scan) != 0)
if (ieee80211_parse_beacon(ni, m0, &scan) != 0) {
vap->iv_stats.is_beacon_bad++;
return;
}
/*
* Count frame now that we know it's to be processed.
*/