AWUS036ACM not functioning on Raspberry P4 B 8GB

Last couple of days I have been trying to set up a travel router. I have got a Raspberry Pi 4 8GB, firstly installed a fresh RaspberryOS and updated the eeprom.

Then installed openwrt-23.05.0-bcm27xx-bcm2711-rpi-4-squashfs-factory.img.gz on a SD-card and booted up the Pi4. OpenWrt runs and I set up a wwan, dhcp and dns. Al so far so good.

The USB WiFi antenna I bought to use is a AWUS036ACM which should have a MT7612U chipset. I succesfully tested this antenna on PiOS and there it showed up - out of the box - as: Bus 002 Device 001: ID 0e8d:7612 MediaTek MT7612U 801.11a/b/g/n/ac Wireless adapter, unfortunately when in OpenWrt it only shows as Bus 002 Device 003: ID 0e8d:7612 MediaTek Inc. Wireless on the lsusb:

lsusb output

Bus 001 Device 002: ID 2109:3431 USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.15.134 xhci-hcd xHCI Host Controller
Bus 002 Device 006: ID 0e8d:7612 MediaTek Inc. Wireless
Bus 002 Device 001: ID 1d6b:0003 Linux 5.15.134 xhci-hcd xHCI Host Controller

Which boils down to ifconfig: SIOCGIFFLAGS: No such device on the command ifconfig wlan1 up. Of course I did an extensive search on the forum and other places, but I can not get my head around why I am nog getting the right driver. I have installed and tried all the packages/drivers I found in multiple posts:

opkg installed packages usb/mt76

usbutils - 014-1
kmod-usb-core - 5.15.134-1
kmod-usb-ehci - 5.15.134-1
kmod-usb-hid - 5.15.134-1
kmod-usb-net - 5.15.134-1
kmod-usb-net-asix - 5.15.134-1
kmod-usb-net-lan78xx - 5.15.134-1
kmod-usb-ohci - 5.15.134-1
kmod-usb-uhci - 5.15.134-1
kmod-usb-xhci-hcd - 5.15.134-1
kmod-usb2 - 5.15.134-1
kmod-usb3 - 5.15.134-1
kmod-mt76 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76-core - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76-usb - 5.15.134+2023-08-14-b14c2351-1
kmod-mt7603 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x0-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x02-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x02-usb - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x0u - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2u - 5.15.134+2023-08-14-b14c2351-1
brcmfmac-firmware-usb - 20230804-1

For my post I have tried to gather as much information as possible, so here follows some more data:

all installed packages

