|
@@ -18,6 +18,12 @@
|
|
|
|
|
|
#define FUDGE 2
|
|
#define FUDGE 2
|
|
|
|
|
|
|
|
+static void ath9k_reset_beacon_status(struct ath_softc *sc)
|
|
|
|
+{
|
|
|
|
+ sc->beacon.tx_processed = false;
|
|
|
|
+ sc->beacon.tx_last = false;
|
|
|
|
+}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* This function will modify certain transmit queue properties depending on
|
|
* This function will modify certain transmit queue properties depending on
|
|
* the operating mode of the station (AP or AdHoc). Parameters are AIFS
|
|
* the operating mode of the station (AP or AdHoc). Parameters are AIFS
|
|
@@ -72,6 +78,8 @@ static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp,
|
|
struct ieee80211_supported_band *sband;
|
|
struct ieee80211_supported_band *sband;
|
|
u8 rate = 0;
|
|
u8 rate = 0;
|
|
|
|
|
|
|
|
+ ath9k_reset_beacon_status(sc);
|
|
|
|
+
|
|
ds = bf->bf_desc;
|
|
ds = bf->bf_desc;
|
|
flags = ATH9K_TXDESC_NOACK;
|
|
flags = ATH9K_TXDESC_NOACK;
|
|
|
|
|
|
@@ -134,6 +142,8 @@ static struct ath_buf *ath_beacon_generate(struct ieee80211_hw *hw,
|
|
struct ieee80211_tx_info *info;
|
|
struct ieee80211_tx_info *info;
|
|
int cabq_depth;
|
|
int cabq_depth;
|
|
|
|
|
|
|
|
+ ath9k_reset_beacon_status(sc);
|
|
|
|
+
|
|
avp = (void *)vif->drv_priv;
|
|
avp = (void *)vif->drv_priv;
|
|
cabq = sc->beacon.cabq;
|
|
cabq = sc->beacon.cabq;
|
|
|
|
|
|
@@ -644,6 +654,8 @@ static void ath_beacon_config_adhoc(struct ath_softc *sc,
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
struct ath_common *common = ath9k_hw_common(ah);
|
|
u32 tsf, delta, intval, nexttbtt;
|
|
u32 tsf, delta, intval, nexttbtt;
|
|
|
|
|
|
|
|
+ ath9k_reset_beacon_status(sc);
|
|
|
|
+
|
|
tsf = ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE);
|
|
tsf = ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE);
|
|
intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD);
|
|
intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD);
|
|
|
|
|