mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
LinuxKPI: 802.11: counting beacons for debug only when assoc
Simplify the logic and only count beacons when we are assoc, given
we only do this for debugging purposes of beacon/connection loss.
Fixes: bdfe17f129
MFC after: 3 days
This commit is contained in:
parent
8b86235ddd
commit
00c9ebbbc6
1 changed files with 8 additions and 2 deletions
|
|
@ -3828,6 +3828,7 @@ lkpi_iv_sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0,
|
|||
enum ieee80211_bss_changed bss_changed;
|
||||
|
||||
lvif = VAP_TO_LVIF(ni->ni_vap);
|
||||
vif = LVIF_TO_VIF(lvif);
|
||||
|
||||
lvif->iv_recv_mgmt(ni, m0, subtype, rxs, rssi, nf);
|
||||
|
||||
|
|
@ -3835,13 +3836,18 @@ lkpi_iv_sta_recv_mgmt(struct ieee80211_node *ni, struct mbuf *m0,
|
|||
case IEEE80211_FC0_SUBTYPE_PROBE_RESP:
|
||||
break;
|
||||
case IEEE80211_FC0_SUBTYPE_BEACON:
|
||||
lvif->beacons++;
|
||||
/*
|
||||
* Only count beacons when assoc. SCAN has its own logging.
|
||||
* This is for connection/beacon loss/session protection almost
|
||||
* over debugging when trying to get into a stable RUN state.
|
||||
*/
|
||||
if (vif->cfg.assoc)
|
||||
lvif->beacons++;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
vif = LVIF_TO_VIF(lvif);
|
||||
lhw = ni->ni_ic->ic_softc;
|
||||
hw = LHW_TO_HW(lhw);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue