rsi: rename USB endpoint macros
authorKarun Eagalapati <karun256@gmail.com>
Thu, 6 Jul 2017 14:37:12 +0000 (20:07 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:22:36 +0000 (17:22 +0300)
These endpoints are for WLAN and BT protocols.

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
drivers/net/wireless/rsi/rsi_usb.h

index dc0a0b2e9afc36adfec8a73a63d9fe0716903dbd..99967ce94a3908873d5daf67931e5242afef2c5b 100644 (file)
@@ -384,7 +384,7 @@ 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) ? MGMT_EP : DATA_EP);
+       endpoint = ((queueno == RSI_WIFI_MGMT_Q) ? WLAN_EP : BT_EP);
 
        return rsi_write_multiple(adapter,
                                  endpoint,
index 2c5c0e7a979ad7497232ea03ef2a84500557bb08..3babf81f5a390ce33d4dac3e60c4806bce031120 100644 (file)
@@ -33,8 +33,8 @@
 
 #define MAX_RX_URBS                  1
 #define MAX_BULK_EP                  8
-#define MGMT_EP                      1
-#define DATA_EP                      2
+#define WLAN_EP                      1
+#define BT_EP                        2
 
 #define RSI_USB_BUF_SIZE            4096