Pre-compiled updated mwlwifi drivers for stable releases

Any error message?

Thanks :slightly_smiling_face::beers:.....

I apologize, but I did not look back in the syslog appropriately at the time. I remember glancing at the last (most recent) dozen or so lines in the syslog. But in hindsight, I realize that any hardware failing to initialize likely would have been much further back in the syslog.

I do recall that the Wireless page in LuCI did not even allow enabling the radios at all. It stated that the no device was associated for each radio. Although when looking in the wireless config, everything was correct. Also, it did not properly create the /var/run/hostapd-phy0.conf and /var/run/hostapd-phy0.conf files.

I assume that it has to do with the lack of patches that came after that driver version that were specific to "loading driver on kernel 5.3+".

I will have a look to that, thanks!

1 Like

I´ve tryed to compile but,

with

PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2020-02-06
PKG_SOURCE_VERSION:=a2fd00bb74c35820dfe233d762690c0433a87ef5
PKG_MIRROR_HASH:=0eda0e774a87e58e611d6436350e1cf2be3de50fddde334909a07a15b0c9862b

it compiles ok but when I modify to

PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2018-12-10
PKG_SOURCE_VERSION:=c1345bb1d84950da2651c9921c17b1dfe0f1fa30

I get error...

What am I doing wrong??

Thanks :+1: :+1:

Do as the message says (re-run make with -j1 V=s) to find out the cause.

1 Like
Thanks :slight_smile: 
I did it and got this:


