rsi: choose correct endpoint based on queue.
authorKarun Eagalapati <karun256@gmail.com>
Thu, 6 Jul 2017 14:37:13 +0000 (20:07 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:22:37 +0000 (17:22 +0300)
Till now only management packets were handled. Let's enhance
the logic for choosing endpoint to accommodate other packets.

Signed-off-by: Karun Eagalapati <karun256@gmail.com>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_usb.c

index 99967ce94a3908873d5daf67931e5242afef2c5b..3febf24d619bcebc69e4e37c8b070971de72ceb2 100644 (file)
@@ -384,7 +384,8 @@ static int rsi_usb_host_intf_write_pkt(struct rsi_hw *adapter,
        u32 queueno = ((pkt[1] >> 4) & 0x7);
        u8 endpoint;
 
-       endpoint = ((queueno == RSI_WIFI_MGMT_Q) ? WLAN_EP : BT_EP);
+       endpoint = ((queueno == RSI_WIFI_MGMT_Q || queueno == RSI_WIFI_DATA_Q ||
+                    queueno == RSI_COEX_Q) ? WLAN_EP : BT_EP);
 
        return rsi_write_multiple(adapter,
                                  endpoint,