aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c5
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c
index 3b10a6bb07d4..c486d0f8b3d3 100644
--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -486,7 +486,6 @@ static void ath9k_hw_init_defaults(struct ath_hw *ah)
486 ah->hw_version.magic = AR5416_MAGIC; 486 ah->hw_version.magic = AR5416_MAGIC;
487 ah->hw_version.subvendorid = 0; 487 ah->hw_version.subvendorid = 0;
488 488
489 ah->atim_window = 0;
490 ah->sta_id1_defaults = 489 ah->sta_id1_defaults =
491 AR_STA_ID1_CRPT_MIC_ENABLE | 490 AR_STA_ID1_CRPT_MIC_ENABLE |
492 AR_STA_ID1_MCAST_KSRCH; 491 AR_STA_ID1_MCAST_KSRCH;
@@ -2266,9 +2265,6 @@ void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period)
2266 case NL80211_IFTYPE_ADHOC: 2265 case NL80211_IFTYPE_ADHOC:
2267 REG_SET_BIT(ah, AR_TXCFG, 2266 REG_SET_BIT(ah, AR_TXCFG,
2268 AR_TXCFG_ADHOC_BEACON_ATIM_TX_POLICY); 2267 AR_TXCFG_ADHOC_BEACON_ATIM_TX_POLICY);
2269 REG_WRITE(ah, AR_NEXT_NDP_TIMER, next_beacon +
2270 TU_TO_USEC(ah->atim_window ? ah->atim_window : 1));
2271 flags |= AR_NDP_TIMER_EN;
2272 case NL80211_IFTYPE_MESH_POINT: 2268 case NL80211_IFTYPE_MESH_POINT:
2273 case NL80211_IFTYPE_AP: 2269 case NL80211_IFTYPE_AP:
2274 REG_WRITE(ah, AR_NEXT_TBTT_TIMER, next_beacon); 2270 REG_WRITE(ah, AR_NEXT_TBTT_TIMER, next_beacon);
@@ -2289,7 +2285,6 @@ void ath9k_hw_beaconinit(struct ath_hw *ah, u32 next_beacon, u32 beacon_period)
2289 REG_WRITE(ah, AR_BEACON_PERIOD, beacon_period); 2285 REG_WRITE(ah, AR_BEACON_PERIOD, beacon_period);
2290 REG_WRITE(ah, AR_DMA_BEACON_PERIOD, beacon_period); 2286 REG_WRITE(ah, AR_DMA_BEACON_PERIOD, beacon_period);
2291 REG_WRITE(ah, AR_SWBA_PERIOD, beacon_period); 2287 REG_WRITE(ah, AR_SWBA_PERIOD, beacon_period);
2292 REG_WRITE(ah, AR_NDP_PERIOD, beacon_period);
2293 2288
2294 REGWRITE_BUFFER_FLUSH(ah); 2289 REGWRITE_BUFFER_FLUSH(ah);
2295 2290
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
index 1b45920f0448..3a7068236507 100644
--- a/drivers/net/wireless/ath/ath9k/hw.h
+++ b/drivers/net/wireless/ath/ath9k/hw.h
@@ -776,7 +776,6 @@ struct ath_hw {
776 u32 txurn_interrupt_mask; 776 u32 txurn_interrupt_mask;
777 atomic_t intr_ref_cnt; 777 atomic_t intr_ref_cnt;
778 bool chip_fullsleep; 778 bool chip_fullsleep;
779 u32 atim_window;
780 u32 modes_index; 779 u32 modes_index;
781 780
782 /* Calibration */ 781 /* Calibration */