base-files - 1545-r23497-6637af95aa
bcm27xx-gpu-fw - 2022-05-16-3673be308132de102fdff491d1333d9d0f823557
bcm27xx-userland - c4fd1b8986c6d6d4ae5cd51e65a8bbeb495dfa4e-1
brcmfmac-firmware-usb - 20230804-1
brcmfmac-nvram-43455-sdio - 20230804-1
busybox - 1.36.1-1
ca-bundle - 20230311-1
cgi-io - 2022-08-10-901b0f04-21
cypress-firmware-43455-sdio - 5.10.9-2022_0909-1
dnsmasq - 2.89-4
dropbear - 2022.82-5
e2fsprogs - 1.47.0-2
firewall4 - 2023-03-23-04a06bd7-1
fstools - 2023-02-28-bfe882d5-1
fwtool - 2019-11-12-8f7fe925-1
getrandom - 2022-08-13-4c7b720b-2
hostapd-common - 2023-09-08-e5ccbfc6-4
iw - 5.19-1
iwinfo - 2023-07-01-ca79f641-1
jansson4 - 2.14-3
jshn - 2023-05-23-75a3b870-1
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 5.15.134-1-4d407d5f01a611de6825ef905c07d710
kmod-brcmfmac - 5.15.134+6.1.24-3
kmod-brcmutil - 5.15.134+6.1.24-3
kmod-cfg80211 - 5.15.134+6.1.24-3
kmod-crypto-acompress - 5.15.134-1
kmod-crypto-aead - 5.15.134-1
kmod-crypto-ccm - 5.15.134-1
kmod-crypto-cmac - 5.15.134-1
kmod-crypto-crc32c - 5.15.134-1
kmod-crypto-ctr - 5.15.134-1
kmod-crypto-gcm - 5.15.134-1
kmod-crypto-gf128 - 5.15.134-1
kmod-crypto-ghash - 5.15.134-1
kmod-crypto-hash - 5.15.134-1
kmod-crypto-hmac - 5.15.134-1
kmod-crypto-manager - 5.15.134-1
kmod-crypto-null - 5.15.134-1
kmod-crypto-rng - 5.15.134-1
kmod-crypto-seqiv - 5.15.134-1
kmod-crypto-sha512 - 5.15.134-1
kmod-fixed-phy - 5.15.134-1
kmod-fs-vfat - 5.15.134-1
kmod-hid - 5.15.134-1
kmod-hid-generic - 5.15.134-1
kmod-input-core - 5.15.134-1
kmod-input-evdev - 5.15.134-1
kmod-lib-crc-ccitt - 5.15.134-1
kmod-lib-crc32c - 5.15.134-1
kmod-lib-lzo - 5.15.134-1
kmod-libphy - 5.15.134-1
kmod-mac80211 - 5.15.134+6.1.24-3
kmod-mdio-devres - 5.15.134-1
kmod-mii - 5.15.134-1
kmod-mmc - 5.15.134-1
kmod-mt76 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76-core - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76-usb - 5.15.134+2023-08-14-b14c2351-1
kmod-mt7603 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x0-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x02-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x02-usb - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x0u - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2 - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2-common - 5.15.134+2023-08-14-b14c2351-1
kmod-mt76x2u - 5.15.134+2023-08-14-b14c2351-1
kmod-net-selftests - 5.15.134-1
kmod-nf-conntrack - 5.15.134-1
kmod-nf-conntrack6 - 5.15.134-1
kmod-nf-flow - 5.15.134-1
kmod-nf-log - 5.15.134-1
kmod-nf-log6 - 5.15.134-1
kmod-nf-nat - 5.15.134-1
kmod-nf-reject - 5.15.134-1
kmod-nf-reject6 - 5.15.134-1
kmod-nfnetlink - 5.15.134-1
kmod-nft-core - 5.15.134-1
kmod-nft-fib - 5.15.134-1
kmod-nft-nat - 5.15.134-1
kmod-nft-offload - 5.15.134-1
kmod-nls-base - 5.15.134-1
kmod-nls-cp437 - 5.15.134-1
kmod-nls-iso8859-1 - 5.15.134-1
kmod-nls-utf8 - 5.15.134-1
kmod-of-mdio - 5.15.134-1
kmod-phy-ax88796b - 5.15.134-1
kmod-phy-microchip - 5.15.134-1
kmod-phy-realtek - 5.15.134-1
kmod-ppp - 5.15.134-1
kmod-pppoe - 5.15.134-1
kmod-pppox - 5.15.134-1
kmod-r8169 - 5.15.134-1
kmod-rt2800-lib - 5.15.134+6.1.24-3
kmod-rt2800-usb - 5.15.134+6.1.24-3
kmod-rt2x00-lib - 5.15.134+6.1.24-3
kmod-rt2x00-usb - 5.15.134+6.1.24-3
kmod-slhc - 5.15.134-1
kmod-sound-arm-bcm2835 - 5.15.134-1
kmod-sound-core - 5.15.134-1
kmod-tun - 5.15.134-1
kmod-usb-core - 5.15.134-1
kmod-usb-ehci - 5.15.134-1
kmod-usb-hid - 5.15.134-1
kmod-usb-net - 5.15.134-1
kmod-usb-net-asix - 5.15.134-1
kmod-usb-net-lan78xx - 5.15.134-1
kmod-usb-ohci - 5.15.134-1
kmod-usb-uhci - 5.15.134-1
kmod-usb-xhci-hcd - 5.15.134-1
kmod-usb2 - 5.15.134-1
kmod-usb3 - 5.15.134-1
libatomic1 - 12.3.0-4
libblkid1 - 2.39-2
libblobmsg-json20230523 - 2023-05-23-75a3b870-1
libc - 1.2.4-4
libcomerr0 - 1.47.0-2
libevdev - 1.13.0-1
libext2fs2 - 1.47.0-2
libf2fs6 - 1.16.0-1
libgcc1 - 12.3.0-4
libiwinfo-data - 2023-07-01-ca79f641-1
libiwinfo20230701 - 2023-07-01-ca79f641-1
libjson-c5 - 0.16-3
libjson-script20230523 - 2023-05-23-75a3b870-1
liblua5.1.5 - 5.1.5-10
liblucihttp-lua - 2023-03-15-9b5b683f-1
liblucihttp-ucode - 2023-03-15-9b5b683f-1
liblucihttp0 - 2023-03-15-9b5b683f-1
liblzo2 - 2.10-4
libmbedtls12 - 2.28.4-1
libmnl0 - 1.0.5-1
libncurses6 - 6.4-2
libnftnl11 - 1.2.6-1
libnl-tiny1 - 2023-07-27-bc92a280-1
libopenssl3 - 3.0.12-1
libpthread - 1.2.4-4
librt - 1.2.4-4
libsmartcols1 - 2.39-2
libss2 - 1.47.0-2
libubox20230523 - 2023-05-23-75a3b870-1
libubus-lua - 2023-06-05-f787c97b-1
libubus20230605 - 2023-06-05-f787c97b-1
libuci20130104 - 2023-08-10-5781664d-1
libuclient20201210 - 2023-04-13-007d9454-1
libucode20220812 - 2023-06-06-c7d84aae-1
libudev-zero - 1.0.1-1
libusb-1.0-0 - 1.0.26-3
libustream-mbedtls20201210 - 2023-02-25-498f6e26-1
libuuid1 - 2.39-2
logd - 2022-08-13-4c7b720b-2
lua - 5.1.5-10
luci - git-23.051.66410-a505bb1
luci-app-firewall - git-23.208.40260-9504081
luci-app-openvpn - git-23.013.73089-25983b9
luci-app-opkg - git-23.009.82915-ec3aac4
luci-base - git-23.236.53405-fc638c8
luci-compat - git-22.297.83017-673f382
luci-lib-base - git-22.308.54612-9118452
luci-lib-ip - git-20.250.76529-62505bd
luci-lib-jsonc - git-23.298.74571-62eb535
luci-lib-nixio - git-22.222.71555-88b9088
luci-light - git-23.024.33244-34dee82
luci-lua-runtime - git-23.233.52805-dae2684
luci-mod-admin-full - git-19.253.48496-3f93650
luci-mod-network - git-23.283.21598-257f54c
luci-mod-status - git-23.236.53405-9b3c7d3
luci-mod-system - git-23.118.78765-58f7b27
luci-proto-ipv6 - git-21.148.48881-79947af
luci-proto-ppp - git-21.158.38888-88b9d84
luci-ssl - git-23.035.26083-7550ad6
luci-theme-bootstrap - git-23.085.34270-d94a728
mkf2fs - 1.16.0-1
mtd - 26
nano - 7.2-2
netifd - 2023-09-19-7a58b995-1
nftables-json - 1.0.8-1
odhcp6c - 2023-05-12-bcd28363-20
odhcpd-ipv6only - 2023-06-24-52112643-1
openvpn-openssl - 2.5.8-3
openwrt-keyring - 2022-03-25-62471e69-2
opkg - 2022-02-24-d038e5b6-2
partx-utils - 2.39-2
ppp - 2.4.9.git-2021-01-04-4
ppp-mod-pppoe - 2.4.9.git-2021-01-04-4
procd - 2023-06-25-2db83655-2
procd-seccomp - 2023-06-25-2db83655-2
procd-ujail - 2023-06-25-2db83655-2
px5g-mbedtls - 9
r8169-firmware - 20230804-1
rpcd - 2023-07-01-c07ab2f9-1
rpcd-mod-file - 2023-07-01-c07ab2f9-1
rpcd-mod-iwinfo - 2023-07-01-c07ab2f9-1
rpcd-mod-luci - 20230123-1
rpcd-mod-rrdns - 20170710
rpcd-mod-ucode - 2023-07-01-c07ab2f9-1
rt2800-usb-firmware - 20230804-1
terminfo - 6.4-2
ubox - 2022-08-13-4c7b720b-2
ubus - 2023-06-05-f787c97b-1
ubusd - 2023-06-05-f787c97b-1
uci - 2023-08-10-5781664d-1
uclient-fetch - 2023-04-13-007d9454-1
ucode - 2023-06-06-c7d84aae-1
ucode-mod-fs - 2023-06-06-c7d84aae-1
ucode-mod-html - 1
ucode-mod-lua - 1
ucode-mod-math - 2023-06-06-c7d84aae-1
ucode-mod-nl80211 - 2023-06-06-c7d84aae-1
ucode-mod-rtnl - 2023-06-06-c7d84aae-1
ucode-mod-ubus - 2023-06-06-c7d84aae-1
ucode-mod-uci - 2023-06-06-c7d84aae-1
ucode-mod-uloop - 2023-06-06-c7d84aae-1
uhttpd - 2023-06-25-34a8a74d-1
uhttpd-mod-ubus - 2023-06-25-34a8a74d-1
urandom-seed - 3
usb-modeswitch - 2022-02-24-3c8595a4-1
usbutils - 014-1
usign - 2020-05-23-f1f65026-1
wireless-regdb - 2023.09.01-1
wpad-basic-mbedtls - 2023-09-08-e5ccbfc6-4

