RT-N16 brcmFmac & brcm-wl trouble

Hi. I tried stock b43, brcmSmac for wireless.
With b43 it is only 802.11g, with brcmSmac 802.11n but only 20Mhz.
With brcmFmac & brcm-wl I haven't reach success.
Can somebody suggest how to get them work on 18.06 or 19.07?
I tryed examples from this topic https://forum.archive.openwrt.org/viewtopic.php?id=46979 but with no luck.

Open-source support for old, Broadcom wireless hasn't changed much since that 2013 post.

https://openwrt.org/meta/infobox/broadcom_wifi

https://openwrt.org/toh/asus/rt-n16

A decade-old, "draft-N" router is a good candidate for upgrade, even if just to get 802.11ac support.

2 Likes

Thanks for answer. But there https://openwrt.org/docs/techref/hardware/soc/soc.broadcom.bcm47xx I found that I can use brcmFmac. But there are no instructions ((
After

opkg update && opkg remove kmod-b43 kmod-brcmsmac && opkg install kmod-brcmfmac

wifi does't want to work, even if I delete wireless config and reboot router ((

Incorrect.

  • That's a FullMAC driver, not a SoftMAC that uses mac80211 - found in OpenWrt
  • The page you linked does not mention older draft-N devices
  • The page you linked says: "Broadcom WiFi cores found on USB, SDIO and SPI interfaces" - and I thought you had an SoC
  • See: https://wireless.wiki.kernel.org/en/users/drivers/brcm80211
  • All sites clearly state you need the proprietary firmware (manually located, downloaded and installed) - did you install the firmware too?

Thanks! Now I undestood, that I can't use brcmfmac for rt-n16. Brcmsmac now work, but only on 20Mhz. (I think it means that firmware already installed). How I can get to work brcm-wl? Can somebody post working config for brcm-wl?

  • Wow...you purchased a license from Broadcom!?!?
  • That works as an AP?!?!
  • Will they let you share it with us???

You will likely have to install wlc and wireless-tools.

https://openwrt.org/docs/techref/hardware/soc/soc.broadcom.bcm47xx#broadcom-wl

Note that broadcom-wl doesn't use a standard cfg80211 API, so it can't be configured using standard nl80211 tools. This is why OpenWrt has an extra package providing wlc (user space tool that uses Broadcom's proprietary API) and broadcom.sh (that translates UCI config into wlc calls). You can also install wl binary that is closed source version of wlc written by Broadcom that may be helpful for some debugging. Remember that broadcom.sh may not handle all UCI options, please see the UCI wireless configuration page for the details. Some advanced functionality can by configured with the wl utility only. Beware that running wifi (to activate your UCI WiFi configuration file) will however restart the driver and you will lose your settings made by the utility.

Remember that there is little interest in devices that require legacy Broadcom wireless drivers (due to their severe limitations compared to better-supported chip sets), so the documentation may be many years old. It looks like there haven't been any significant changes on that page in five or more years.

The code dates back nearly a decade

4ae595a3aa1 package/broadcom-wl/Makefile        (Jo-Philipp Wich 2010-07-13 16:55:57 +0000  12) PKG_VERSION:=5.10.56.27.3

I followed this instrction http://softinite.com/?p=241 but I think luci is not adopteb for this driver. And in my case devices connected and disconnected immediate.
As a result, is the best way to use brcmsmac driver? There is no other options besides b43 (((

Let me be clear up any confusion. No, won't work:

From https://wiki.debian.org/wl

It includes a binary-only component targeted for the x86 or x86-64 architecture. Supported devices are listed at the end of this page.

From https://www.archlinux.org/packages/community/x86_64/broadcom-wl/

Architecture: x86_64
Repository: Community
Description: Broadcom 802.11 Linux STA wireless driver

From: https://www.broadcom.com/support/download-search?pf=Wireless+LAN+Infrastructure

here are different tars for 32-bit and 64-bit x86 CPU architectures.

This is why I asked if he purchased a license...

or maybe your device is x86_64???

NO - you don't, because is a Broadcom CPU SoC.

As far as I know, this is the ONLY way.

I mean wireless config file. Yes, it used as AP.

Thank for all!!!

1 Like

Read the pages carefully then, as brcm-wl does not work in AP mode.

BTW, you don't have to use 2 posts to respond - we can see you talking to everyone.

brcm-wl only works great on Lede (Asus RT-N16). It doesn’t work on OpenWRT, they ruined everything

Thanks! I will try it. Which version do you use? How you configure it? Something like this http://softinite.com/?p=241 ?

LEDE 17.01.7

https://openwrt.org/toh/asus/rt-n16

opkg remove kmod-b43 kmod-b43legacy kmod-mac80211 kmod-cfg80211 kmod-brcmsmac
opkg update; opkg install kmod-brcm-wl nas wlc wl
rm -f /etc/config/wireless; reboot

1 Like

Thank a lot!

First, to be very clear, OpenWrt didn't do anything to "ruin" this.

Broadcom hasn't maintained it in a decade and it is a miracle that it was working at all with the Linux 4.4 kernel. Kernel ABIs change with time and proprietary, binary blobs eventually no longer are compatible. In the cell-phone world, this is often months, not many years.

Second, LEDE v17 is not a solution and shouldn't be run on any device.

v17 is unmaintained, has been for some time, and is not recommended for any use at this time due to multiple, severe, well-known, actively exploited security vulnerabilities in its kernel, third-party applications, and 802.11 protocols.

4 Likes