How to figure out which driver should I use with my usb wifi adapter

Recently I decided to use a usb wifi adapter to add another radio device to my router. And the one I have is a Ralink RT5370. So the first thing I need to do is to figure out how to install the driver for the new hardware. After a quick google, I found out that

opkg update  
opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb 

are the commands that I should probably go for. Though the same commands are popping up everywhere on the internet, all of them are from someone's blog post or forum post. So I felt like it's pretty random, and wondered if there are any systematical way to tell me which driver I should install. I tried to search on the both the ralink and openwrt website, but got no luck.

So are there really some "conventional way" to decide which driver I should use for a new hardware? (aka what keyword should I add to after opkg install ?) I really feel like trying to get this kind of information from someone's blog post seems weird, how did they get the information at the first place?

You can plug that stick in a Linux desktop system, and look which modules are loaded to support it. (lsmod before and after). Then glue 'kmod-' before it and look if it is an existing package.

2 Likes

Normally you just search for chipset name/model like 'rt5370 linux kernel driver'.
Another good source of information is https://en.wikipedia.org/wiki/Comparison_of_open-source_wireless_drivers
You can see there that 5370 is served by rt2800usb.
Here is a reverse process, but sometimes it is good to verify the initial guess:
This is a page about rt2800usb: https://wireless.wiki.kernel.org/en/users/drivers/rt2800usb
RT5370 is not there, but if you will click on device list there, you will see the entry with 5370:

Ralink	RT5370	RT5370	0x148f	0x5370
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.