]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ath9k: fix oops on trying to hold the wrong spinlock
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Fri, 3 Oct 2008 22:45:26 +0000 (15:45 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Oct 2008 22:14:56 +0000 (18:14 -0400)
We were trying to hold the wrong spinlock due to a typo
on IEEE80211_BAR_CTL_TID_S's definition. We use this to
compute the tid number and then hold this this tid number's
spinlock.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/core.h

index 80814c9910c96dafdc62c7dccd99e9094c39e1c6..5b4f1c48a6186123c2b0df57c34ef85bb9e606c5 100644 (file)
@@ -309,7 +309,7 @@ void ath_descdma_cleanup(struct ath_softc *sc,
 #define ATH_RX_TIMEOUT           40      /* 40 milliseconds */
 #define WME_NUM_TID              16
 #define IEEE80211_BAR_CTL_TID_M  0xF000  /* tid mask */
-#define IEEE80211_BAR_CTL_TID_S        /* tid shift */
+#define IEEE80211_BAR_CTL_TID_S  12      /* tid shift */
 
 enum ATH_RX_TYPE {
        ATH_RX_NON_CONSUMED = 0,