These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / staging / vt6656 / rxtx.c
index 5c58996..efb54f5 100644 (file)
 #include "usbpipe.h"
 
 static const u16 vnt_time_stampoff[2][MAX_RATE] = {
-       {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23},/* Long Preamble */
-       {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23},/* Short Preamble */
+       /* Long Preamble */
+       {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23},
+
+       /* Short Preamble */
+       {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23},
 };
 
 static const u16 vnt_fb_opt0[2][5] = {
@@ -87,7 +90,7 @@ static struct vnt_usb_send_context
                        return NULL;
 
                context = priv->tx_context[ii];
-               if (context->in_use == false) {
+               if (!context->in_use) {
                        context->in_use = true;
                        memset(context->data, 0,
                                        MAX_TOTAL_SIZE_WITH_ALL_HEADERS);
@@ -98,9 +101,12 @@ static struct vnt_usb_send_context
                }
        }
 
-       if (ii == priv->num_tx_context)
+       if (ii == priv->num_tx_context) {
                dev_dbg(&priv->usb->dev, "%s No Free Tx Context\n", __func__);
 
+               ieee80211_stop_queues(priv->hw);
+       }
+
        return NULL;
 }