ath9k_htc: Fix free slot value for cab queue
authorRajkumar Manoharan <rmanoharan@atheros.com>
Sat, 16 Apr 2011 08:47:39 +0000 (14:17 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Apr 2011 19:38:05 +0000 (15:38 -0400)
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>
drivers/net/wireless/ath/ath9k/htc_drv_beacon.c

index bf7ef1b7eb3f25d1919a13ce37a0177a4dd85343..a157107b3f3b894d39779f59205a1382770d3f91 100644 (file)
@@ -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;