OpenWrt Forum Archive

Topic: WNDR4000 Generic MAC80211

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hey,

Just installed OpenWrt Chaos Calmer r42711 on a WNDR4000 that was running stock firmware.
Was configuring all the stuff when I noticed that radios are both showing up as Generic MAC80211 802.11bg.

dmesg says:

[   12.630000] b43-phy0: Broadcom 4331 WLAN found (core revision 29)
[   12.640000] bcma: bus1: Switched to core: 0x812
[   12.640000] b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   12.650000] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   12.650000] b43-phy0 warning: 5 GHz band is unsupported on this PHY
[   12.660000] b43-phy1: Broadcom 4716 WLAN found (core revision 17)
[   12.760000] b43-phy1: Found PHY: Analog 8, Type 4 (N), Revision 5
[   12.770000] b43-phy1: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[   12.780000] Broadcom 43xx driver loaded [ Features: NL ]
[   12.800000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   12.880000] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'

Should I open a bug report ? Or anyone has a clue ?

Thanks

(Last edited by dynek on 2 Oct 2014, 23:04)

it's just a name. I think you need proprietary broadcom wireless drivers if you want 5 GHz (802.11a/802.11an) . support. See the wiki

dynek wrote:

Should I open a bug report ? Or anyone has a clue ?

Report/clue about what?

Zajec wrote:
dynek wrote:

Should I open a bug report ? Or anyone has a clue ?

Report/clue about what?

Make an educated guess.

OK well I should have said: Should I raise a ticket to ask if I can be of any help having WNDR4000 WiFi work ? Or anyone has such a device and already knows what to do ?

(Last edited by dynek on 3 Oct 2014, 12:29)

dynek wrote:

OK well I should have said: Should I raise a ticket to ask if I can be of any help having WNDR4000 WiFi work ?

So the WiFi doesn't work for you? What exactly happens? Can you see the SSID broadcasted? Can you connect? Is the performance poor? Do you have problems with both WiFi devices, or just one?

Well instead of seeing one 2.4Ghz radio and one 5Ghz radio I see two Generic MAC80211 802.11bg.
Haven't really gone any further as it looks something's wrong there, right ?
Now, if I hit "scan" on both radio, I see some 2.4Ghz networks around, no 5Ghz network showing up.

Scanning from radio0 shows 3 networks - rock solid. The list never changes, it always shows the same networks
Scanning from radio1 shows 9 networks - rock solid. The list contains 3 networks mentioned above + 6 other networks

Tried running the scan multiple times, reboot, etc. It always shows the exact same networks (3 on radio0 and 9 on radio1 which includes 3 same networks as radio0).

If this can help:

# wifi detect > /etc/config/wireless
edited the file to enable both radio + /etc/init.d/network reload


# ifconfig -a
wlan0
Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX 
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)  TX bytes:192 (192.0 B)

wlan1
Link encap:Ethernet  HWaddr XX:XX:XX:XX:XX:XX 
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)  TX bytes:192 (192.0 B)

# iwinfo radio0 info
ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master  Channel: 11 (2.462 GHz)
Tx-Power: unknown  Link Quality: unknown/70
Signal: unknown  Noise: unknown
Bit Rate: unknown
Encryption: none
Type: nl80211  HW Mode(s): 802.11bg
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no  PHY name: phy0

# iwinfo radio1 info
ESSID: unknown
Access Point: 00:00:00:00:00:00
Mode: Master  Channel: 11 (2.462 GHz)
Tx-Power: unknown  Link Quality: unknown/70
Signal: unknown  Noise: unknown
Bit Rate: unknown
Encryption: none
Type: nl80211  HW Mode(s): 802.11bg
Hardware: unknown [Generic MAC80211]
TX power offset: unknown
Frequency offset: unknown
Supports VAPs: no  PHY name: phy1

# dmesg | grep -i "b43\|wlan"
[   12.630000] b43-phy0: Broadcom 4331 WLAN found (core revision 29)
[   12.640000] b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   12.650000] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   12.650000] b43-phy0 warning: 5 GHz band is unsupported on this PHY
[   12.660000] b43-phy1: Broadcom 4716 WLAN found (core revision 17)
[   12.760000] b43-phy1: Found PHY: Analog 8, Type 4 (N), Revision 5
[   12.770000] b43-phy1: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[  104.690000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  106.830000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  108.980000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  115.300000] b43-phy1: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  117.910000] b43-phy1: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  120.520000] b43-phy1: Loading firmware version 666.2 (2011-02-23 01:15:07)

