mirror of
https://github.com/proski/madwifi
synced 2025-02-21 09:44:31 +03:00
Restore some of the BSS synchronization code, but only add the goto that skips the beacon timer updates for IBSS.
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3290 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
e2ac8356c2
commit
d25a86ffe3
@ -5143,15 +5143,14 @@ ath_beacon_config(struct ath_softc *sc, struct ieee80211vap *vap)
|
|||||||
* next beacon timestamp again */
|
* next beacon timestamp again */
|
||||||
nexttbtt = roundup(hw_tsftu + FUDGE, intval);
|
nexttbtt = roundup(hw_tsftu + FUDGE, intval);
|
||||||
}
|
}
|
||||||
else {
|
else if (ic->ic_opmode == IEEE80211_M_IBSS) {
|
||||||
if (tsf > hw_tsf) {
|
if (tsf > hw_tsf) {
|
||||||
/* We received a beacon, but the HW TSF has
|
/* We received a beacon, but the HW TSF has
|
||||||
* not been updated (otherwise hw_tsf > tsf)
|
* not been updated (otherwise hw_tsf > tsf)
|
||||||
* We cannot use the hardware TSF, so we
|
* We cannot use the hardware TSF, so we
|
||||||
* wait to synchronize beacons again. */
|
* wait to synchronize beacons again. */
|
||||||
sc->sc_syncbeacon = 1;
|
sc->sc_syncbeacon = 1;
|
||||||
if (ic->ic_opmode == IEEE80211_M_IBSS)
|
goto ath_beacon_config_debug;
|
||||||
goto ath_beacon_config_debug;
|
|
||||||
} else {
|
} else {
|
||||||
/* Normal case: we received a beacon to which
|
/* Normal case: we received a beacon to which
|
||||||
* we have synchronized. Make sure that nexttbtt
|
* we have synchronized. Make sure that nexttbtt
|
||||||
@ -5292,9 +5291,7 @@ ath_beacon_config(struct ath_softc *sc, struct ieee80211vap *vap)
|
|||||||
ath_hal_intrset(ah, sc->sc_imask);
|
ath_hal_intrset(ah, sc->sc_imask);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
ath_beacon_config_debug:
|
ath_beacon_config_debug:
|
||||||
#endif
|
|
||||||
/* We print all debug messages here, in order to preserve the
|
/* We print all debug messages here, in order to preserve the
|
||||||
* time critical aspect of this function */
|
* time critical aspect of this function */
|
||||||
DPRINTF(sc, ATH_DEBUG_BEACON,
|
DPRINTF(sc, ATH_DEBUG_BEACON,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user