Adding support for Zyxel NWA5123-AC

Hi community,
I have this Wireless Access Point:

NWA5123-AC v.1.0

Documentation:
https://prodotti.zyxel.it/USERSGUIDE/NWA5123-AC-EU0101F.pdf

Specifications:
https://www.zyxelguard.com/NWA5123-AC.asp

Datasheets:
https://www.zyxelguard.com/datasheets/NWA5123-AC_6.pdf

Quick Start Guide:
https://us.v-cdn.net/6029482/uploads/TO7KXGWJ4F1Y/nwa5123-ac-quick-start-guide-001.pdf

Official Firmwares:

NWA5123-AC_6.10(AAZY.8)C0
NWA5123-AC_5.00(AAZY.3)C0
NWA5123-AC_4.30(AAZY.0)C0

Do you think it is possible to integrate OpenWrt?
Zyxel no longer provides support for this device...

CPU: Qualcomm Atheros AR9344-DC3A MIPS 74Kc
RAM: 2 X W9751G6KB-25 (2 x 64MB)

I have uploaded several photos regarding the instrument directly to OpenWrt -> Media Manager -> Zyxel -> nwa5123-ac

Serial Port:

Flash:

PCB top:

PCB bottom

I performed a complete dump of both Flash memories present: 2 x MX25L12835F (2 x 16MB):

FLASH A
A.bin
6.10(AAZY.8) | 2020-10-06 12:58:15
MD5: 81fea4a46797fe1cdcea789de6b96fb6

FLASH B
B.bin
5.00(AAZY.5) 2018-07-26 151015
MD5: 2c561a177463322752620bffaf7921c0

Through the UART port, I was able to get some information as follows:

Router# show version
Zyxel Communications Corp.
model           : NWA5123-AC
firmware version: V6.10(AAZY.8)
BM version      : V2.3
build date      : 2020-10-06 12:58:15
Router# show mac
MAC address: B8:EC:A3:A7:AD:60-B8:EC:A3:A7:AD:62
Router# show serial-number
serial number: S172Z32100856
Router# debug system partition
dev:    size   erasesize  name
mtd0: 00030000 00010000 "bootm"
mtd1: 00120000 00010000 "kernel"
mtd2: 00d50000 00010000 "zldfs"
mtd3: 00100000 00010000 "conf"
mtd4: 00010000 00010000 "myZyXEL"
mtd5: 00010000 00010000 "mrd"
mtd6: 00030000 00010000 "disklog"
mtd7: 00010000 00010000 "ART"
mtd8: 00180000 00010000 "recovery"
mtd9: 00120000 00010000 "backup_ker"
mtd10: 00d50000 00010000 "backup_fs"
mtd11: 00010000 00010000 "myZyXEL"
zysudo uid=10001,euid=0
Router#
Router# show interface all
No. Name            Status              IP Address      Mask            IP Assignment
===============================================================================
2   lan             Up                  0.0.0.0         0.0.0.0         DHCP client
3   wlan-1          n/a                 n/a             n/a             n/a
4   wlan-1-1        Up                  0.0.0.0         0.0.0.0         static
5   wlan-2          n/a                 n/a             n/a             n/a
6   wlan-2-1        Up                  0.0.0.0         0.0.0.0         static
Router> debug dual-image show

KERNEL
Image0 Kernel Version   : 2.6.31 | 2020-10-06 12:45:43
Image0 Zldfs  Version   : 6.10(AAZY.8) | 2020-10-06 12:58:15
Image0 Status           : SUCCESS
Last Upgrade Time       : 2021-06-28 13:08:03

BACK UP KERNEL
Image1 Kernel Version   : 2.6.31 | 2018-07-26 14:55:09
Image1 Zldfs  Version   : 5.00(AAZY.5) | 2018-07-26 15:10:15
Image1 Status           : SUCCESS
Last Upgrade Time       : 2020-10-27 09:39:03

