I installed OpenWrt openwrt-22.03.2-bcm27xx-bcm2711-rpi-4-squashfs-factory.img.gz
into a Raspberry Pi 4B with a ComFast CF-953AX WiFi Adapter. I use the internal WiFi card as client connected to a public network and ComFast USB WiFi card as AP, everything is functional. I can connect to Skynet
AP and use the internet on my iPhone.
ComFast CF-953AX adapter requires the following drivers, see full setup discussion:
opkg update
opkg install kmod-mt7921e kmod-mt7921u
Configuring kmod-crypto-gf128.
Configuring kmod-crypto-null.
Configuring kmod-crypto-aead.
Configuring kmod-crypto-manager.
Configuring kmod-crypto-hmac.
Configuring kmod-crypto-sha256.
Configuring kmod-crypto-rng.
Configuring kmod-crypto-seqiv.
Configuring kmod-crypto-ctr.
Configuring kmod-crypto-cmac.
Configuring kmod-crypto-ccm.
Configuring kmod-crypto-ghash.
Configuring kmod-crypto-gcm.
Configuring kmod-mac80211.
Configuring kmod-mt76-core.
Configuring kmod-mt76-usb.
Configuring kmod-mt76-connac.
Configuring kmod-mt7921-common.
Configuring kmod-mt7921e.
Configuring kmod-mt7921u.
reboot
My goal is to always have the Master
AP functional, so I can access the router and configure the public Client
.
After initial successful setup, when I reboot the Pi, the Master
AP is marked as disabled
and the Client
is associated to wlan1
(note also the Disable
button on right side of Master
):
Skynet
wireless network shows as Enabled
:
To fix the issue, I have to physically remove the USB WiFi adapter > reboot > connect the USB WiFi adapter > Login to LuCI > press the Disable
button to actually disable the Master
radio, then press Enable
to enable it.
I originally thought the kmod-usb3
package might also be required, but it did not do any difference after install and reboot. I'm wondering if there is a misconfigured setting I missed, these are the only settings I modified:
# uci show firewall.@zone[0]
firewall.cfg02dc81=zone
firewall.cfg02dc81.name='lan'
firewall.cfg02dc81.network='lan'
firewall.cfg02dc81.input='ACCEPT'
firewall.cfg02dc81.output='ACCEPT'
firewall.cfg02dc81.forward='ACCEPT'
# uci show firewall.@zone[1]
firewall.cfg03dc81=zone
firewall.cfg03dc81.name='wan'
firewall.cfg03dc81.network='wan' 'wan6'
firewall.cfg03dc81.input='ACCEPT'
firewall.cfg03dc81.output='ACCEPT'
firewall.cfg03dc81.forward='REJECT'
firewall.cfg03dc81.masq='1'
firewall.cfg03dc81.mtu_fix='1'
# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd0d:0a94:8f11::/48'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ipaddr='10.10.100.1'
network.lan.force_link='1'
network.wan=interface
network.wan.proto='dhcp'
network.wan.dns='9.9.9.9' '1.1.1.1'
# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.band='5g'
wireless.radio0.htmode='VHT80'
wireless.radio0.channel='auto'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.mode='sta'
wireless.default_radio0.network='wan'
wireless.default_radio0.ssid='LANborghini'
wireless.default_radio0.key='public-client-password'
wireless.default_radio0.encryption='sae-mixed'
wireless.radio1=wifi-device
wireless.radio1.type='mac80211'
wireless.radio1.path='scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.3'
wireless.radio1.band='5g'
wireless.radio1.htmode='VHT80'
wireless.radio1.channel='auto'
wireless.default_radio1=wifi-iface
wireless.default_radio1.device='radio1'
wireless.default_radio1.network='lan'
wireless.default_radio1.mode='ap'
wireless.default_radio1.ssid='Skynet'
wireless.default_radio1.key='internal-ap-password'
wireless.default_radio1.encryption='sae-mixed'
Thank you for your help, I'm comfortable with uci
so please let me know you need any additional information.