LinuxKPI: 802.11: use ieee80211_beacon_miss()
In ieee80211_beacon_loss() call into net80211::ieee80211_beacon_miss() rather than manually bouncing our state. That should give us the ability to send a probereq and see if the AP is till there rather than right away going to scan. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
parent
9b4c606b96
commit
3540911bfd
@ -4459,27 +4459,16 @@ linuxkpi_ieee80211_beacon_loss(struct ieee80211_vif *vif)
|
||||
{
|
||||
struct lkpi_vif *lvif;
|
||||
struct ieee80211vap *vap;
|
||||
enum ieee80211_state nstate;
|
||||
int arg;
|
||||
|
||||
lvif = VIF_TO_LVIF(vif);
|
||||
vap = LVIF_TO_VAP(lvif);
|
||||
|
||||
/*
|
||||
* Go to scan; otherwise we need to elaborately check state and
|
||||
* handle accordingly, e.g., if in RUN we could call iv_bmiss.
|
||||
* Let the statemachine handle all neccessary changes.
|
||||
*/
|
||||
nstate = IEEE80211_S_SCAN;
|
||||
arg = 0;
|
||||
|
||||
/* We should be in RUN. Can we assert that? */
|
||||
#ifdef LINUXKPI_DEBUG_80211
|
||||
if (linuxkpi_debug_80211 & D80211_TRACE || vap->iv_state != IEEE80211_S_RUN)
|
||||
ic_printf(vap->iv_ic, "%s: vif %p vap %p state %s\n", __func__,
|
||||
vif, vap, ieee80211_state_name[vap->iv_state]);
|
||||
#endif
|
||||
ieee80211_new_state(vap, nstate, arg);
|
||||
ieee80211_beacon_miss(vap->iv_ic);
|
||||
}
|
||||
|
||||
MODULE_VERSION(linuxkpi_wlan, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user