New mwlwifi driver cant load wifi on Linksys wrt12000ac

the git commit "0845a346661092f380ab88fd69f7c29f5247c61a" has added a new version for mwlwifi, named mwlwifi-2018-06-15-8683de8e.
so installing image from this git commit makes my wifi not load.

I see alot of these errors in kernel massages:

> " kernel: [ 16.354318] ieee80211 phy1: unmapped+free’d 250 0xdd5e6080 0x1d5e6080 4096"
and then this
> 01:18:38 2018 kernel: [ 16.395870] ieee80211 phy1: cleaned 0 TX descr
> Fri Jun 22 01:18:38 2018 kern.err kernel: [ 16.400373] ieee80211 phy1: init fail
> Fri Jun 22 01:18:38 2018 kern.err kernel: [ 16.404060] ieee80211 phy1: fail to initialize wireless lan
> Fri Jun 22 01:18:38 2018 kern.err kernel: [ 16.446770] ieee80211 phy1: adapter does not exist
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 13.322711] mwlwifi: probe of 0000:01:00.0 failed with error -5
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 14.411335] Modules linked in: mwlwifi(+) mac80211 cfg80211 compat ledtrig_oneshot xt_set x_tables ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink pppoatm ppp_generic slhc ifb tun br2684 atm ahci gpio_button_hotplug mii
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 14.516316] [<bf181e70>] (ieee80211_register_hw [mac80211]) from [<bf1ec480>] (mwl_init_hw+0xa44/0xcb8 [mwlwifi])
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 14.526659] [<bf1ec480>] (mwl_init_hw [mwlwifi]) from [<bf1f7144>] (pcie_probe+0×274/0x2c8 [mwlwifi])
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 14.535942] [<bf1f7144>] (pcie_probe [mwlwifi]) from [<c038a1e4>] (pci_device_probe+0×90/0x11c)
> Fri Jun 22 01:18:38 2018 kern.warn kernel: [ 16.451636] mwlwifi: probe of 0000:02:00.0 failed with error -5

This would appear to be a one off, so I would suspect the device or image. Maybe try to roll back to the previous image to see if phy1 loads correctly.

How did you get from the source code at GitHub to a binary in your device? Did you compile just the drivers yourself? Did you rebuild the whole system?

I have used drivers compiled from that commit, and I am currently using a version compiled from a couple of commits later, and it works perfectly for me.

unfortunately it is not a one off.
If I go back to a commit before that my wifi works.
If I use that commit or any commit after that my wifi doesnt work.

I use git trunk of openwrt to build a custom image(have always done so).

I think you could compile mesh suport (i bet you have disabled it in firmware) and the new mwlwifi should work or use this (as i have been told, not tested myself yet):

In that case, I would file a but at kaloz's repo.

The one off was meant to convey that the issue appears unique to your use case, whether the device or the image. Since you can go back, it appears to be the image. Maybe try a snapshot image to test if same issue persists. There are also wrtpac images off the link on my avatar if that helps with your problem solving.

I have only been using the radios on a rango as of late (so different radio device), but have seen no issues with the current in master, or the two following commits. If the issue was common there would be a lot of voices raised I think.

Edit: and as noted, you should take FS1604 to the mwlwifi issues for resolution.

how did I disable that?
I use custom images because I dont want some of the features in standard image and to add my config from start.
where do I check that mesh support?

now it seems something is wrong with my config because I did a clean build from trunk with my config and it still fails.
I installed the snapshot from website of openwrt and it works
what am I missing?
I checked the installed packages in the snapshot(which is small ) and I have all of them installed.

I enables the mesh option and it got fixed.
for others this is the option: