OpenWrt support for Linksys MX4200

I tried it and it works but only issue is, if let's say I set 5ghz to US and 2.4ghz to GB, it tries to override 2.4ghz to US aswell while the drop down menu says GB but the config overview will say US and it'll kill off 2.4ghz, but if you switch manually to US all works well

I think you can't set different country codes for the radios.

Check if tx power is now set correctly for different countries.

GB does 17 on 5ghz and US does 23 on 5ghz iirc

It's all working I can confirm that, if put it in pull request I'll gladly add comment saying that it works

I've tested it with GB under moderate load for a few hours and it worked well. I tested it with US under heavier load, but not video calls, and it worked well too. Is there any other country you're interested in testing?

Very importantly, the MAC patch for the wireless interfaces doesn't work so that's something that needs fixing or reverting.

MX4200v1.

I have been trying variations of GB and US county codes, changing Tx Power>
The 2.4GHz works very well. I can't get anything from the 5GHz. The SSID shows up intermittently on the network, unable to connect a client.

Is anyone using the released snapshot build on V1 with 5GHz working? If so please can you share the settings used?

ISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r24775-04ed95d1f9'
DISTRIB_TARGET='qualcommax/ipq807x'
DISTRIB_ARCH='aarch64_cortex-a53'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r24775-04ed95d1f9'
iwinfo

phy0-ap0  ESSID: "OpenWrt5g"
          Access Point: D8:############
          Mode: Master  Channel: 44 (5.220 GHz)  HT Mode: HE80
          Center Channel 1: 42 2: unknown
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: 8 dBm
          Bit Rate: unknown
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11ac/ax/n
          Hardware: embedded [Qualcomm Atheros IPQ8074]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

phy1-ap0  ESSID: "OpenWrt2.4G"
          Access Point: D8:###########
          Mode: Master  Channel: 11 (2.462 GHz)  HT Mode: HE20
          Center Channel 1: 11 2: unknown
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -107 dBm
          Bit Rate: unknown
          Encryption: WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11ax/b/g/n
          Hardware: embedded [Qualcomm Atheros IPQ8074]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1
cat wireless 

config wifi-device 'radio0'
        option type 'mac80211'
        option path 'platform/soc/c000000.wifi'
        option channel '44'
        option band '5g'
        option htmode 'HE80'
        option cell_density '0'
        option txpower '20'
        option country 'GB'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt5g'
        option encryption 'psk2'
        option key '##########'

config wifi-device 'radio1'
        option type 'mac80211'
        option path 'platform/soc/c000000.wifi+1'
        option channel '11'
        option band '2g'
        option htmode 'HE40'
        option cell_density '0'
        option txpower '20'
        option country 'GB'

config wifi-iface 'default_radio1'
        option device 'radio1'
        option network 'lan'
        option mode 'ap'
        option ssid 'OpenWrt2.4G'
        option encryption 'psk2'
        option key '###########'

   0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 6.1.71 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24775-04ed95d1f9) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 SMP Mon Jan  8 07:30:09 2024