Boot    Image num       : 0
Current Image num       : 0
Router# debug system dmesg
[    0.000000] Linux version 2.6.31 (jenkins@zybuild-234) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Oct 6 12:45:39 CST 2020
[    0.000000] flash_size passed from bootloader = 32
[    0.000000] arg 1: console=ttyS0,115200
[    0.000000] arg 2: root=31:02
[    0.000000] arg 3: init=/sbin/zyinit
[    0.000000] arg 4: rootfstype=squashfs
[    0.000000] arg 5: mtdparts=ath-nor0:192k(bootm),1152k(kernel),13632k(zldfs),1024k(conf),64k(myZyXEL),64k(mrd),192k(disklog),64k(ART);ath-nor1:1536k(recovery),1152k(backup_ker),13632k(backup_fs),64k(myZyXEL);
[    0.000000] arg 6: bootImage=0
[    0.000000] arg 7: mem=128M
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] ath_sys_frequency: cpu srif ddr srif cpu 560 ddr 430 ahb 215
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00008000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00008000
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 8029fa40, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=31:02 init=/sbin/zyinit rootfstype=squashfs mtdparts=ath-nor0:192k(bootm),1152k(kernel),13632k(zldfs),1024k(conf),64k(myZyXEL),64k(mrd),192k(disklog),64k(ART);ath-nor1:1536k(recovery),1152k(backup_ker),13632k(backup_fs),64k(myZyXEL); bootImage=0 mem=128M
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 122680k/131072k available (2146k kernel code, 8216k reserved, 539k data, 152k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] plat_time_init: plat time init done
[    0.000000] Calibrating delay loop... 279.55 BogoMIPS (lpj=559104)
[    0.096000] Mount-cache hash table entries: 512
[    0.096000] SKBUFF Debug 2k range: 802e6fa0  to 803e6fa0
[    0.096000] SKBUFF Debug 4k range: 803e6fa0  to 806e6fa0
[    0.096000]
[    0.096000] ****************ALLOC***********************
[    0.096000]  Packet mem: 802e6fa0 (0x400000 bytes)
[    0.096000] ********************************************
[    0.096000]
[    0.096000] NET: Registered protocol family 16
[    0.096000] ath_pcibios_init: bus 0
[    0.096000] ath_pcibios_init(250): PCI 0 CMD write: 0x356
[    0.096000] registering PCI controller with io_map_base unset
[    0.096000] bio: create slab <bio-0> at 0
[    0.096000] SCSI subsystem initialized
[    0.096000] pci 0000:00:00.0: reg 10 64bit mmio: [0x000000-0x1fffff]
[    0.096000] pci 0000:00:00.0: reg 30 32bit mmio: [0x000000-0x00ffff]
[    0.096000] pci 0000:00:00.0: supports D1 D2
[    0.096000] pcibios_map_irq: IRQ 70 for bus 0
[    0.100000] NET: Registered protocol family 2
[    0.100000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.100000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.100000] TCP: Hash tables configured (established 4096 bind 4096)
[    0.100000] TCP reno registered
[    0.100000] NET: Registered protocol family 1
[    0.100000] ATH GPIOC major 0
[    0.100000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.100000] JFFS2 version 2.2 (ZLIB) (RTIME) (c) 2001-2006 Red Hat, Inc.
[    0.100000] fuse init (API version 7.12)
[    0.100000] msgmni has been set to 239
[    0.100000] io scheduler noop registered
[    0.100000] io scheduler deadline registered (default)
[    0.100000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.100000] serial8250.0: ttyS0 at MMIO 0xb8020000 (irq = 19) is a 16550A
[    0.100000] console [ttyS0] enabled
[    0.100000] brd: module loaded
[    0.104000] mtd: no mtd-id
[    0.104000] 8 cmdlinepart partitions found on MTD device ath-nor0
[    0.104000] Creating 8 MTD partitions on "ath-nor0":
[    0.104000] 0x000000000000-0x000000030000 : "bootm"
[    0.104000] 0x000000030000-0x000000150000 : "kernel"
[    0.104000] 0x000000150000-0x000000ea0000 : "zldfs"
[    0.104000] 0x000000ea0000-0x000000fa0000 : "conf"
[    0.104000] 0x000000fa0000-0x000000fb0000 : "myZyXEL"
[    0.104000] 0x000000fb0000-0x000000fc0000 : "mrd"
[    0.104000] 0x000000fc0000-0x000000ff0000 : "disklog"
[    0.104000] 0x000000ff0000-0x000001000000 : "ART"
[    0.104000] 4 cmdlinepart partitions found on MTD device ath-nor1
[    0.104000] Creating 4 MTD partitions on "ath-nor1":
[    0.104000] 0x000000000000-0x000000180000 : "recovery"
[    0.104000] 0x000000180000-0x0000002a0000 : "backup_ker"
[    0.104000] 0x0000002a0000-0x000000ff0000 : "backup_fs"
[    0.104000] 0x000000ff0000-0x000001000000 : "myZyXEL"
[    0.104000] u32 classifier
[    0.104000]     Performance counters on
[    0.104000] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[    0.104000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.104000] TCP cubic registered
[    0.104000] NET: Registered protocol family 10
[    0.108000] lo: Disabled Privacy Extensions
[    0.108000] IPv6 over IPv4 tunneling driver
[    0.108000] sit0: Disabled Privacy Extensions
[    0.108000] ip6tnl0: Disabled Privacy Extensions
[    0.108000] NET: Registered protocol family 17
[    0.108000] Bridge firewalling registered
[    0.108000] Ebtables v2.0 registered
[    0.108000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    0.108000] All bugs added by David S. Miller <davem@redhat.com>
[    0.108000] athwdt_init: Registering WDT success
[    0.108000] ath_otp_init: Registering OTP success
[    0.108000] ath_clksw_init: Registering Clock Switch Interface success
[    0.116000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.120000] Freeing unused kernel memory: 152k freed
[    0.128000] Please be patient, while OpenWrt loads ...
[    4.736000] zld_mrd: module license 'ZyXEL' taints kernel.
[    4.736000] Disabling lock debugging due to kernel taint
[    4.748000] init kernel log netlink done
[    4.920000] ATHR_GMAC: Length per segment 1536
[    4.920000] ATHR_GMAC: fifo cfg 3 01f00140
[    4.920000] ATHR_GMAC: RX TASKLET - Pkts per Intr:100
[    4.920000] ATHR_GMAC: Mac address for unit 0:bfff0000
[    4.920000] ATHR_GMAC: ff:ff:ff:ff:ff:ff
[    5.472000] ATHR_GMAC: Max segments per packet :   1
[    5.472000] ATHR_GMAC: Max tx descriptor count :   128
[    5.472000] ATHR_GMAC: Max rx descriptor count :   192
[    5.472000] ATHR_GMAC: Mac capability flags    :   2380
[    5.524000] platform_support_init: insert module
[    5.528000] athr_gmac_ring_alloc Allocated 2048 at 0x87a27000
[    5.528000] athr_gmac_ring_alloc Allocated 3072 at 0x87a00000
[    5.828000] WASP ----> F1e PHY
[    5.828000] Setting Drop CRC Errors, Pause Frames and Length Error frames
[    5.828000] Setting PHY...
[    5.828000] ATHR_AUTONEG_ADVERT:DE1
[    5.828000] ATHR_1000BASET_CONTROL:200
[    5.828000] ATHR_PHY_CONTROL:1000
[    5.828000] ATHRSF1_PHY: Port 0, Neg Success
[    5.828000] ATHRSF1_PHY: unit 0 phy addr 0
[    5.828000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.848000] notify_userspace:1322 >> Fail to lkud_notify_userspace!
[    9.848000] ATH_MAC_TIMER: enet unit:0 is up...
[    9.848000] RGMii 1000Mbps full duplex
[    9.848000] ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl
[    9.848000] Setting Drop CRC Errors, Pause Frames and Length Error frames
[    9.848000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   20.764000] eth0: no IPv6 routers present
[   23.736000] ATHR_AUTONEG_ADVERT:DE1
[   23.736000] ATHR_1000BASET_CONTROL:200
[   23.736000] ATHR_PHY_CONTROL:1000
[   23.736000] ATHRSF1_PHY: Port 0, Neg Success
[   23.736000] ATHRSF1_PHY: unit 0 phy addr 0 athr_gmac_ring_free Freeing at 0x87a27000
[   23.912000] athr_gmac_ring_free Freeing at 0x87a00000
[   23.924000] athr_gmac_ring_alloc Allocated 2048 at 0x87a27000
[   23.924000] athr_gmac_ring_alloc Allocated 3072 at 0x87a00000
[   24.224000] WASP ----> F1e PHY
[   24.224000] Setting Drop CRC Errors, Pause Frames and Length Error frames
[   24.224000] Setting PHY...
[   24.224000] ATHR_AUTONEG_ADVERT:DE1
[   24.224000] ATHR_1000BASET_CONTROL:200
[   24.224000] ATHR_PHY_CONTROL:1000
[   24.224000] ATHRSF1_PHY: Port 0, Neg Success
[   24.224000] ATHRSF1_PHY: unit 0 phy addr 0
[   24.228000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.244000] ATH_MAC_TIMER: enet unit:0 is up...
[   28.244000] RGMii 1000Mbps full duplex
[   28.244000] ATH_MAC_TIMER: done cfg2 0x7215 ifctl 0x0 miictrl
[   28.244000] Setting Drop CRC Errors, Pause Frames and Length Error frames
[   28.244000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   30.976000] ip_set version 4 loaded
[   34.276000] ****Address of trace_timer :858db680
[   34.924000] ath_hal: 0.9.17.1 (AR5416, AR9380, DEBUG, REGOPS_FUNC, WRITE_EEPROM, TX_DATA_SWAP, RX_DATA_SWAP, 11D)
[   35.044000] ath_rate_atheros: Copyright (c) 2001-2005 Atheros Communications, Inc, All Rights Reserved
[   35.056000] ath_tx99: Version 2.0
[   35.056000] Copyright (c) 2010 Atheros Communications, Inc, All Rights Reserved
[   35.076000] ath_spectral: Version 2.0.0
[   35.076000] Copyright (c) 2005-2009 Atheros Communications, Inc. All Rights Reserved
[   35.080000] SPECTRAL module built on Oct  6 2020 12:44:38
[   35.188000] ath_dfs: Version 2.0.0
[   35.188000] Copyright (c) 2005-2006 Atheros Communications, Inc. All Rights Reserved
[   35.584000] ath_dev: Copyright (c) 2001-2007 Atheros Communications, Inc, All Rights Reserved
[   38.160000] ath_ahb: 10.2.r2-00013-4 (Atheros/multi-bss)
[   38.160000] __ath_attach: Set global_scn[0]
[   38.160000] *** All the minfree values should be <= ATH_TXBUF-32, otherwise default value will be used instead ***
[   38.160000] ACBKMinfree = 48
[   38.160000] ACBEMinfree = 32
[   38.160000] ACVIMinfree = 16
[   38.160000] ACVOMinfree = 0
[   38.160000] CABMinfree = 48
[   38.160000] UAPSDMinfree = 0
[   38.160000] ATH_TXBUF=1024
[   38.164000] Bootstrap clock 40MHz
[   38.168000] Enterprise mode: 0x00000000
[   38.168000] Restoring Cal data from Flash
[   38.172000] SPECTRAL : get_capability not registered
[   38.172000] HAL_CAP_PHYDIAG : Capable
[   38.172000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 231)
[   38.172000] SPECTRAL : get_capability not registered
[   38.172000] HAL_CAP_RADAR   : Capable
[   38.172000] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   38.172000]  (spectral_attach : 236)
[   38.172000] SPECTRAL : get_capability not registered
[   38.172000] HAL_CAP_SPECTRAL_SCAN : Capable
[   38.172000] SPECTRAL : get_tsf64 not registered
[   38.172000] spectral_init_netlink 52 NULL SKB
[   38.172000] SPECTRAL : No ADVANCED SPECTRAL SUPPORT
[   38.172000] SPECTRAL :----- module attached
[   38.172000] Green-AP : Green-AP : Attached
[   38.172000]
[   38.176000] ath_get_caps[6196] rx chainmask mismatch actual 3 sc_chainmak 0
[   38.176000] ath_get_caps[6171] tx chainmask mismatch actual 3 sc_chainmak 0
[   38.180000] ath_attach_dfs[12669] dfsdomain 1
[   38.188000] SPECTRAL : module already attached
[   38.188000] ald_init_netlink NETLINK_KERNEL_CREATE FAILED
[   38.192000] ath_tx_paprd_init sc 859f0000 PAPRD disabled in HAL
[   38.200000] SC Callback Registration for wifi0
[   38.200000] wifi0: Atheros 9340: mem=0xb8100000, irq=2
[   38.200000] ath_pci: 10.2.r2-00013-4 (Atheros/multi-bss)
[   38.200000] ath_pci_probe
[   38.200000] PCI device id is 003c :003c
[   38.200000] PCI: Setting latency timer of device 0000:00:00.0 to 64
[   38.204000] ath_pci 0000:00:00.0: ath DEBUG: sc=0x85866c00
[   38.204000]
[   38.204000]  ol_ath_pci_configure : num_desired MSI set to 0
[   38.204000]
[   38.204000]  Using PCI Legacy Interrupt
[   39.008000] CE_per_engine_handler_adjust, base=85866c00 offset=57400
[   39.008000] CE_per_engine_handler_adjust, base=85866c00 offset=57800
[   39.016000] __ol_ath_attach: ath_attach TODO
[   39.020000] __ol_ath_attach: dev name wifi1
[   39.020000] ol_ath_set_default_tgt_config : AC Minfree buffer allocation through module param (umac.ko)
[   39.020000]  OL_ACBKMinfree : 0
[   39.020000]  OL_ACBEMinfree : 0
[   39.020000]  OL_ACVIMinfree : 0
[   39.020000]  OL_ACVOMinfree : 0
[   39.020000] ol_ath_attach() BMI inited.
[   39.020000] ol_ath_attach() BMI Get Target Info.
[   39.020000] ol_ath_attach() TARGET TYPE: 7 Vers 0x4100016c
[   39.020000] NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
[   39.020000] ol_ath_attach() configure Target .
[   39.020000] ol_transfer_bin_file 1947: Download Board data len 2116
[   39.028000] ol_ath_download_firmware: Using 0x1234 for the remainder of init
[   39.028000] ol_transfer_bin_file 1939: Download OTP data len 7208
[   39.112000] ol_transfer_bin_file 1985: Download Firmware data len 234648:234646
[   40.108000] ol_ath_attach() Download FW.
[   40.108000] ol_ath_attach() HT Create .
[   40.108000] ol_ath_attach() HIF Claim.
[   40.108000] ol_ath_attach() BMI Done.
[   40.108000] ol_ath_attach() WMI attached. wmi_handle 845c0000
[   40.108000] +HWT
[   40.108000] SOC_RESET_CONTROL_ADDRESS : 800
[   40.108000] CPU_INTR_ADDRESS = [2000000]
[   40.108000] SOC_GLOBAL_RESET_ADDRESS = [0]
[   40.108000] Rx_Filter : [0]
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=57400
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=57800
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=57c00
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=58000
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=58400
[   40.108000] CE_per_engine_handler_adjust, base=85866c00 offset=58800
[   40.112000] CE_recv_buf_enqueue 653 Populate last entry 512 for CE 5
[   40.112000] CE_recv_buf_enqueue 662 CE 5 wi 511 dest_ptr 0x4127020 nbytes 0 recv_ctxt 0x84122080
[   40.112000] -HWT
[   40.116000] HTC Service:0x0300 ep:1 TX flow control disabled
[   40.124000] CE_pkt_dl_len_set CE 4 Pkt download length 64
[   40.124000] ol_txrx_pdev_attach: 1424 tx desc's allocated ; range starts from 83db0000
[   40.124000] TXRX: Created pdev 8415ee00
[   40.124000] HTC Service:0x0100 ep:2 TX flow control disabled
[   40.128000] wmi_service_ready_event_rx:  WMI UNIFIED SERVICE READY event
[   40.128000] num_rf_chain : 00000002
[   40.128000] ht_cap_info: : 0000085b
[   40.128000] vht_cap_info : 338001b2
[   40.128000] vht_supp_mcs : 0000fffa
[   40.128000] LARGE_AP enabled. num_peers 131, num_vdevs 16, num_tids 230
[   40.128000] idx 0 req 1  num_units 0 num_unit_info 2 unit size 440 actual units 132
[   40.128000] chunk 0 len 58080 requested ,ptr  0x3dc0000
[   40.136000] FIRMWARE:P 132 V 16 T 404
[   40.136000]
[   40.136000] FIRMWARE:ZyXEL build - NO ED2 patch7 @ Apr 29 2020 13:36:25
[   40.136000] FIRMWARE:_wlan_rtt_enable
[   40.148000] wmi_ready_event_rx:  WMI UNIFIED READY event
[   40.148000] ol_ath_connect_htc() WMI is ready
[   40.148000] ol_ath_set_host_app_area TODO
[   40.148000] target uses HTT version 2.1; host uses 2.1
[   40.152000] ol_ath_attach() connect HTC.
[   40.152000] bypasswmi : 0
[   40.152000] ol_regdmn_start: reg-domain param: regdmn=0, countryName=, wModeSelect=FFFFFFFF, netBand=FFFFFFFF, extendedChanMode=0.
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
[   40.152000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
[   40.152000] Add VHT80 channel: 5210
[   40.152000] Add VHT80 channel: 5290
[   40.152000] Add VHT80 channel: 5530
[   40.152000] Add VHT80 channel: 5610
[   40.152000] Add VHT80 channel: 5690
[   40.152000] Add VHT80 channel: 5775
[   40.152000] Skipping VHT80 channel 5825
[   40.156000] ol_ath_phyerr_attach: called
[   40.156000] OL Resmgr Init-ed
[   40.156000] ol_if_spectral_setup
[   40.156000] SPECTRAL : get_capability not registered
[   40.156000] HAL_CAP_PHYDIAG : Capable
[   40.156000] SPECTRAL : Need to fix the capablity check for RADAR (spectral_attach : 231)
[   40.156000] SPECTRAL : get_capability not registered
[   40.156000] HAL_CAP_RADAR   : Capable
[   40.156000] SPECTRAL : Need to fix the capablity check for SPECTRAL
[   40.156000]  (spectral_attach : 236)
[   40.156000] SPECTRAL : get_capability not registered
[   40.156000] HAL_CAP_SPECTRAL_SCAN : Capable
[   40.156000] SPECTRAL : get_tsf64 not registered
[   40.156000] spectral_init_netlink 52 NULL SKB
[   40.156000] Green-AP : Green-AP : Attached
[   40.156000]
[   40.156000] Green-AP : Attached
[   40.156000] ol_if_dfs_setup: called
[   40.156000] ol_if_dfs_attach: called; ptr=83da9974, radar_info=858b9af0
[   40.160000] ol_ath_rtt_meas_report_attach: called
[   40.160000] wmi_unified_register_event_handler : event handler is already registered: event id 0x901f
[   40.160000] ol_ath_attach() UMAC attach .
[   40.160000] ol_if_dfs_configure: called
[   40.160000] ol_if_dfs_configure: FCC domain
[   40.160000] ol_if_dfs_disable: called
[   40.160000] ol_ath_attach: Calling ol_if_dfs_configure
[   40.160000] ald_init_netlink NETLINK_KERNEL_CREATE FAILED
[   40.160000] __ol_ath_attach: init tx/rx TODO
[   40.160000] __ol_ath_attach: hard_header_len reservation 58
[   40.160000] SC Callback Registration for wifi1
[   40.232000] Initializing Pktlogs for 11ac
[   40.368000] ath_attach_dfs[12669] dfsdomain 1
[   40.400000] isCountryCodeValid: EEPROM regdomain 0x0
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
[   40.400000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
[   40.400000] Add VHT80 channel: 5210
[   40.400000] Add VHT80 channel: 5290
[   40.400000] Add VHT80 channel: 5530
[   40.400000] Add VHT80 channel: 5610
[   40.400000] Skipping VHT80 channel 5660
[   40.400000] Skipping VHT80 channel 5680
[   40.400000] Skipping VHT80 channel 5700
[   41.112000] FWLOG: [44338] WHAL_ERROR_RECV_STOPPCU ( 0x110298a, 0x3 )
[   41.112000] FWLOG: [44338] WHAL_ERROR_RESET_PM (  )
[   52.008000] device vlan1 entered promiscuous mode
[   52.008000] device eth0 entered promiscuous mode
[   52.484000] ADDRCONF(NETDEV_CHANGE): vlan1: link becomes ready
[   54.160000] br0: port 1(vlan1) entering forwarding state
[   55.804000] ol_if_dfs_clist_update: called, cmd=1, nollist=(null), nentries=0
[   65.188000] ath_attach_dfs[12669] dfsdomain 2
[   65.328000] sc nodebug 0
[   65.340000]  DCS for CW interference mitigation:   0
[   65.340000]  DCS for WLAN interference mitigation: 0
[   65.836000] wlan_vap_create : enter. devhandle=0x844602c0, opmode=IEEE80211_M_HOSTAP, flags=0x1
[   65.836000] wlan_vap_create : exit. devhandle=0x844602c0, opmode=IEEE80211_M_HOSTAP, flags=0x1.
[   65.836000] WDS Vlan Disable adf_net_vlan_attach: VAP(wlan-1-1)
[   65.836000] VAP device wlan-1-1 created osifp: (83f2fac0) os_if: (84404000)
[   65.996000]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
[   66.040000] Set freq vap stop send + 84404000
[   66.040000] Set freq vap stop send -84404000
[   66.168000] Set wait done --84404000
[   68.428000]  ieee80211_ioctl_siwmode: imr.ifm_active=131712, new mode=3, valid=1
[   68.428000]  DEVICE IS DOWN ifname=wlan-1-1
[   68.428000]  DEVICE IS DOWN ifname=wlan-1-1
[   68.432000]
[   68.432000]  DES SSID SET=Zyxel-AD60
[   68.588000] device wlan-1-1.1 entered promiscuous mode
[   68.588000] device wlan-1-1 entered promiscuous mode
[   68.588000] br0: port 2(wlan-1-1.1) entering forwarding state
[   73.628000] ol_if_dfs_clist_update: called, cmd=1, nollist=(null), nentries=0
[   74.296000] TXRX printout level changed from 3 to 0
[   74.324000] isCountryCodeValid: EEPROM regdomain 0x0
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2) flags 0x2150
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4) flags 0xa0
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x8) flags 0xc0
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x20) flags 0xd0
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x40) flags 0x150
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x800) flags 0x10080
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x2000) flags 0x20080
[   74.324000] ol_regdmn_init_channels: !avail mode 0x1f9001 (0x4000) flags 0x40080
[   74.324000] Add VHT80 channel: 5210
[   74.324000] Add VHT80 channel: 5290
[   74.324000] Add VHT80 channel: 5530
[   74.324000] Add VHT80 channel: 5610
[   74.324000] Skipping VHT80 channel 5660
[   74.324000] Skipping VHT80 channel 5680
[   74.324000] Skipping VHT80 channel 5700
[   74.448000] dfs_control enable detects, ignore_dfs 0
[   74.612000] ath_ioctl: SIOC80211IFCREATE CALLED
[   74.612000] wmi_unified_vdev_create_send: ID = 0 VAP Addr = b8:ec:a3:a7:ad:62:
[   74.616000] Setting dscp for vap id: 0
[   74.616000] WDS Vlan Disable adf_net_vlan_attach: VAP(wlan-2-1)
[   74.616000] VAP device wlan-2-1 created osifp: (83ee32c0) os_if: (84408000)
[   74.764000]  ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
[   74.808000] Set freq vap stop send + 84408000
[   74.808000] OL vap_stop +
[   74.808000] wmi_unified_vdev_stop_send for vap 0 (845c0000)
[   74.808000] OL vap_stop -
[   74.808000] STOPPED EVENT for vap 0 (845c0000)
[   74.808000] Set freq vap stop send -84408000
[   74.936000] Set wait done --84408000
[   76.452000]  ieee80211_ioctl_siwmode: imr.ifm_active=66176, new mode=3, valid=1
[   76.452000]  DEVICE IS DOWN ifname=wlan-2-1
[   76.452000]  DEVICE IS DOWN ifname=wlan-2-1
[   76.456000]
[   76.456000]  DES SSID SET=Zyxel-AD60
[   76.456000] OL vap_stop +
[   76.456000] wmi_unified_vdev_stop_send for vap 0 (845c0000)
[   76.456000] OL vap_stop -
[   76.460000] STOPPED EVENT for vap 0 (845c0000)
[   76.588000] OL vap_start +
[   76.588000] wmi_unified_vdev_start_send for vap 0 (845c0000)
[   76.588000] OL vap_start -
[   76.596000] ol_vdev_start_resp_ev for vap 0 (845c0000)
[   76.596000] ol_ath_vap_join: join operation is only for STA/IBSS mode
[   76.596000] ol_ath_wmm_update:
[   76.596000] wmi_unified_vdev_up_send for vap 0 (845c0000)
[   76.596000] Notification to UMAC VAP layer
[   77.588000] device wlan-2-1.1 entered promiscuous mode
[   77.588000] device wlan-2-1 entered promiscuous mode
[   77.592000] br0: port 3(wlan-2-1.1) entering forwarding state
[   77.812000] ol_ath_vap_set_param: VAP Mcast to Unicast buffer release (cmd): 0
[   77.812000] wmi_mcast_buf_release_handler: VAP Mcast to Unicast buffer released:0
[   77.816000] ol_ath_vap_set_param: VAP param is now supported param:66 value:0
[   77.816000] wmi_mcast_buf_release_handler: VAP Mcast to Unicast buffer released:0
[   77.820000] ol_ath_vap_set_param: VAP param is now supported param:11 value:3
[   84.272000] br0: port 2(wlan-1-1.1) entering disabled state
[   85.276000] Set freq vap stop send + 84404000
[   85.276000] Set freq vap stop send -84404000
[   85.428000] Set wait done --84404000
[   85.596000] br0: port 2(wlan-1-1.1) entering forwarding state
[   93.144000] wmi_unified_vdev_stop_send for vap 0 (845c0000)
[   93.144000] STOPPED EVENT for vap 0 (845c0000)
[   93.160000] br0: port 3(wlan-2-1.1) entering disabled state
[   94.176000] Set freq vap stop send + 84408000
[   94.176000] OL vap_stop +
[   94.176000] wmi_unified_vdev_stop_send for vap 0 (845c0000)
[   94.176000] OL vap_stop -
[   94.176000] STOPPED EVENT for vap 0 (845c0000)
[   94.176000] Set freq vap stop send -84408000
[   94.304000] Set wait done --84408000
[   94.304000] OL vap_stop +
[   94.304000] wmi_unified_vdev_stop_send for vap 0 (845c0000)
[   94.304000] OL vap_stop -
[   94.304000] STOPPED EVENT for vap 0 (845c0000)
[   94.432000] OL vap_start +
[   94.432000] wmi_unified_vdev_start_send for vap 0 (845c0000)
[   94.432000] OL vap_start -
[   94.440000] ol_vdev_start_resp_ev for vap 0 (845c0000)
[   94.440000] ol_ath_vap_join: join operation is only for STA/IBSS mode
[   94.440000] ol_ath_wmm_update:
[   94.440000] wmi_unified_vdev_up_send for vap 0 (845c0000)
[   94.440000] Notification to UMAC VAP layer
[   95.432000] br0: port 3(wlan-2-1.1) entering forwarding state
[  127.164000] br0: port 2(wlan-1-1.1) entering disabled state
[  128.172000] Set freq vap stop send + 84404000
[  128.172000] Set freq vap stop send -84404000
[  128.300000] Set wait done --84404000
[  128.460000] br0: port 2(wlan-1-1.1) entering forwarding state
zysudo uid=10001,euid=0

If you need, I can provide you with further details...

AR9344 is well supported, a bit weird to see a device with two NOR flash chips. Was this some enterprise line?

You'd be adding support under ath97/generic. 16/128MB should be sufficient to get it supported in main today still.

1 Like

Thank you Borromini for the answer you gave me. Yes the device was of the Enterprise type for business use, now we have been forced to replace it as Zyxel no longer produces updates....
I am new to the forum and this is my first post that I have sent.
I dont know how to proceed to insert the support under the ath79/generic...
Can someone help and support this device?

I assume the PM was in error. Everyone benefits when you just stick to the topic.

General instructions can be found here:

https://openwrt.org/docs/guide-developer/add.new.device

What often helps is looking at similar devices, and checking git commits for them to see which files you need to modify. With all the information you gather - and you already gathered quite a bit - you can then build a device tree (DTS) and take it from there.

That being said, I have never done this kind of thing myself, so I cannot help with that. Does help to pop in on IRC (#openwrt-devel) as most devs hang out there, not on the forum. There are threads to be found about adding device support though, but those might not answer all your questions.

Thank you very much Borroni, for the explanations, I will study to better understand how to proceed... I will also ask for support on the IRC channel #openwrt-devel... Thanks again

1 Like