How to build WiFi radio driver?

Hi.

I'm using WRT32x with stable version OpenWrt but it make error log like this.

Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.444638] ------------[ cut here ]------------
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.449303] WARNING: CPU: 0 PID: 6726 at backports-2017-11-01/net/mac80211/ieee80211_i.h:1412 0xbf2111fc [mac80211@bf1f8000+0x5e000]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.461277] Modules linked in: pppoe ppp_async pppox ppp_generic nf_conntrack_ipv6 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_policy xt_nat xt_multiport xt_mark xt_mac xt_limit xt_esp xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_FLOWOFFLOAD xt_CT slhc rfcomm nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack mwifiex_sdio mwifiex iptable_mangle iptable_filter ipt_ah ip_tables hidp hci_uart crc_ccitt btusb btmrvl_sdio btmrvl btintel bnep bluetooth hid evdev input_core mwlwifi mac80211 cfg80211 compat xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.532731] 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 ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_transport xfrm6_mode_beet esp6 ah6 ipcomp xfrm4_tunnel xfrm4_mode_tunnel xfrm4_mode_transport xfrm4_mode_beet esp4 ah4 tunnel6 tunnel4 af_key xfrm_user xfrm_ipcomp xfrm_algo ecdh_generic sha256_generic jitterentropy_rng drbg md5 kpp hmac echainiv ecb cmac cbc authenc fuse uas gpio_button_hotplug
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.591893] CPU: 0 PID: 6726 Comm: hostapd Tainted: G W 4.14.63 #0
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.599233] Hardware name: Marvell Armada 380/385 (Device Tree)
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.605181] Function entered at [<c010f500>] from [<c010b1d0>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.611038] Function entered at [<c010b1d0>] from [<c061a8a8>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.616895] Function entered at [<c061a8a8>] from [<c0121d40>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.622752] Function entered at [<c0121d40>] from [<c0121e0c>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.628610] Function entered at [<c0121e0c>] from [<bf2111fc>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.634472] Function entered at [<bf2111fc>] from [<bf1d14f8>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.640331] Function entered at [<bf1d14f8>] from [<c0550eb8>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.646187] Function entered at [<c0550eb8>] from [<c0550098>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.652045] Function entered at [<c0550098>] from [<c0550bc0>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.657901] Function entered at [<c0550bc0>] from [<c054f86c>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.663757] Function entered at [<c054f86c>] from [<c054fd10>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.669614] Function entered at [<c054fd10>] from [<c04ff744>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.675472] Function entered at [<c04ff744>] from [<c04ffc78>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.681328] Function entered at [<c04ffc78>] from [<c0500a78>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.687185] Function entered at [<c0500a78>] from [<c0107880>]
Sat Nov 24 12:25:50 2018 kern.warn kernel: [ 8540.693080] ---[ end trace 114085cd0ae6e14e ]---
Sat Nov 24 12:25:57 2018 kern.warn kernel: [ 8546.917777] ------------[ cut here ]------------

So, I wanna rebuild WiFi driver to fix this problem above,
how to build the module myself?
(I have already setup ubuntu for OpenWrt compile environment to build NginX.
So I can start you anything right away to build or menuconfig etc.)

This might be what you're looking for? Pre-compiled updated mwlwifi drivers for stable releases

Thanks.
I have found the packages in the build output folder.

It should be mentioned that it may be the wireless networking stack itself which is updated in the master/snapshot branch. No idea if you can easily backport it.

Erm... sorry, actually I don't understand what you are saying and term. @.@
So,
what does that 'backport' mean ? (and 'snapshot' you mentioned in another thread)
Please allow me, dummy, to understand. :slight_smile:

Releases are branched off master/head/trunk branch depending on which terminology you prefer.
These tend to diverse making backporting code (taking code from the master/head/trunk branch and merging it with the release branch not straight forward sometimes).
By snapshots I'm referring to the generated snapshots based on the master/head/trunk branch which use the most recent code however it's "not a release" meaning that you're on your own if something catches on fire etc It's basically to confirm whether it's fixed or still present. I've been running on own compiles of master/head/trunk for quite some time now without any issues on various devices including my WRT3200ACMs but it's not for everyone, just make sure you have a recovery plan if it goes south.

Oh..will give it try sooner later that snapshot branch. Thanks!

By the way, I'll close this issue as pure original question seem that solved.
And will keep discuss about matters at 'Unexpected rebooting wrt32x. Need trouble shooting advice'.
So,
if you don't mind please watch the thread that my original problem
and please share your idea about my latest reply about
mwlwifi-firmware-88w8864 - 2018-10-29-382700ce-1
mwlwifi-firmware-88w8964 - 2018-10-29-382700ce-1.
Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.