mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Add is_beacon_bad.
PR: kern/165517
This commit is contained in:
parent
fd9a6137da
commit
9fb41787f5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232245
@ -370,6 +370,8 @@ static const struct fmt wlanstats[] = {
|
||||
{ 5, "noise", "noise", "current noise floor (dBm)" },
|
||||
#define S_SIGNAL AFTER(S_NOISE)
|
||||
{ 5, "signal", "sig", "current signal (dBm)" },
|
||||
#define S_BEACON_BAD AFTER(S_SIGNAL)
|
||||
{ 9, "beacon_bad", "beaconbad", "bad beacons received" },
|
||||
};
|
||||
|
||||
struct wlanstatfoo_p {
|
||||
@ -814,6 +816,7 @@ wlan_get_curstat(struct statfoo *sf, int s, char b[], size_t bs)
|
||||
case S_RX_MCAST: NSTAT(rx_mcast);
|
||||
case S_TX_UCAST: NSTAT(tx_ucast);
|
||||
case S_TX_MCAST: NSTAT(tx_mcast);
|
||||
case S_BEACON_BAD: STAT(beacon_bad);
|
||||
}
|
||||
return wlan_getinfo(wf, s, b, bs);
|
||||
#undef NSTAT
|
||||
@ -972,6 +975,7 @@ wlan_get_totstat(struct statfoo *sf, int s, char b[], size_t bs)
|
||||
case S_RX_MCAST: NSTAT(rx_mcast);
|
||||
case S_TX_UCAST: NSTAT(tx_ucast);
|
||||
case S_TX_MCAST: NSTAT(tx_mcast);
|
||||
case S_BEACON_BAD: STAT(beacon_bad);
|
||||
}
|
||||
return wlan_getinfo(wf, s, b, bs);
|
||||
#undef NSTAT
|
||||
|
Loading…
Reference in New Issue
Block a user