summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/hif_usb.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-04-06 13:58:11 +0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 23:24:09 +0400
commit46baa1a24945b5813097af5a632db721f9c9d03b (patch)
tree5d25196c55cc0c9223ef2500f5065b70d5115447 /drivers/net/wireless/ath/ath9k/hif_usb.h
parent62c33447fa720d71b05bbc626b01351a4889c2d7 (diff)
downloadlinux-46baa1a24945b5813097af5a632db721f9c9d03b.tar.xz
ath9k_htc: Protect RX stream variables
Use a spin lock to prevent concurrent access to variables dealing with RX stream mode handling. Currently, no protection is implemented - which causes problems in RX. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hif_usb.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/hif_usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.h b/drivers/net/wireless/ath/ath9k/hif_usb.h
index ea9257bdc411..ed9708cd4aa0 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.h
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.h
@@ -93,6 +93,7 @@ struct hif_device_usb {
int rx_pkt_len;
int rx_transfer_len;
int rx_pad_len;
+ spinlock_t rx_lock;
u8 flags; /* HIF_USB_* */
};