longread -f

Thu Nov 2 13:53:19 2023 kern.info kernel: [ 2151.478374] usb 1-1.1: USB disconnect, device number 4
Thu Nov 2 13:53:23 2023 kern.info kernel: [ 2155.561435] usb 1-1.1: new high-speed USB device number 5 using xhci_hcd
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.461788] usb 2-1: new SuperSpeed USB device number 4 using xhci_hcd
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.493369] usb 2-1: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.501568] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.508704] usb 2-1: Product: Wireless
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.512552] usb 2-1: Manufacturer: MediaTek Inc.
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.517168] usb 2-1: SerialNumber: 000000000
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.672131] usb 2-1: reset SuperSpeed USB device number 4 using xhci_hcd
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.703940] mt76x2u 2-1:1.0: ASIC revision: 76120044
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.752945] mt76x2u 2-1:1.0: ROM patch build: 20141115060606a
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.922316] mt76x2u 2-1:1.0: Firmware Version: 0.0.00
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.927408] mt76x2u 2-1:1.0: Build: 1
Thu Nov 2 13:53:24 2023 kern.info kernel: [ 2156.931062] mt76x2u 2-1:1.0: Build Time: 201607111443____
Thu Nov 2 13:53:25 2023 kern.debug kernel: [ 2157.834938] ieee80211 phy4: Selected rate control algorithm 'minstrel_ht'

