# USB Wi-Fi Adapter Setup (MediaTek MT7612U) for GL-XE300 with OpenWRT 24.10.0

## Step 1: Detect USB Adapter
lsusb


Expected:

0e8d:7612 MediaTek Inc. Wireless

## Step 2: Confirm Driver Loads
dmesg | tail -n 50


Expected:

mt76x2u ... Firmware Version: 0.0.00
ieee80211 phy3: Selected rate control algorithm 'minstrel_ht'

## Step 3: Generate and Edit Wireless Config
wifi config

Replace /etc/config/wireless with:

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/ahb/18100000.wmac'
        option band '2g'
        option channel '1'
        option htmode 'HT20'
        option disabled '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt'
        option encryption 'none'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/ahb/1b000000.usb/usb1/1-1/1-1.3/1-1.3:1.0'
        option band '5g'
        option channel '36'
        option htmode 'VHT80'
        option disabled '0'

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



## Step 4: Bring Up Wireless
wifi down
wifi up
iw dev

Example Output:

  Interface phy3-ap0
    ssid OpenWrt-5G
    channel 40 (5200 MHz), width: 80 MHz

  Interface phy0-ap0
    ssid OpenWrt
    channel 1 (2412 MHz), width: 20 MHz

You now have both the internal 2.4GHz and external USB 5GHz radios running together in AP mode.

## Install Commands

```bash
opkg update && opkg install \
  kmod-mt76x2u mt76x2u-firmware usbutils