[    0.000000] Machine model: Linksys MX4200v1
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000040ffffff]
[    0.000000]   node   0: [mem 0x0000000041000000-0x000000004a3fffff]
[    0.000000]   node   0: [mem 0x000000004a400000-0x00000000510fffff]
[    0.000000]   node   0: [mem 0x0000000051100000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 17 pages/cpu s31592 r8192 d29848 u69632
[    0.000000] pcpu-alloc: s31592 r8192 d29848 u69632 alloc=17*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129024
[    0.000000] Kernel command line: init=/sbin/init rootfstype=squashfs ubi.mtd=22,2048 ubi.block=0,0 root=/dev/ubiblock0_0 rootwait ro root=/dev/ubiblock0_0
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 372796K/524288K available (8128K kernel code, 872K rwdata, 2380K rodata, 1344K init, 291K bss, 151492K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv2m: range[mem 0x0b00a000-0x0b00affc], SPI[448:479]
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 and mmio timer(s) running at 19.20MHz (virt/virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000000] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000101] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000114] pid_max: default: 32768 minimum: 301
[    0.000576] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.000589] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.002415] cblist_init_generic: Setting adjustable number of callback queues.
[    0.002423] cblist_init_generic: Setting shift to 2 and lim to 1.
[    0.002617] rcu: Hierarchical SRCU implementation.
[    0.002622] rcu:     Max phase no-delay instances is 1000.
[    0.003416] smp: Bringing up secondary CPUs ...
[    0.004059] Detected VIPT I-cache on CPU1
[    0.004190] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004839] Detected VIPT I-cache on CPU2
[    0.004933] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005539] Detected VIPT I-cache on CPU3
[    0.005630] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005697] smp: Brought up 1 node, 4 CPUs
[    0.005705] SMP: Total of 4 processors activated.
[    0.005711] CPU features: detected: 32-bit EL0 Support
[    0.005715] CPU features: detected: CRC32 instructions
[    0.005776] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005783] CPU: All CPU(s) started at EL1
[    0.005785] alternatives: applying system-wide alternatives
[    0.016563] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016590] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.016802] pinctrl core: initialized pinctrl subsystem
[    0.018246] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.018803] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.018857] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.018892] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.019268] thermal_sys: Registered thermal governor 'step_wise'
[    0.019450] cpuidle: using governor menu
[    0.019746] ASID allocator initialised with 65536 entries
[    0.045359] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    0.053666] SCSI subsystem initialized
[    0.053852] usbcore: registered new interface driver usbfs
[    0.053916] usbcore: registered new interface driver hub
[    0.053960] usbcore: registered new device driver usb
[    0.054364] qcom_scm: convention: smc arm 64
[    0.055881] clocksource: Switched to clocksource arch_sys_counter
[    0.057050] NET: Registered PF_INET protocol family
[    0.057180] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.058137] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.058156] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.058169] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.058217] TCP bind hash table entries: 4096 (order: 5, 131072 bytes, linear)
[    0.058357] TCP: Hash tables configured (established 4096 bind 4096)
[    0.058440] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.058466] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.058662] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.058698] PCI: CLS 0 bytes, default 64
[    0.060005] workingset: timestamp_bits=46 max_order=17 bucket_order=0
[    0.065091] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.065103] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.066149] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.067906] qcom-qmp-usb-phy 78000.phy: supply vdda-phy not found, using dummy regulator
[    0.068102] qcom-qmp-usb-phy 78000.phy: supply vdda-pll not found, using dummy regulator
[    0.069261] qcom-qusb2-phy 79000.phy: supply vdd not found, using dummy regulator
[    0.069392] qcom-qusb2-phy 79000.phy: supply vdda-pll not found, using dummy regulator
[    0.069461] qcom-qusb2-phy 79000.phy: supply vdda-phy-dpdm not found, using dummy regulator
[    0.069604] qcom-qusb2-phy 79000.phy: Registered Qcom-QUSB2 phy
[    0.072604] bam-dma-engine 704000.dma-controller: num-channels unspecified in dt
[    0.072620] bam-dma-engine 704000.dma-controller: num-ees unspecified in dt
[    0.077104] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.079293] msm_serial 78b1000.serial: msm_serial: detected port #1
[    0.079333] msm_serial 78b1000.serial: uartclk = 19200000
[    0.079432] 78b1000.serial: ttyMSM1 at MMIO 0x78b1000 (irq = 20, base_baud = 1200000) is a MSM
[    0.079867] msm_serial 78b3000.serial: msm_serial: detected port #0
[    0.079894] msm_serial 78b3000.serial: uartclk = 3686400
[    0.079972] 78b3000.serial: ttyMSM0 at MMIO 0x78b3000 (irq = 21, base_baud = 230400) is a MSM
[    0.079994] msm_serial: console setup on port #0
[    0.765313] printk: console [ttyMSM0] enabled
[    0.770487] msm_serial: driver initialized
[    0.779291] loop: module loaded
[    0.779366] Loading iSCSI transport class v2.0-870.
[    0.783184] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xac
[    0.786158] nand: Hynix H27S4G8F2EDA-BC
[    0.792729] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128
[    0.796687] 29 fixed-partitions partitions found on MTD device qcom_nand.0
[    0.803946] Creating 29 MTD partitions on "qcom_nand.0":
[    0.810896] 0x000000000000-0x000000100000 : "0:sbl1"
[    0.817890] 0x000000100000-0x000000200000 : "0:mibib"
[    0.822724] 0x000000200000-0x000000280000 : "0:bootconfig"
[    0.827242] 0x000000280000-0x000000300000 : "0:bootconfig1"
[    0.832575] 0x000000300000-0x000000600000 : "0:qsee"
[    0.840470] 0x000000600000-0x000000900000 : "0:qsee_1"
[    0.845557] 0x000000900000-0x000000980000 : "0:devcfg"
[    0.848265] 0x000000980000-0x000000a00000 : "0:devcfg_1"
[    0.853352] 0x000000a00000-0x000000a80000 : "0:apdp"
[    0.858878] 0x000000a80000-0x000000b00000 : "0:apdp_1"
[    0.863734] 0x000000b00000-0x000000b80000 : "0:rpm"
[    0.868744] 0x000000b80000-0x000000c00000 : "0:rpm_1"
[    0.873455] 0x000000c00000-0x000000c80000 : "0:cdt"
[    0.878741] 0x000000c80000-0x000000d00000 : "0:cdt_1"
[    0.883368] 0x000000d00000-0x000000d80000 : "0:appsblenv"
[    0.888672] 0x000000d80000-0x000000e80000 : "0:appsbl"
[    0.894446] 0x000000e80000-0x000000f80000 : "0:appsbl_1"
[    0.899529] 0x000000f80000-0x000001000000 : "0:art"
[    0.904434] 0x000001000000-0x000001040000 : "u_env"
[    0.908883] 0x000001040000-0x000001060000 : "s_env"
[    0.913557] 0x000001060000-0x000001080000 : "devinfo"
[    0.918466] 0x000001080000-0x00000a680000 : "kernel"
[    1.065546] 0x000001680000-0x00000a680000 : "rootfs"
[    1.202447] mtd: setting mtd22 (rootfs) as root device
[    1.202829] mtdsplit: no squashfs found in "rootfs"
[    1.206513] 0x00000a680000-0x000013c80000 : "alt_kernel"
[    1.353756] 0x00000ac80000-0x000013c80000 : "alt_rootfs"
[    1.490668] 0x000013c80000-0x000013e80000 : "sysdiag"
[    1.493045] 0x000013e80000-0x000013f00000 : "0:ethphyfw"
[    1.495597] 0x000013f00000-0x00001f700000 : "syscfg"
[    1.676816] 0x00001f700000-0x000020000000 : "0:wififw"
[    1.695208] spmi spmi-0: PMIC arbiter version v2 (0x20010000)
[    1.716131] i2c_dev: i2c /dev entries driver
[    1.722950] sdhci: Secure Digital Host Controller Interface driver
[    1.722996] sdhci: Copyright(c) Pierre Ossman
[    1.728079] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.734093] remoteproc remoteproc0: releasing cd00000.q6v5_wcss
[    1.741078] NET: Registered PF_INET6 protocol family
[    1.744776] Segment Routing with IPv6
[    1.749104] In-situ OAM (IOAM) with IPv6
[    1.752665] NET: Registered PF_PACKET protocol family
[    1.756645] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.761667] 8021q: 802.1Q VLAN Support v1.8
[    1.794032] qcom,cpr4-apss-regulator b018000.cpr4-ctrl: CPR valid fuse count: 4
[    1.794355] cpr4_ipq807x_apss_read_fuse_data: apc_corner: speed bin = 0
[    1.800181] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR fusing revision = 1
[    1.806764] cpr4_ipq807x_apss_read_fuse_data: apc_corner: CPR misc fuse value = 0
[    1.814419] cpr4_ipq807x_apss_read_fuse_data: apc_corner: Voltage boost fuse config = 0 boost = disable
[    1.821943] cpr3_mem_acc_init: apc: not using memory accelerator regulator
[    1.831070] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      SVS: open-loop= 704000 uV
[    1.838017] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused      NOM: open-loop= 832000 uV
[    1.848000] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused    TURBO: open-loop= 896000 uV
[    1.857809] cpr4_ipq807x_apss_calculate_open_loop_voltages: apc_corner: fused   STURBO: open-loop= 992000 uV
[    1.867669] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      SVS: quot[ 7]= 689, quot_offset[ 7]=   0
[    1.877428] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused      NOM: quot[ 7]= 931, quot_offset[ 7]= 240
[    1.888279] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused    TURBO: quot[ 7]=1037, quot_offset[ 7]= 105
[    1.899216] cpr4_ipq807x_apss_calculate_target_quotients: apc_corner: fused   STURBO: quot[ 7]=1206, quot_offset[ 7]= 165
[    1.910346] cpr3_regulator_init_ctrl: apc: Default CPR mode = closed-loop
[    1.912865] cpufreq: cpufreq_online: CPU0: Running at unlisted initial frequency: 800000 KHz, changing to: 1017600 KHz
[    1.929682] remoteproc remoteproc0: cd00000.q6v5_wcss is available
[    1.939008] ubi0: attaching mtd22
[    2.205880] random: crng init done
[    2.766279] ubi0: scanning is finished
[    2.774331] ubi0: attached mtd22 (name "rootfs", size 144 MiB)
[    2.774371] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.779084] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.785937] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.792780] ubi0: good PEBs: 1152, bad PEBs: 0, corrupted PEBs: 0
[    2.799555] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    2.805802] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1704699009
[    2.812929] ubi0: available PEBs: 0, total reserved PEBs: 1152, PEBs reserved for bad PEB handling: 80
[    2.822227] ubi0: background thread "ubi_bgt0d" started, PID 553
[    2.822692] block ubiblock0_0: created from ubi0:0(rootfs)
[    2.837820] UBI error: block: can't add 'rootfs' volume, err=-17
[    2.845674] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    2.846190] Freeing unused kernel memory: 1344K
[    2.895965] Run /sbin/init as init process
[    2.895989]   with arguments:
[    2.895992]     /sbin/init
[    2.895995]   with environment:
[    2.895999]     HOME=/
[    2.896002]     TERM=linux
[    3.088863] init: Console is alive
[    3.089012] init: - watchdog -
[    3.815098] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.899190] ssdk_dt_parse_interrupt[916]:INFO:intr-gpio does not exist
[    3.959400] malibu_phy_api_ops_init[1934]:INFO:qca probe malibu phy driver succeeded!
[    4.272146] adpt_hppe_uniphy_mode_set[1346]:INFO:ssdk doesn't support mode:0 in uniphy:0 on platform!
[    4.272298] regi_init[3603]:INFO:Initializing HPPE Done!!
[    4.280456] regi_init[3662]:INFO:qca-ssdk module init succeeded!
[    4.288270] EDMA ver 1 hw init
[    4.292029] EDMA HW Reset completed succesfully
[    4.294704] Num rings - TxDesc:1 (23-23) TxCmpl:1 (7-7)
[    4.299127] RxDesc:1 (15-15) RxFill:1 (7-7)
[    4.310236] **********************************************************
[    4.310272] * NSS Data Plane driver
[    4.315652] **********************************************************
[    4.401222] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.401278] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    4.405754] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe65 hci version 0x110 quirks 0x0000000002010010
[    4.413248] xhci-hcd xhci-hcd.1.auto: irq 38, io mem 0x08a00000
[    4.422688] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    4.428453] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    4.434004] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    4.442054] hub 1-0:1.0: USB hub found
[    4.448181] hub 1-0:1.0: 1 port detected
[    4.452168] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.456567] hub 2-0:1.0: USB hub found
[    4.464079] hub 2-0:1.0: 1 port detected
[    4.470792] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.474297] init: - preinit -
[    7.097999] UBIFS (ubi0:1): Mounting in unauthenticated mode
[    7.098125] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 792
[    7.136778] UBIFS (ubi0:1): recovery needed
[    7.239238] UBIFS (ubi0:1): recovery completed
[    7.239359] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    7.242589] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.250524] UBIFS (ubi0:1): FS size: 126976000 bytes (121 MiB, 1000 LEBs), max 1011 LEBs, journal size 6348800 bytes (6 MiB, 50 LEBs)
[    7.260391] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[    7.272358] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID F4BC1571-4D2A-48E1-B209-036EE0B7F965, small LPT model
[    7.285839] mount_root: switching to ubifs overlay
[    7.295829] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    7.301119] urandom-seed: Seeding with /etc/urandom.seed
[    7.373227] procd: - early -
[    7.373342] procd: - watchdog -
[    7.933920] procd: - watchdog -
[    7.935764] procd: - ubus -
[    8.090434] procd: - init -
[    8.344054] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.401077] hid: raw HID events driver (C) Jiri Kosina
[    8.411090] Bluetooth: Core ver 2.22
[    8.411213] NET: Registered PF_BLUETOOTH protocol family
[    8.413740] Bluetooth: HCI device and connection manager initialized
[    8.419063] Bluetooth: HCI socket layer initialized
[    8.425374] Bluetooth: L2CAP socket layer initialized
[    8.430019] Bluetooth: SCO socket layer initialized
[    8.436731] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.439869] Bluetooth: BNEP filters: protocol multicast
[    8.445433] Bluetooth: BNEP socket layer initialized
[    8.453586] usbcore: registered new interface driver btusb
[    8.456105] Loading modules backported from Linux version v6.5-0-g2dde18cd1d8f
[    8.460880] Backport generated by backports.git v5.15.92-1-56-g5fb2ccb6b9e8
[    8.468888] Bluetooth: HCI UART driver ver 2.3
[    8.474937] Bluetooth: HCI UART protocol H4 registered
[    8.479469] Bluetooth: HCI UART protocol BCSP registered
[    8.484573] Bluetooth: HCI UART protocol ATH3K registered
[    8.490955] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    8.495350] Bluetooth: HIDP socket layer initialized
[    8.506490] NET: Registered PF_QIPCRTR protocol family
[    8.508365] Bluetooth: RFCOMM TTY layer initialized
[    8.511233] Bluetooth: RFCOMM socket layer initialized
[    8.516051] Bluetooth: RFCOMM ver 1.11
[    8.559672] PPP generic driver version 2.4.2
[    8.560537] NET: Registered PF_PPPOX protocol family
[    8.570132] ath11k c000000.wifi: ipq8074 hw2.0
[    8.570167] ath11k c000000.wifi: FW memory mode: 1
[    8.573727] remoteproc remoteproc0: powering up cd00000.q6v5_wcss
[    8.578621] remoteproc remoteproc0: Booting fw image IPQ8074/q6_fw.mdt, size 668
[    8.632740] urngd: v1.0.2 started.
[    9.823470] remoteproc remoteproc0: remote processor cd00000.q6v5_wcss is now up
[    9.828083] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.867559] ath11k c000000.wifi: qmi ignore invalid mem req type 3
[    9.874957] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
[    9.875009] ath11k c000000.wifi: fw_version 0x290104a5 fw_build_timestamp 2023-08-02 20:32 fw_build_id WLAN.HK.2.9.0.1-01890-QCAHKSWPL_SILICONZ-1
[   10.083227] ath11k c000000.wifi: htt event 48 not handled
[   12.390492] br-lan: port 1(lan1) entered blocking state
[   12.390537] br-lan: port 1(lan1) entered disabled state
[   12.394802] device lan1 entered promiscuous mode

