@rpmoomin wrote:
guys, do not bother with trying to set country code, the issue is with the brcmfmac driver.
I solved the issue with getting the firmware files from the latest snapshot, copied over to running latest stable version (18.06.5 - kernel 4.9.198) and restarted wifi, all is working now and using mode '11a' with no other issues.
here is the list of steps:
- download snapshot (mine is the latest frm Nov 26 - r11595-5d2a900163)
- mount it via loop device
fdisk -l <img_file>, shows the 2 partitions, get the start block number for the 2nd partition
calculate the offset, multiply number by 512
in my case it was 75497472
mount -o loop,offset=75497472 <img_file> /mnt
scp lib/firmware/brcm dir to the running system
remove /etc/config/wireless, if there is any in your running system
reboot (or use uci commit wireless and wifi), phy0 and wlan0 will be created just fine, check dmesg and wireless/network etc files and continue setting up your system
happy 'wrt-ing'!