diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/beacon.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index eb4759fc6a0d..3a7154beeae1 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c | |||
@@ -63,7 +63,7 @@ static void ath_beacon_setup(struct ath_softc *sc, struct ath_vif *avp, | |||
63 | struct ath_hw *ah = sc->sc_ah; | 63 | struct ath_hw *ah = sc->sc_ah; |
64 | struct ath_desc *ds; | 64 | struct ath_desc *ds; |
65 | struct ath9k_11n_rate_series series[4]; | 65 | struct ath9k_11n_rate_series series[4]; |
66 | struct ath_rate_table *rt; | 66 | const struct ath_rate_table *rt; |
67 | int flags, antenna, ctsrate = 0, ctsduration = 0; | 67 | int flags, antenna, ctsrate = 0, ctsduration = 0; |
68 | u8 rate; | 68 | u8 rate; |
69 | 69 | ||
@@ -320,8 +320,7 @@ int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif) | |||
320 | u64 tsfadjust; | 320 | u64 tsfadjust; |
321 | int intval; | 321 | int intval; |
322 | 322 | ||
323 | intval = sc->hw->conf.beacon_int ? | 323 | intval = sc->beacon_interval ? : ATH_DEFAULT_BINTVAL; |
324 | sc->hw->conf.beacon_int : ATH_DEFAULT_BINTVAL; | ||
325 | 324 | ||
326 | /* | 325 | /* |
327 | * Calculate the TSF offset for this beacon slot, i.e., the | 326 | * Calculate the TSF offset for this beacon slot, i.e., the |
@@ -431,8 +430,7 @@ void ath_beacon_tasklet(unsigned long data) | |||
431 | * on the tsf to safeguard against missing an swba. | 430 | * on the tsf to safeguard against missing an swba. |
432 | */ | 431 | */ |
433 | 432 | ||
434 | intval = sc->hw->conf.beacon_int ? | 433 | intval = sc->beacon_interval ? : ATH_DEFAULT_BINTVAL; |
435 | sc->hw->conf.beacon_int : ATH_DEFAULT_BINTVAL; | ||
436 | 434 | ||
437 | tsf = ath9k_hw_gettsf64(ah); | 435 | tsf = ath9k_hw_gettsf64(ah); |
438 | tsftu = TSF_TO_TU(tsf>>32, tsf); | 436 | tsftu = TSF_TO_TU(tsf>>32, tsf); |
@@ -711,8 +709,7 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif) | |||
711 | /* Setup the beacon configuration parameters */ | 709 | /* Setup the beacon configuration parameters */ |
712 | 710 | ||
713 | memset(&conf, 0, sizeof(struct ath_beacon_config)); | 711 | memset(&conf, 0, sizeof(struct ath_beacon_config)); |
714 | conf.beacon_interval = sc->hw->conf.beacon_int ? | 712 | conf.beacon_interval = sc->beacon_interval ? : ATH_DEFAULT_BINTVAL; |
715 | sc->hw->conf.beacon_int : ATH_DEFAULT_BINTVAL; | ||
716 | conf.listen_interval = 1; | 713 | conf.listen_interval = 1; |
717 | conf.dtim_period = conf.beacon_interval; | 714 | conf.dtim_period = conf.beacon_interval; |
718 | conf.dtim_count = 1; | 715 | conf.dtim_count = 1; |