Did you update without saving the configuration?

Yes, but I always use a pre-configuration file to set up the wireless network and then restore a backup. That wasn't a problem with the previous approach to patch the MACs. However, there is nothing in the configuration file or backup to set up the MAC address of the wireless interfaces. It's like that on purpose, so I can see what I get using the driver default option.

Try to remove /lib/firmware/ath11k/IPQ8074/hw2.0/cal-ahb-c000000.wifi.bin and restart router. The file will be re-created after a restart.

Done. Same.

Can you try builds from this repo: https://github.com/testuser7/openwrt/releases/tag/qualcommax-e499c6e ?

Hi @lytr, The wireless drivers are not recognised, please refer to the screenshot below:

The output of iwinfo command is nothing.

Here is the link to the logs:

I was unable to build/compile the earlier image on my macbook, will keep trying :slight_smile:

Hi @lytr, Is there a way to restore factory firmware without serial port access?

I have an CF (ISP) engineer appointment as I have some issues with my Internet connection and he will need access to the router.

Thanks

My build was incorrect. New one is building.

Check this: https://github.com/openwrt/openwrt/pull/14051/commits/02c6240a5fa264a0358fb39c875f17ef532ef193

1 Like

Flash stock Linksys 2.0.5.210442 https://downloads.linksys.com/support/assets/firmware/FW_MX4200_2.0.5.210442_prod.img and after that, from CA, update the firmware. It will install CF's 2.0.7.213542

