summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-04-16 08:47:39 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-04-19 19:38:05 (GMT)
commitcea3235cf578b5e952f5a0cec9bc6c2e862eb697 (patch)
tree7dc7730958333dba25cea5e6a12e73d97909d7a4 /drivers/net
parent2be7859f41e9bcef5b15bd23d63e01536344e3df (diff)
downloadlinux-cea3235cf578b5e952f5a0cec9bc6c2e862eb697.tar.xz
ath9k_htc: Fix free slot value for cab queue
ath9k_htc_tx_get_slot can return zero as valid index. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Acked-by: Sujith Manoharan <Sujith.Manoharan@Atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_beacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
index bf7ef1b..a157107 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
@@ -322,7 +322,7 @@ static void ath9k_htc_send_buffered(struct ath9k_htc_priv *priv,
}
tx_slot = ath9k_htc_tx_get_slot(priv);
- if (tx_slot != 0) {
+ if (tx_slot < 0) {
ath_dbg(common, ATH_DBG_XMIT, "No free CAB slot\n");
dev_kfree_skb_any(skb);
goto next;