aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/net/wireless/ath/ath9k/hif_usb.h
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2010-04-06 15:28:15 +0530
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 15:24:10 -0400
commitc503269a0f77e9b2d6de9e8a5f66ace53dde6e04 (patch)
treefc525fcf618330b20ff5871659dcd1c59114f8b1 /drivers/net/wireless/ath/ath9k/hif_usb.h
parentath9k_htc: Fix RX URB reference count (diff)
downloadwireguard-linux-c503269a0f77e9b2d6de9e8a5f66ace53dde6e04.tar.xz
wireguard-linux-c503269a0f77e9b2d6de9e8a5f66ace53dde6e04.zip
ath9k_htc: Fix module unloading issue
The maximum number of packets in a single buffer in stream mode is 10. The driver currently uses 8 - which caused stack corruption, in the absence of any kind of OOB checking. Fixing this to the correct value of 10 fixes the module unload issue. Signed-off-by: Sujith <Sujith.Manoharan@atheros.com> Tested-by: Ming Lei <tom.leiming@gmail.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 ed9708cd4aa0..179cea46a8e7 100644
--- a/drivers/net/wireless/ath/ath9k/hif_usb.h
+++ b/drivers/net/wireless/ath/ath9k/hif_usb.h
@@ -34,6 +34,7 @@
#define MAX_RX_URB_NUM 8
#define MAX_RX_BUF_SIZE 16384
+#define MAX_PKT_NUM_IN_TRANSFER 10
#define MAX_REG_OUT_URB_NUM 1
#define MAX_REG_OUT_BUF_NUM 8