diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index 07f26ee7a723..852745c2b752 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -177,8 +177,8 @@ void ath_descdma_cleanup(struct ath_softc *sc, struct ath_descdma *dd, | |||
177 | 177 | ||
178 | /* returns delimiter padding required given the packet length */ | 178 | /* returns delimiter padding required given the packet length */ |
179 | #define ATH_AGGR_GET_NDELIM(_len) \ | 179 | #define ATH_AGGR_GET_NDELIM(_len) \ |
180 | (((((_len) + ATH_AGGR_DELIM_SZ) < ATH_AGGR_MINPLEN) ? \ | 180 | (((_len) >= ATH_AGGR_MINPLEN) ? 0 : \ |
181 | (ATH_AGGR_MINPLEN - (_len) - ATH_AGGR_DELIM_SZ) : 0) >> 2) | 181 | DIV_ROUND_UP(ATH_AGGR_MINPLEN - (_len), ATH_AGGR_DELIM_SZ)) |
182 | 182 | ||
183 | #define BAW_WITHIN(_start, _bawsz, _seqno) \ | 183 | #define BAW_WITHIN(_start, _bawsz, _seqno) \ |
184 | ((((_seqno) - (_start)) & 4095) < (_bawsz)) | 184 | ((((_seqno) - (_start)) & 4095) < (_bawsz)) |
@@ -312,7 +312,6 @@ struct ath_rx { | |||
312 | u8 rxotherant; | 312 | u8 rxotherant; |
313 | u32 *rxlink; | 313 | u32 *rxlink; |
314 | unsigned int rxfilter; | 314 | unsigned int rxfilter; |
315 | spinlock_t rxflushlock; | ||
316 | spinlock_t rxbuflock; | 315 | spinlock_t rxbuflock; |
317 | struct list_head rxbuf; | 316 | struct list_head rxbuf; |
318 | struct ath_descdma rxdma; | 317 | struct ath_descdma rxdma; |
@@ -346,8 +345,8 @@ void ath_tx_tasklet(struct ath_softc *sc); | |||
346 | void ath_tx_edma_tasklet(struct ath_softc *sc); | 345 | void ath_tx_edma_tasklet(struct ath_softc *sc); |
347 | void ath_tx_cabq(struct ieee80211_hw *hw, struct sk_buff *skb); | 346 | void ath_tx_cabq(struct ieee80211_hw *hw, struct sk_buff *skb); |
348 | bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno); | 347 | bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, u8 tidno); |
349 | void ath_tx_aggr_start(struct ath_softc *sc, struct ieee80211_sta *sta, | 348 | int ath_tx_aggr_start(struct ath_softc *sc, struct ieee80211_sta *sta, |
350 | u16 tid, u16 *ssn); | 349 | u16 tid, u16 *ssn); |
351 | void ath_tx_aggr_stop(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid); | 350 | void ath_tx_aggr_stop(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid); |
352 | void ath_tx_aggr_resume(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid); | 351 | void ath_tx_aggr_resume(struct ath_softc *sc, struct ieee80211_sta *sta, u16 tid); |
353 | void ath9k_enable_ps(struct ath_softc *sc); | 352 | void ath9k_enable_ps(struct ath_softc *sc); |
@@ -516,7 +515,6 @@ void ath_deinit_leds(struct ath_softc *sc); | |||
516 | #define SC_OP_RXFLUSH BIT(7) | 515 | #define SC_OP_RXFLUSH BIT(7) |
517 | #define SC_OP_LED_ASSOCIATED BIT(8) | 516 | #define SC_OP_LED_ASSOCIATED BIT(8) |
518 | #define SC_OP_LED_ON BIT(9) | 517 | #define SC_OP_LED_ON BIT(9) |
519 | #define SC_OP_SCANNING BIT(10) | ||
520 | #define SC_OP_TSF_RESET BIT(11) | 518 | #define SC_OP_TSF_RESET BIT(11) |
521 | #define SC_OP_BT_PRIORITY_DETECTED BIT(12) | 519 | #define SC_OP_BT_PRIORITY_DETECTED BIT(12) |
522 | #define SC_OP_BT_SCAN BIT(13) | 520 | #define SC_OP_BT_SCAN BIT(13) |
@@ -558,9 +556,9 @@ struct ath_softc { | |||
558 | struct ath_hw *sc_ah; | 556 | struct ath_hw *sc_ah; |
559 | void __iomem *mem; | 557 | void __iomem *mem; |
560 | int irq; | 558 | int irq; |
561 | spinlock_t sc_resetlock; | ||
562 | spinlock_t sc_serial_rw; | 559 | spinlock_t sc_serial_rw; |
563 | spinlock_t sc_pm_lock; | 560 | spinlock_t sc_pm_lock; |
561 | spinlock_t sc_pcu_lock; | ||
564 | struct mutex mutex; | 562 | struct mutex mutex; |
565 | struct work_struct paprd_work; | 563 | struct work_struct paprd_work; |
566 | struct work_struct hw_check_work; | 564 | struct work_struct hw_check_work; |