morrownr / USB-WiFi

USB WiFi Adapter Information for Linux
2.4k stars 161 forks source link

Can anyone help to add a new device ID (VID/PID) of a nineplus mt7921au wifi adapter to official kernel? #329

Open pcslide opened 8 months ago

pcslide commented 8 months ago

Under Windows 10/11, it's a plug and play device, and is identified as "Nineplus Wi-Fi 6/6E Wireless USB Lan Card". Its device ID is USB\VID_363E&PID_7961&REV_0100 I manually added device ID and it worked on kernel 6.5

I think I finally find the product page here https://www.ninepluswifi.com/view/usb-wifi-adapter-for-pc-deskto.html

Here is a link of the item https://detail.tmall.com/item.htm?id=740409529693 In case anyone can not access the page above , try https://detail.tmall.com/item.htm?id=680858330260

The product looks like this and should be the first option on the list wifi6card_translated

morrownr commented 8 months ago

Hi @pcslide

I'll try to get you some help. I'm busy this week and i don't have a guide up for this but I wish I did. Maybe someone will read this and create one. In the meantime, read the following to get an idea:

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

It does not include everything you need to know so will need me or someone to help this first time.

Nick

morrownr commented 8 months ago

Also, can you provide a link to the product? to the place where you bought it and to the company product site?

bjlockie commented 8 months ago

Under Windows 10/11, it's a plug and play device, and is identified as "Nineplus Wi-Fi 6/6E Wireless USB Lan Card". Its device ID is USB\VID_363E&PID_7961&REV_0100 I manually added device ID and it worked on kernel 6.5

Anyone know how Windows knows which driver goes with which device? they don't do have to add a device id.

morrownr commented 8 months ago

Anyone know how Windows knows which driver goes with which device?

Windows... what is this Windows? Is it a Linux distro that I have not heard about?

Now back to reality.

@bjlockie

Is that you volunteering to help the OP submit a patch to linux-wireless?

bjlockie commented 8 months ago

Windows... what is this Windows? Is it a Linux distro that I have not heard about?

I wondered why Linux needs patches to support new devices and Windows doesn't. Linux is usually way better but Windows seems to have some smarts for new USB devices that I wish Linux had.

pcslide commented 8 months ago

Also, can you provide a link to the product? to the place where you bought it and to the company product site?

As it sells on Taobao's Workshop( you could see it as Alibaba's Amazon essential equivalent), and the item bears no brand on itself and on it's pack. The idea is to let the original manufacturer sell to end custom directly. As this wireless card is advertised as driver free under Win 10/11, they don't need to provide tech. support. The only support you can get is to return the product if you are not satisfied and they will cover all the shipping cost and may add additional 3 CNY to your account for all the inconvenience. I got it for 33 CNY(around 4 USD). I don't know if it is against community rules to give a direct link to buy this wireless card. If it is not, I will add a link.

pcslide commented 8 months ago

I'm afraid Taobao's Workshop is not accessible without an account. Here is the product summary( it was originally in Chinese). wifi6card_translated

pcslide commented 8 months ago
Does it work with HUB? I have three HUBs and here is the results. Brand Chips Ports Result
SSK GL3520 USB 3.0 can not detect hardware properly
ICSI GL3520 + GL3523 USB 3.0 works properly
$1 item with no brand unknown USB 3.0 + USB 2.0 works properly on USB 2.0 ports, can not connect to AP when adaptor is on USB 3.0 port

All HUBs were bus-powered when I ran those tests.

morrownr commented 7 months ago

@pcslide

I don't know if it is against community rules to give a direct link to buy this wireless card. If it is not, I will add a link.

Adding links is actually encouraged.

My opinion based on what you have posted is that this adapter is being made by some manufacturer as a "white box" product where sellers can buy it and sell it as a unbranded product or brand it as their own. This is fairly command in the market. This can make it a challenge for us to narrow the product down something we can recommend.

I see in the picture above the words "driver free". That usually means the adapter is a multi-state adapter which rules out me putting it in the Plug and Play list.

Have you made any progress toward how to submit a patch to include the vid/pid? If you used the manual method to include it and it is working, there is not need to be a hurry because a properly done patch can be taken back as far as kernel 6.1 in a case like this.

@morrownr

pcslide commented 7 months ago

@morrownr It is NOT a multi-state adapter. I suppose it is "driver free" in a sense that windows 10/11 will automatically download and install the driver for you. However, it seems a little absurd, as you need a internet connection for it to be "driver free".

morrownr commented 7 months ago

@pcslide

It is NOT a multi-state adapter.

That is good to hear. Have you deactivated usb_modeswitch to double check?

How to deactivate usb_modeswitch:

$ sudo nano /etc/usb_modeswitch.conf

Change

DisableSwitching=0

to

DisableSwitching=1

Then reboot

Hey @russeree

@pcslide has a new adapter that has a company vid/pid that needs to go into the kernel. I'm neck deep on a couple of things right now and don't have a guide for this and the posted guide on the kernel site is less than complete. Would you mind giving him a helping hand?

@morrownr

russeree commented 7 months ago

I would love to submit a patch!

With that said with certainty the VID 363E PID 7961 belongs to a mt7921au chipset? I would hate to submit a bogus patch. If time is acceptable I can order an adapter to do proper testing?

Edit: After some research obtaining the Nineplus mt7921au in the USA would be harder than I thought as they don't seem to be available. I would pay shipping both ways to get one to test with and return it promptly.

Edit 2: I have reached out to Nineplus to verify the chipset.

pcslide commented 7 months ago

@russeree Hi, from the driver automatically downloaded and installed by windows 11 when I plug the adapter in, I am pretty sure the adaptor belongs to MediaTek mt7921 series.
nineplus under win11

It works flawlessly in station mode with this driver so far. (It lacks Soft AP and WIFI-direct support under Windows) As for how well it behaves with Linux kernel driver, allow me more time to test it.

russeree commented 7 months ago

@morrownr This response from Nineplus doesn't confirm the findings of members here. I however don't trust the support agent fully because they didn't disclose which other chipset that adapter uses.

image

@pcslide

https://www.amazon.com/USB-WiFi-Adapter-Desktop-AX1800Mbps/dp/B0CC2D675M/ref=sr_1_2?c=ts&keywords=USB%2BComputer%2BNetwork%2BAdapters&qid=1699895837&refinements=p_89%3ANineplus&s=pc&sr=1-2&ts_id=13983791&th=1

Is that the adapter? I will order one today if so to add the VID/PIDs into the kernel.

pcslide commented 7 months ago

@russeree It looks the same as the one I bought, but I don't think anyone can be 100 percent sure they use the same chip inside from the look🤔