rtlwifi: rtl8192cu: Add new device ID
PATCH 1/1 rtlwifi: rtl8192cu: Add new device ID
Add new ID for ASUS N10 WiFi dongle.
--- drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 1 + 1 file changed, 1 insertion(+)
Bus 001 Device 004: ID 0b05:17ba ASUSTek Computer, Inc. Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0b05 ASUSTek Computer, Inc. idProduct 0x17ba bcdDevice 2.00 iManufacturer 1 Realtek iProduct 2 802.11n WLAN Adapter iSerial 3 00e04c000001 bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +1 -0
@@ -360,6 +360,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x04f2, 0xaffb, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x04f2, 0xaffc, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x2019, 0x1201, rtl92cu_hal_cfg)}, /*Planex-Vencer*/ + {RTL_USB_DEVICE(0x0b05, 0x17ba, rtl92cu_hal_cfg)}, /*ASUS-Edimax*//****** 8192CU ********/ {RTL_USB_DEVICE(0x050d, 0x1004, rtl92cu_hal_cfg)}, /*Belcom-SurfN300*/
Signature · 1 line
2.1.4
Quoted 104 lines · Marek Vasut
Add new ID for ASUS N10 WiFi dongle.
Signed-off-by Marek Vasut <[email protected]>Cc Larry Finger <[email protected]>Cc John W. Linville <[email protected]>Cc Chaoming Li <[email protected]>--- drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 1 + 1 file changed, 1 insertion(+)Bus 001 Device 004: ID 0b05:17ba ASUSTek Computer, Inc. Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0b05 ASUSTek Computer, Inc. idProduct 0x17ba bcdDevice 2.00 iManufacturer 1 Realtek iProduct 2 802.11n WLAN Adapter iSerial 3 00e04c000001 bNumConfigurations 1Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x81EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x02EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x03EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize0x02001x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress0x84EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize0x00401x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0bMaxPacketSize0 64
bNumConfigurations 1
Device Status:0x0000
(Bus Powered)drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +0
-0
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c static struct usb_device_id rtl8192c_usb_ids[] = { · line 366
Quoted 7 lines
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +1
-0@@ -360,6 +360,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(0x04f2, 0xaffb, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x04f2, 0xaffc, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x2019, 0x1201, rtl92cu_hal_cfg)}, /*Planex-Vencer*/ + {RTL_USB_DEVICE(0x0b05, 0x17ba, rtl92cu_hal_cfg)}, /*ASUS-Edimax*//****** 8192CU ********/ {RTL_USB_DEVICE(0x050d, 0x1004, rtl92cu_hal_cfg)}, /*Belcom-SurfN300*/
The full dump from lsusb is a bit much for a commit message. All you need is the one line from lsusb with no switches set.
According to the Vendor driver, which the comment indicates as the source of part of your patch, this particular device belongs in the "Customer ID" section under 8188CU, not where you placed it. In addition, I like to keep the USB IDs in numerical order within each section. Accordingly, your new ID should be between 0846:9041 and 0bda:5088.
I am assuming that you have such a device. A statement that this change allows it to work should be in the commit message. If you have not tested, then you need to state that.
Larry
Quoted 18 lines · Larry Finger
Quoted 17 lines · Marek Vasut
Add new ID for ASUS N10 WiFi dongle.
Signed-off-by Marek Vasut <[email protected]>Cc Larry Finger <[email protected]>Cc John W. Linville <[email protected]>Cc Chaoming Li <[email protected]>---
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 1 + 1 file changed, 1 insertion(+)Bus 001 Device 004: ID 0b05:17ba ASUSTek Computer, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
[...]
Quoted 7 lines
Quoted 7 lines
(quoted diff) +0
-0
b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.cindex 90a714c..d451d2b 100644drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +0
-0@@ -360,6 +360,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = {
Quoted 8 lines
Quoted 8 lines
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +1
-0{RTL_USB_DEVICE(0x04f2, 0xaffb, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x04f2, 0xaffc, rtl92cu_hal_cfg)}, /*Xavi*/ {RTL_USB_DEVICE(0x2019, 0x1201, rtl92cu_hal_cfg)}, /*Planex-Vencer*/ + {RTL_USB_DEVICE(0x0b05, 0x17ba, rtl92cu_hal_cfg)}, /*ASUS-Edimax*//****** 8192CU ********/
{RTL_USB_DEVICE(0x050d, 0x1004, rtl92cu_hal_cfg)}, /*Belcom-SurfN300*/
Hi!
Quoted 2 lines
The full dump from lsusb is a bit much for a commit message. All you need is the one line from lsusb with no switches set.
That's why I added it below the diffstat, so that it doesn't polute the commit message.
Quoted 2 lines
According to the Vendor driver, which the comment indicates as the source of part of your patch,
In fact, the comment came from that same source file, from 0b05:17ab line. The vendor is the same though, so I kept the comment.
Quoted 4 lines
this particular device belongs in the "Customer ID"
section under 8188CU, not where you placed it. In addition, I like to keep the USB IDs in numerical order within each section. Accordingly, your new ID should be between 0846:9041 and 0bda:5088.
OK.
Quoted 3 lines
I am assuming that you have such a device. A statement that this change allows it to work should be in the commit message. If you have not tested, then you need to state that.
I have one and I tested it, I mostly checked the other commit messages and wrote the same thing. It's a rather mindless change afterall.