dsmeg

[ 0.447591] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus
[ 0.495769] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 0.495813] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 0.496363] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0003800000000890
[ 0.497010] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 0.497034] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 0.497058] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 0.497285] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[ 0.497310] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.497328] usb usb1: Product: xHCI Host Controller
[ 0.497342] usb usb1: Manufacturer: Linux 5.15.134 xhci-hcd
[ 0.497356] usb usb1: SerialNumber: 0000:01:00.0
[ 0.497718] hub 1-0:1.0: USB hub found
[ 0.497767] hub 1-0:1.0: 1 port detected
[ 0.498213] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.15
[ 0.498238] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.498256] usb usb2: Product: xHCI Host Controller
[ 0.498270] usb usb2: Manufacturer: Linux 5.15.134 xhci-hcd
[ 0.498284] usb usb2: SerialNumber: 0000:01:00.0
[ 0.498592] hub 2-0:1.0: USB hub found
[ 0.498634] hub 2-0:1.0: 4 ports detected
[ 0.499437] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.499532] dwc_otg: FIQ enabled
[ 0.499538] dwc_otg: NAK holdoff enabled
[ 0.499543] dwc_otg: FIQ split-transaction FSM enabled
[ 0.499551] Module dwc_common_port init
[ 0.499859] usbcore: registered new interface driver uas
[ 0.499928] usbcore: registered new interface driver usb-storage
[ 0.787528] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 0.791987] printk: console [ttyAMA0] enabled
[ 1.000170] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21
[ 1.007583] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.010850] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.020523] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.024573] usb 1-1: Product: USB2.0 Hub
[ 1.031440] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.036042] hub 1-1:1.0: USB hub found
[ 1.074412] of_cfs_init
[ 1.094711] hub 1-1:1.0: 4 ports detected
[ 1.102499] of_cfs_init: OK
[ 5.557501] kmodloader: loading kernel modules from /etc/modules.d/*
[ 5.577686] tun: Universal TUN/TAP device driver, 1.6
[ 5.583993] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.590944] fsl-ehci: Freescale EHCI Host controller driver
[ 5.596880] ehci-platform: EHCI generic platform driver
[ 5.604395] hid: raw HID events driver (C) Jiri Kosina
[ 5.609888] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 5.621891] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[ 5.629419] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[ 5.637199] usbcore: registered new interface driver lan78xx
[ 5.646463] usbcore: registered new interface driver usbhid
[ 5.652058] usbhid: USB HID core driver
[ 5.690838] usbcore: registered new interface driver mt76x2u
[ 5.708831] PPP generic driver version 2.4.2
[ 5.713444] NET: Registered PF_PPPOX protocol family
[ 5.725204] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.734058] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin failed with error -2
[ 5.745716] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.bin
[ 5.756614] usbcore: registered new interface driver brcmfmac
[ 5.764216] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 6.006616] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jul 29 2022 02:15:20 version 7.45.250 (70e9766 CY) FWID 01-e53e306b
[ 7.190783] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 7.199340] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 7.207828] br-lan: port 1(eth0) entered blocking state
[ 7.213063] br-lan: port 1(eth0) entered disabled state
[ 7.218467] device eth0 entered promiscuous mode
[ 7.223959] br-lan: port 1(eth0) entered blocking state
[ 7.229205] br-lan: port 1(eth0) entered forwarding state
[ 7.405153] brcmfmac mmc1:0001:1 phy0-sta0: renamed from wlan0
[ 8.247586] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 8.697654] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-sta0: link becomes ready
[ 387.327050] kmodloader: loading kernel modules from /etc/modules.d/*
[ 387.339021] usbcore: registered new interface driver rt2800usb
[ 387.345036] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 414.384156] kmodloader: loading kernel modules from /etc/modules.d/*
[ 414.392744] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 414.399508] ohci-platform: OHCI generic platform driver
[ 414.405512] uhci_hcd: USB Universal Host Controller Interface driver
[ 414.413061] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 414.460775] kmodloader: loading kernel modules from /etc/modules.d/*
[ 414.469879] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 470.079976] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 470.111562] usb 2-1: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[ 470.119771] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 470.126906] usb 2-1: Product: Wireless
[ 470.130750] usb 2-1: Manufacturer: MediaTek Inc.
[ 470.135364] usb 2-1: SerialNumber: 000000000
[ 470.290296] usb 2-1: reset SuperSpeed USB device number 2 using xhci_hcd
[ 470.322170] mt76x2u 2-1:1.0: ASIC revision: 76120044
[ 470.365986] mt76x2u 2-1:1.0: ROM patch build: 20141115060606a
[ 470.536306] mt76x2u 2-1:1.0: Firmware Version: 0.0.00
[ 470.541382] mt76x2u 2-1:1.0: Build: 1
[ 470.545036] mt76x2u 2-1:1.0: Build Time: 201607111443____
[ 471.443139] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 979.613061] bcmgenet fd580000.ethernet eth0: Link is Down
[ 979.618766] br-lan: port 1(eth0) entered disabled state

lsusb -t

/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
|__ Port 1: Dev 2, If 0, Class=, Driver=mt76x2u, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M

lsusb -v -d 0e8d:7612

Bus 002 Device 006: ID 0e8d:7612 MediaTek Inc. Wireless
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x0e8d
idProduct 0x7612
bcdDevice 1.00
iManufacturer 2 MediaTek Inc.
iProduct 3 Wireless
iSerial 4 000000000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x007a
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 5 BT_Config
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 400mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 8
bInterfaceClass 255
bInterfaceSubClass 255
bInterfaceProtocol 255
iInterface 1 WiFi_If
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x08 EP 8 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x07 EP 7 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x09 EP 9 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 1
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x0016
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 180 micro seconds
Device Status: 0x000c
(Bus Powered)
U1 Enabled
U2 Enabled

cat /sys/kernel/debug/usb/device

T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0
D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
P: Vendor=0e8d ProdID=7612 Rev= 1.00
S: Manufacturer=MediaTek Inc.
S: Product=Wireless
S: SerialNumber=000000000
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=400mA
I:* If#= 0 Alt= 0 #EPs= 8 Cls=ff(vend.) Sub=ff Prot=ff Driver=mt76x2u
E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=85(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=08(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=05(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=07(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
E: Ad=09(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms

I hope anyone can lend a hand in solving this puzzle.

According to dmesg, the kernel detects the WiFi card just fine. The mistake is therefore likely to be the name of the interface. Could you please paste the output of iw dev?

Thank you for taking a look. The output of iw dev:

iw dev
phy#1
Interface phy1-sta0
ifindex 4
wdev 0x100000001
addr xx:xx:xx:xx:xx:xx
ssid PRIVATE
type managed
channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
txpower 31.00 dBm
phy#0
Interface phy0-ap0
ifindex 6
wdev 0x2
addr xx:xx:xx:xx:xx:xx
ssid OpenWrt
type AP
channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcoltx-bytes tx-packets
0 0 0 0 0 0 0 0

OK, so OpenWrt has already tried to use it. It is probably phy0-ap0.

@patrakov Thank you! I was already used by OpenWrt, somehow it took over the Raspberry Pi internal interface. With some tinkering I have managed to switch them around and get it all to work as desired!

Most tutorials working with a sort of similar set up state use the 'ifconfig wlan1 up'. When the 'ifconfig: SIOCGIFFLAGS: No such device' shows up, it is mostly the driver. In this case it was not and the device was already used by OpenWrt. My tip, thanks to you id to run the 'iw dev' command, check if the device is there (i.e. by mac-address). If it is there, then you can find out what it is use for and put it to work for a different task (if you want to).

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