|
@@ -226,6 +226,7 @@ int ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_vif *vif)
|
|
|
struct ath_vif *avp;
|
|
|
struct ath_buf *bf;
|
|
|
struct sk_buff *skb;
|
|
|
+ struct ath_beacon_config *cur_conf = &sc->cur_beacon_conf;
|
|
|
__le64 tstamp;
|
|
|
|
|
|
avp = (void *)vif->drv_priv;
|
|
@@ -282,7 +283,7 @@ int ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_vif *vif)
|
|
|
u64 tsfadjust;
|
|
|
int intval;
|
|
|
|
|
|
- intval = sc->beacon_interval ? : ATH_DEFAULT_BINTVAL;
|
|
|
+ intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL;
|
|
|
|
|
|
/*
|
|
|
* Calculate the TSF offset for this beacon slot, i.e., the
|
|
@@ -346,6 +347,7 @@ void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp)
|
|
|
void ath_beacon_tasklet(unsigned long data)
|
|
|
{
|
|
|
struct ath_softc *sc = (struct ath_softc *)data;
|
|
|
+ struct ath_beacon_config *cur_conf = &sc->cur_beacon_conf;
|
|
|
struct ath_hw *ah = sc->sc_ah;
|
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
|
struct ath_buf *bf = NULL;
|
|
@@ -393,7 +395,7 @@ void ath_beacon_tasklet(unsigned long data)
|
|
|
* on the tsf to safeguard against missing an swba.
|
|
|
*/
|
|
|
|
|
|
- intval = sc->beacon_interval ? : ATH_DEFAULT_BINTVAL;
|
|
|
+ intval = cur_conf->beacon_interval ? : ATH_DEFAULT_BINTVAL;
|
|
|
|
|
|
tsf = ath9k_hw_gettsf64(ah);
|
|
|
tsftu = TSF_TO_TU(tsf>>32, tsf);
|