Cant install MTK7601 / R5370 antena on my rasppi4 router

It's been 2 days since i started this project, I already did it like 3 or 4 times, and openwrt is not recognizing my USB dongle antenna.
I read and did what was said on those 2 topics below.

I'm sure that i have a mtk 7601 but the drivers are not working smh
please help :))

iw list
Wiphy phy1
        wiphy index: 1
        max # scan SSIDs: 10
        max scan IEs length: 2048 bytes
        max # sched scan SSIDs: 16
        max # match sets: 16
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * P2P-client
                 * P2P-GO
                 * P2P-device
        Band 1:
                Capabilities: 0x1022
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (disabled)
                        * 2472 MHz [13] (disabled)
                        * 2484 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x1062
                        HT20/HT40
                        Static SM Power Save
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                VHT Capabilities (0x00001020):
                        Max MPDU length: 3895
                        Supported Channel Width: neither 160 nor 80+80
                        short GI (80 MHz)
                        SU Beamformee
                VHT RX MCS set:
                        1 streams: MCS 0-9
                        2 streams: not supported
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT RX highest supported: 0 Mbps
                VHT TX MCS set:
                        1 streams: MCS 0-9
                        2 streams: not supported
                        3 streams: not supported
                        4 streams: not supported
                        5 streams: not supported
                        6 streams: not supported
                        7 streams: not supported
                        8 streams: not supported
                VHT TX highest supported: 0 Mbps
                Frequencies:
                        * 5170 MHz [34] (disabled)
                        * 5180 MHz [36] (20.0 dBm)
                        * 5190 MHz [38] (disabled)
                        * 5200 MHz [40] (20.0 dBm)
                        * 5210 MHz [42] (disabled)
                        * 5220 MHz [44] (20.0 dBm)
                        * 5230 MHz [46] (disabled)
                        * 5240 MHz [48] (20.0 dBm)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5720 MHz [144] (disabled)
                        * 5745 MHz [149] (20.0 dBm)
                        * 5765 MHz [153] (20.0 dBm)
                        * 5785 MHz [157] (20.0 dBm)
                        * 5805 MHz [161] (20.0 dBm)
                        * 5825 MHz [165] (20.0 dBm)
        valid interface combinations:
                 * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
                   total <= 3, #channels <= 2
                 * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
                   total <= 4, #channels <= 1
        max # scan plans: 1
        max scan plan interval: 508
        max scan plan iterations: 0
        Supported extended features:
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode
                * [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode
                * [ DFS_OFFLOAD ]: DFS offload
                * [ SAE_OFFLOAD ]: SAE offload support
                * [ 4WAY_HANDSHAKE_AP_PSK ]: AP mode PSK offload support

Probably wouldn't hurt to install pciutils and usbutils and then check the verbose output from lspci and lsusb, to be sure. You might find that what you think is an MTK7601 device might not be.

Alternately, if you have another computer you can use to interrogate the USB gadget, that may also help to determine what it is.

Whatever approach you take, if you're able to get the PCI ID - https://wiki.debian.org/HowToIdentifyADevice/PCI may be helpful here - then that may help prove what device you have, and if it is in fact what you think it is.

148f:7601 is an MT7601U, apparently.

This thread is from another forum member who had the same device: Wireless USB dongle doesn't work in Openwrt

https://www.google.com/search?q="148f%3A7601"+"openwrt" may also be of help.

Thanks, I already look some threads of that google search

and installed some drivers but, the usb dongle seems not to be recognized by openwrt.
I tested it on w11 and it works fine as a client and as a AP.
I'll keep researching.

So, I kept my research and i found out this:


I think that openwrt cant find the firmware even though I installed them by GUI...
(I was unplugging and pluggin the antenna)

You installed the package mt7601u-firmware? It's a separate package from the driver. Check to see if the firmware file is there...

# ls -l lib/firmware
total 48
-rw-r--r-- 1 root root 45412 Dec 14  2022 mt7601u.bin


Not kmod.

Just:
opkg install mt7601u-firmware

i guess its not on /lib/firmware/, how can I moveit? CP? or scp?

First you have to find where it got put. Maybe look for it in /lib/firmware/mediatek
What is your exact platform and version of OpenWrt? Can you show me the output of:
cat /etc/os-release

By the way, you don't need to post screen shots of everything. If it's easier you can use ``` and then can copy paste text in the editor and it will show it nicely. Do it like this:
```
text
text
text
```

And then it will show it like this:

text
text
text

The ` character is the backwards quote that on most keyboards is under the ESC key on the same key as the ~

I know that I don't need to post scrnshots but its easier.
here u go

root@OpenWrt:~#  cat /etc/os-release
NAME="OpenWrt"
VERSION="22.03.5"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 22.03.5"
VERSION_ID="22.03.5"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r20134-5f15225c1e"
OPENWRT_BOARD="bcm27xx/bcm2711"
OPENWRT_ARCH="aarch64_cortex-a72"
OPENWRT_TAINTS=""
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt 22.03.5 r20134-5f15225c1e"
root@OpenWrt:~#

root@OpenWrt:~# cd /lib/firmware/mediatek
root@OpenWrt:/lib/firmware/mediatek# ls
mt7601u.bin            mt7610e.bin            mt7610u.bin            mt7662u.bin            mt7662u_rom_patch.bin
root@OpenWrt:/lib/firmware/mediatek#

Yeah, it's there...
I also (before setting up the router) did an OpenWRT firmware update so...

cp -a /lib/firmware/mediatek/mt7601u.bib /lib/firmware

That should do it.

Interestingly I checked the package and it should have gone in the correct folder (/lib/firmware).

Im going to reboot and see if its detected and hope that works at least as a client.
I'll keep u updated.

Thank you:))

still doesnt ''recognize'' as a wifi adapter.
checked on GUI and on CLI

root@OpenWrt:~# vi /etc/config/wireless

root@OpenWrt:~# logread -f
Sat Jun 24 21:51:37 2023 kern.info kernel: [ 1972.292633] usb 1-1.3: USB disconnect, device number 6
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.259464] usb 1-1.3: new high-speed USB device number 7 using xhci_hcd
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.405934] usb 1-1.3: New USB device found, idVendor=148f, idProduct=7601, bcdDevice= 0.00
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.414300] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.421635] usb 1-1.3: Product: 802.11 n WLAN
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.426062] usb 1-1.3: Manufacturer: MediaTek
Sat Jun 24 21:51:39 2023 kern.info kernel: [ 1974.430434] usb 1-1.3: SerialNumber: 1.0

no longer has that error, but he simply doesnot recognize it has a wifi adapter

cat /etc/config/wireless
And redact any keys

1 Like
config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
        option htmode 'HT20'
        option disabled '0'
        option short_gi_40 '0'
        option cell_density '0'

config wifi-iface 'wifinet1'
        option device 'radio0'
        option mode 'sta'
        option network 'wwan'
        option ssid 'MEO-A873B0'
        option encryption 'psk2'
        option key '*************'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0'
        option channel '1'
        option band '2g'
        option htmode 'HT20'
        option disabled '1'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

Ok it worked!!! I installed the driver an rebooted the Raspi (''we'' only installed the firmware)
For what I can tell from another threads, this antenna doesn't support AP (on OpenWRT)so i'll configure it as a client and the onboard as AP.

Thank you very much.

That's really not advisable, unless you like slow wifi, and live in a place smaller than a toilet stall.

2 Likes

Ik, but it's for a school project and i bought the wrong antenna, I just want it to work.