(Last edited by dynek on 3 Oct 2014, 14:48)

Can you provide output of

nvram show | egrep 'devpath|devid'

# nvram show | egrep 'devpath|devid'
sb/1/devid=0x4329
pci/1/1/devid=0x4331

Oh, this is funny. It seems your BCM4331 is dual band, not 5 GHz only!

#define BCM4331_D11N_ID        0x4331        /* 4331 802.11n dualband id */
#define BCM4331_D11N2G_ID    0x4332        /* 4331 802.11n 2.4Ghz band id */
#define BCM4331_D11N5G_ID    0x4333        /* 4331 802.11n 5Ghz band id */

Anyway, BCM4331 isn't supported well yet, it still misses 5 GHz band support. I started working on that, but it's not ready yet.

I'm available for any test you would want to make :-)

Thanks for your time, really appreciated!

(Last edited by dynek on 3 Oct 2014, 17:33)

I am having the same issue with WNDR4000 - no Wireless N support.

Firmware Version OpenWrt Barrier Breaker 14.07 / LuCI Trunk (0.12+svn-r10530)

nvram show | egrep 'devpath|devid'

sb/1/devid=0x4329
pci/1/1/devid=0x4331

dmesg | grep -i "b43\|wlan"

[   11.310000] b43-phy0: Broadcom 4331 WLAN found (core revision 29)
[   11.310000] b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   11.320000] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   11.330000] b43-phy0 warning: 5 GHz band is unsupported on this PHY
[   11.330000] b43-phy1: Broadcom 4716 WLAN found (core revision 17)
[   11.410000] b43-phy1: Found PHY: Analog 8, Type 4 (N), Revision 5
[   11.410000] b43-phy1: Found Radio: Manuf 0x17F, ID 0x2056, Revision 7, Version 0
[  110.160000] b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
[  295.470000] b43-phy1: Loading firmware version 666.2 (2011-02-23 01:15:07)

I have the same issue with WNDR4000, no 5Ghz in phy0
I also found there are difference between phy0(wlan0) and pyh1 (wlan1).  SSID for both wlan was set to openwrt initially and I modified wlan0 to openwrt0 and wlan1 to openwrt1.  I am able to connect both SSID.  Connect to wlan1 is able to access internet, but not with wlan0.  They have identical setup.

b43 support 5 GHz for "N-PHY" devices only. As you can see
1) BCM4331 is HT-PHY hardware, dual band, but we support 2 GHz only
2) BCM4716 is N-PHY, so we could support 5 GHz, but the hardware is 2 GHz only

I'll try to add 5 GHz support for HT-PHY in next months.


amenra: did you notice WNDR4000 is MIPS arch? Now check the Broadcom's driver again closely.

(Last edited by Zajec on 5 Oct 2014, 16:04)

Zajec wrote:

amenra: did you notice WNDR4000 is MIPS arch? Now check the Broadcom's driver again closely.

Ah, yes, missed that. Thank you. Looking forward to a solution soon.

Jumping in again, looks like DD-WRT is not mentioning any caveat in regard to WiFi. That means they have it (partially) working I guess.

I'd be interested in knowing which driver they are using and if there's any drawback.

dynek wrote:

Jumping in again, looks like DD-WRT is not mentioning any caveat in regard to WiFi. That means they have it (partially) working I guess.

I'd be interested in knowing which driver they are using and if there's any drawback.

they somehow have access to the closed-source broadcom drivers. The pros - it works. The cons - no source and you have to use DD-WRT.

Any update on the status of this router? I don't want to run DD-WRT wink

Edit: oops, I meant the WNDR3400. I used the search function but didn't notice this thread was about the WNDR4000.

(Last edited by normblop on 13 Jun 2015, 13:52)

Although I've never been able to get 5G to work with this router, I had the 2G working, but I could ONLY get Barrier Breaker to work, anything newer and the wireless would not work.  I tried installing from scratch AND upgrading, nothing would work.

Anyway, I dug into this a little more.  It seems that the auto wireless configuration was always applying the wrong device in /etc/config/wireless.  Under radio1, the device was always "bcma0:0", which was correct in Barrier Breaker, but there must have been a driver change in how its being ordered in later kernels.  I edited this to "bcma0:1" and /etc/init.d/network restart, and viola, I could access the 2G network again.  So anyone who wants to get this at least somewhat working, should be able to make those changes.

I tried the latest build earlier this year but still had two 2G network and no 5G.
Is 5G support for WNDR4000 planned in any future release/build? I want to move out of DDWRT.

thanks for looking.

The discussion might have continued from here.