* HEAD is now at c1345bb Change driver version to 10.3.8.0-20181210.
* Packing checkout...
* touch /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.prepared_314dd04b50191fd5f8751a71db1dc615_18f1e190c5d53547fed41a3eaa76e9e9_check
* . /home/gabriel/openwrt/include/shell.sh; xzcat /home/gabriel/openwrt/dl/mwlwifi-2018-12-10-c1345bb1.tar.xz | tar -C /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.. -xf -
* [ ! -d ./src/ ] || cp -fpR ./src/. /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1
* touch /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.prepared_314dd04b50191fd5f8751a71db1dc615_18f1e190c5d53547fed41a3eaa76e9e9
* rm -f /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.configured_*
* rm -f /home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/stamp/.mwlwifi_installed
* (cd /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/./; if [ -x ./configure ]; then find /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/ -name config.guess | xargs -r chmod u+w; find /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/ -name config.guess | xargs -r -n1 cp --remove-destination /home/gabriel/openwrt/scripts/config.guess; find /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/ -name config.sub | xargs -r chmod u+w; find /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/ -name config.sub | xargs -r -n1 cp --remove-destination /home/gabriel/openwrt/scripts/config.sub; AR="arm-openwrt-linux-muslgnueabi-gcc-ar" AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1=mwlwifi-2018-12-10-c1345bb1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=arm-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-gcc-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1=mwlwifi-2018-12-10-c1345bb1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1=mwlwifi-2018-12-10-c1345bb1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/gabriel/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/usr/include -I/home/gabriel/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/include/fortify -I/home/gabriel/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/include " LDFLAGS="-L/home/gabriel/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/usr/lib -L/home/gabriel/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-8.4.0_musl_eabi/lib -znow -zrelro "   ./configure --target=arm-openwrt-linux --host=arm-openwrt-linux --build=i686-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls  ; fi; )
* touch /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.configured_68b329da9893e34099c7d8ad5cb9c940
* rm -f /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.built
* touch /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.built_check
* make  -C "/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.154" KCFLAGS="-ffile-prefix-map=/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi=target-arm_cortex-a9+vfpv3-d16_musl_eabi" HOSTCFLAGS="-O2 -I/home/gabriel/openwrt/staging_dir/host/include -I/home/gabriel/openwrt/staging_dir/hostpkg/include -I/home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="builder" KBUILD_BUILD_HOST="buildhost" KBUILD_BUILD_TIMESTAMP="Sun Oct 24 09:01:35 2021" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/gabriel/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/gabriel/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/symvers/mwlwifi.symvers /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/symvers/mac80211.symvers" KERNELRELEASE=5.4.154 M="/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1" NOSTDINC_FLAGS="-I/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1 -I/home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/mac80211-backport/uapi -I/home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/mac80211-backport -I/home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/mac80211/uapi -I/home/gabriel/openwrt/staging_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/usr/include/mac80211 -include backport/backport.h" modules
* make[3]: Entering directory '/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.154'
*   CC [M]  /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/core.o
* /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/core.c: In function 'mwl_wl_init':
* /home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/core.c:906:2: error: implicit declaration of function 'setup_timer'; did you mean 'sk_stop_timer'? [-Werror=implicit-function-declaration]
*   setup_timer(&priv->period_timer, timer_routine, (unsigned long)hw);
*   ^~~~~~~~~~~
*   sk_stop_timer
* cc1: some warnings being treated as errors
* scripts/Makefile.build:262: recipe for target '/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/core.o' failed
* make[4]: *** [/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/core.o] Error 1
* Makefile:1734: recipe for target '/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1' failed
* make[3]: *** [/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1] Error 2
* make[3]: Leaving directory '/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.4.154'
* Makefile:97: recipe for target '/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.built' failed
* make[2]: *** [/home/gabriel/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/mwlwifi-2018-12-10-c1345bb1/.built] Error 2
* make[2]: Leaving directory '/home/gabriel/openwrt/package/kernel/mwlwifi'
* time: package/kernel/mwlwifi/compile#3.11#0.48#4.81
*     ERROR: package/kernel/mwlwifi failed to build.
* package/Makefile:112: recipe for target 'package/kernel/mwlwifi/compile' failed
* make[1]: *** [package/kernel/mwlwifi/compile] Error 1
* make[1]: Leaving directory '/home/gabriel/openwrt'
* /home/gabriel/openwrt/include/toplevel.mk:228: recipe for target 'package/kernel/mwlwifi/compile' failed
* make: *** [package/kernel/mwlwifi/compile] Error 2


For now I have only managed to compile with these on Makefile I found on www:

PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2020-02-06
PKG_SOURCE_VERSION:=a2fd00bb74c35820dfe233d762690c0433a87ef5
PKG_MIRROR_HASH:=0eda0e774a87e58e611d6436350e1cf2be3de50fddde334909a07a15b0c9862b


PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2020-04-16
PKG_SOURCE_VERSION:=111118dc2ea3b592a5f7dff18c82d57a651970e7
PKG_MIRROR_HASH:=dea6eeb2200ebe52a8f5db5a188b85fb6e57b68fec5f6d3437375e63bf77741b


![Captura|690x130](upload://ciOMMSKDE8vMl6HyhuQH3uvDmFs.jpeg)

I´ll try to find where is the problem.
Thanks :+1:

I found where the mistake was:

PKG_SOURCE_URL:=https://github.com/kaloz/mwlwifi
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2018-12-10
PKG_SOURCE_VERSION:=31d9386079b91cc699658c19294e139b62b512bc

Now it compiled good :partying_face:

Thanks :slight_smile: :+1:

When I install old drivers on my WRT3200ACM with 21.02.1, I'm having trouble with the Wi-Fi setting.
I have deleted /etc/config/wireless, without success.

"Generic 802.11bg Device is not active"

Someone can help?

Would you mind letting us know when the files for 21.02.1 are ready? I am having the infamous wifi random drops with this version and things use to work fine with the 19.07.x versions. I tried opening the link that @lopez67876 posted, but it says that the file does not exist.
Thanks!

Using driver 2020-04-16 OpenWrt 21.02.1 for several days. All good :wink:

driver 2018-12-10 OpenWrt 21.02.1:

:wink:

Thank you for the files!

I will give the 2020-04-16 a try and hopefully the random disconnects will be gone.
Just to be clear, can you explain the differences between the 2 files?

  • driver 2018-12-10 OpenWrt 21.02.1.rar
  • driver 2020-04-16 OpenWrt 21.02.1.rar

Thanks again!

Answer here: Linksys WRT1900ACS - Wifi Connectivity Issues on 19.07.0 - #5 by eduperez

:+1:

I tried the 2020-04-16 and I still experience intermittent wifi connections (connection drops for 5/10 seconds only, but enough to interrupt YouTube for example). Since it seems this version is working for you, could you please post your wifi configuration (sanitized, of course)? Or maybe I can post mine and you can tell if there is something you don't like?
I have followed suggestions like removing the MAC address, disabling tx_amsdu for both radios, but the problem still persists....
Anyway, thanks for sharing the packages with everyone!

config wifi-device 'radio0'
	option type 'mac80211'
	option hwmode '11a'
	option path 'soc/soc:pcie/pci0000:00/0000:00:01.0/0000:01:00.0'
	option htmode 'VHT80'
	option channel 'auto'
	option cell_density '0'

config wifi-device 'radio1'
	option type 'mac80211'
	option hwmode '11g'
	option path 'soc/soc:pcie/pci0000:00/0000:00:02.0/0000:02:00.0'
	option cell_density '0'
	option channel 'auto'
	option htmode 'HT20'
	option legacy_rates '1'

config wifi-iface 'wifinet0'
	option device 'radio0'
	option mode 'ap'
	option short_preamble '0'
	option disassoc_low_ack '0'
	option network 'lan'
	option key 'PASSWORD'
	option ieee80211w '0'
	option ssid 'SSID1'
	option encryption 'psk2+ccmp'

config wifi-iface 'wifinet1'
	option device 'radio1'
	option mode 'ap'
	option ssid 'SSID2'
	option short_preamble '0'
	option disassoc_low_ack '0'
	option encryption 'psk2+ccmp'
	option key 'PASSWORD'
	option network 'lan'

config wifi-iface 'wifinet2'
	option device 'radio1'
	option mode 'ap'
	option ssid 'SSID3'
	option key 'PASSWORD'
	option ieee80211w '0'
	option network 'VLAN4'
	option encryption 'psk2+ccmp'
	option wmm '0'

Thank you so much for taking the time to post it!
I will review all my config and correct it accordingly: one thing I noticed right away is that you use 'auto' for the channels and that I have the fixed based on other threads' suggestions.

1 Like

@eduperez after using your 10.3.8.0-20181210-a2fd00b build on my WRT3200ACM with 19.07.07 with which I am very satisfied (thanks a lot for that BTW), I've seen that 21.02.01 is out but with some MAC issues.

So you can tell me what is your suggestions? Should we wait for a version 21.02.02? If so, with which version of the driver/firmware? As according to the OpenWRT makefile, version 21.02.01 is based on commit a2fd00b, why are you keep building packages for commit 31d9386? Are you aware of any issues with the latest commit 111118d?

Thanks!

I'm not eduperez, but, yes, you should wait until at least 21.02.2, as the thread you linked to documents a major bug was fixed for this series of routers after 21.02.1 was released.

3 Likes

Well last year in January my 5Ghz Wifi was gone and now it is back and 2.4Ghz Wifi network is gone. Happened this night and not sure why but this is so weird. (Tried to upgrade to version 21.02.1 today to see if it solves it but then in bricked my router and had to switch to secondary partition)

After successful installation of 21.02.01 both radio's are working for at least 12h now. Initially the 2.4GHz radio was not working (although I could scan for devices with it) but after switching from channel 11 to 6 it started to work.