Beware that CF's firmware won't let you flash stock or OpenWrt, you'll have to repeat the process you followed in the first place to be able to flash OpenWrt.

1 Like

New build is ready: https://github.com/testuser7/openwrt/releases/tag/qualcommax-d0cb3e3

1 Like

Thanks, The wireless drivers are working now. I will keep testing this over the next few days as I would need to revert to OEM firmware for Engineer's visit and then revert back to Openwrt.

output of iwinfo

phy0-ap0  ESSID: "Test5G"
          Access Point: 00:XX:XX:XX:XX:6F
          Mode: Master  Channel: 36 (5.180 GHz)  HT Mode: HE80
          Center Channel 1: 42 2: unknown
          Tx-Power: 19 dBm  Link Quality: 51/70
          Signal: -59 dBm  Noise: -110 dBm
          Bit Rate: 6.0 MBit/s
          Encryption: mixed WPA/WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11ac/ax/n
          Hardware: embedded [Qualcomm Atheros IPQ8074]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy0

phy1-ap0  ESSID: "Test"
          Access Point: 00:XX:XX:XX:XX:5F
          Mode: Master  Channel: 1 (2.412 GHz)  HT Mode: HE20
          Center Channel 1: 1 2: unknown
          Tx-Power: 20 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -105 dBm
          Bit Rate: unknown
          Encryption: mixed WPA/WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11ax/b/g/n
          Hardware: embedded [Qualcomm Atheros IPQ8074]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy1

phy2-ap0  ESSID: "Test-5g2"
          Access Point: 00:XX:XX:XX:XX:EA
          Mode: Master  Channel: 100 (6.450 GHz)  HT Mode: NOHT
          Center Channel 1: unknown 2: unknown
          Tx-Power: 0 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: unknown
          Bit Rate: unknown
          Encryption: mixed WPA/WPA2 PSK (CCMP)
          Type: nl80211  HW Mode(s): 802.11ac/ax/n
          Hardware: embedded [Qualcomm Atheros IPQ8074]
          TX power offset: none
          Frequency offset: none
          Supports VAPs: yes  PHY name: phy2

Do wireless interfaces MAC addresses start with 00:69:1A?

Yes, it does for all three wireless interfaces.