wifi: rtw88: Add support for Mercusys MA30N and D-Link DWA-T185 rev. A1
PATCH 1/1 wifi: rtw88: Add support for Mercusys MA30N and D-Link DWA-T185 rev. A1
Add two more USB IDs found in
https://github.com/RinCat/RTL88x2BU-Linux-Driver
to support Mercusys MA30N and D-Link DWA-T185 rev. A1.
---
Related discussions:
https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/237
https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/146
--- drivers/net/wireless/realtek/rtw88/rtw8822bu.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/net/wireless/realtek/rtw88/rtw8822bu.c +4 -0
@@ -73,6 +73,10 @@ static const struct usb_device_id rtw_8822bu_id_table[] = { .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* ELECOM WDB-867DU3S */ { USB_DEVICE_AND_INTERFACE_INFO(0x2c4e, 0x0107, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Mercusys MA30H */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2c4e, 0x010a, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Mercusys MA30N */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x3322, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* D-Link DWA-T185 rev. A1 */ {}, };MODULE_DEVICE_TABLE (usb, rtw_8822bu_id_table);
Signature · 1 line
2.48.1
Quoted 5 lines · Zenm Chen
Add two more USB IDs found in
https://github.com/RinCat/RTL88x2BU-Linux-Driver
to support Mercusys MA30N and D-Link DWA-T185 rev. A1.Signed-off-by Zenm Chen <[email protected]>
Quoted 14 lines
---
Related discussions:
https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/237
https://github.com/RinCat/RTL88x2BU-Linux-Driver/issues/146--- drivers/net/wireless/realtek/rtw88/rtw8822bu.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/net/wireless/realtek/rtw88/rtw8822bu.c +0
-0
drivers/net/wireless/realtek/rtw88/rtw8822bu.c static const struct usb_device_id rtw_8822bu_id_table[] = { · line 79
Quoted 7 lines
drivers/net/wireless/realtek/rtw88/rtw8822bu.c +4
-0@@ -73,6 +73,10 @@ static const struct usb_device_id rtw_8822bu_id_table[] = { .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* ELECOM WDB-867DU3S */ { USB_DEVICE_AND_INTERFACE_INFO(0x2c4e, 0x0107, 0xff, 0xff, 0xff), .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Mercusys MA30H */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2c4e, 0x010a, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* Mercusys MA30N */ + { USB_DEVICE_AND_INTERFACE_INFO(0x2001, 0x3322, 0xff, 0xff, 0xff), + .driver_info = (kernel_ulong_t)&(rtw8822b_hw_spec) }, /* D-Link DWA-T185 rev. A1 */
By the way, these IDs aren't in increasing order, how did you pick IDs from vendor driver?
Not sure if it's worth to sort these IDs so that it would be easier to align IDs with vendor driver (it should be sorted as well).
Quoted 2 lines
By the way, these IDs aren't in increasing order, how did you pick IDs from vendor driver?
Mikhail Novosyolov taught me a good command [1] to find out the missing USB IDs. :)
$ diff -u --color \ <(modinfo a.ko | grep ^alias | sort -u) \ <(modinfo b.ko | grep ^alias | sort -u)
[1] https://github.com/morrownr/88x2bu-20210702/issues/224#issuecomment-2404823387
Quoted 2 lines
Not sure if it's worth to sort these IDs so that it would be easier to align IDs with vendor driver (it should be sorted as well).
okay, I will send another patch to sort them after this is merged.
Ping-Ke Shih
maintainerQuoted 12 lines
Quoted 2 lines
By the way, these IDs aren't in increasing order, how did you pick IDs from vendor driver?
Mikhail Novosyolov taught me a good command [1] to find out the missing USB IDs. :)
$ diff -u --color \ <(modinfo a.ko | grep ^alias | sort -u) \ <(modinfo b.ko | grep ^alias | sort -u)[1] https://github.com/morrownr/88x2bu-20210702/issues/224#issuecomment-2404823387
Cool. I thought you compared them with source code rather than binary code. So maybe it is not necessary to align them in source code.
Ping-Ke Shih
maintainerQuoted 6 lines · Zenm Chen
Add two more USB IDs found in
https://github.com/RinCat/RTL88x2BU-Linux-Driver
to support Mercusys MA30N and D-Link DWA-T185 rev. A1.Signed-off-by Zenm Chen <[email protected]>Acked-by Ping-Ke Shih <[email protected]>
1 patch(es) applied to rtw-next branch of rtw.git, thanks.
80c4668d024f wifi: rtw88: Add support for Mercusys MA30N and D-Link DWA-T185 rev. A1