Modify

Opened 4 years ago

Closed 2 years ago

#17262 closed defect (fixed)

wlX interfaces not being added to br-lan

Reported by: mravouk Owned by: hauke
Priority: normal Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: broadcom interface bridge Cc:

Description

As per https://forum.openwrt.org/viewtopic.php?id=51803

In particular, having

config wifi-iface
  option device wl0
  option network lan
  option mode ap

does not force the interface to be added to the lan bridge automatically upon startup. Manually executing

brctl addif br-lan wl0

does.

Attachments (2)

config (134.7 KB) - added by mravouk 3 years ago.
for trunk r42110
wifi_race_condition.patch (254 bytes) - added by anonymous 3 years ago.

Download all attachments as: .zip

Change History (26)

comment:1 Changed 4 years ago by hauke

  • Owner changed from developers to hauke
  • Status changed from new to accepted

comment:2 Changed 4 years ago by hauke

see #17298 as dup

comment:3 follow-up: Changed 3 years ago by hauke

I just tried to reproduce this with current trunk and there it works with BCM4716 wifi. Does this problem still exist for you in trunk?

comment:4 Changed 3 years ago by herr.ernst@…

I just wanted to test it, but I couldn't install kmod-brcm-wl. I flashed http://downloads.openwrt.org/snapshots/trunk/brcm47xx.mips74k/openwrt-brcm47xx-mips74k-squashfs.trx from August 10, and on opkg install kmod-brcm-wl i get:

Installing kmod-brcm-wl (3.10.49+5.10.56.27.3-7) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages/base/kmod-brcm-wl_3.10.49+5.10.56.27.3-7_brcm47xx.ipk.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-brcm-wl:
 * 	kernel (= 3.10.49-1-7a3bd5036c887746d8fcde5e53c967ce) * 
 * opkg_install_cmd: Cannot install package kmod-brcm-wl.

Any suggestions?

comment:5 Changed 3 years ago by hauke

The kmod-brcm-wl package does not match the kernel installed in the image. The kmod-brcm-wl is from a different build than your image, could you retry to flash the image from http://downloads.openwrt.org/snapshots/trunk/brcm47xx.mips74k/openwrt-brcm47xx-mips74k-squashfs.trx and then install kmod-brcm-wl.

comment:6 in reply to: ↑ 3 Changed 3 years ago by mravouk

I have some difficulties building the trunk right now since I needed to enable oldpackages. Once I get it working I will confirm whether it's solved.

Changed 3 years ago by mravouk

for trunk r42110

comment:7 Changed 3 years ago by mravouk

Unfortunately, it behaves the same way with r42110. Attached the config file in case there is something funky in there.

comment:8 Changed 3 years ago by hauke

Please try to build trunk with the default config for wl.

comment:9 Changed 3 years ago by mravouk

I just did and it's the same (it's RT-N16 btw):
broadcom mips, 74, wl everything else is default made by make defconfig
Should I get rid of defconfig as well?

comment:10 Changed 3 years ago by wolf

I have the same problem with my E2000. I was building from trunk and used the mips74k subtarget.
The wifi-interface is properly configured but not added to the bridge.

comment:11 Changed 3 years ago by hauke

I flashed BB RC3 on my WNDR3400, installed kmod-brcm-wl and wlc and then configured wifi and I do not have any problems with wl0 being added to the bridge:

root@OpenWrt:/# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          7fff.30469a84357e       no              eth0.1
                                                        wl0
root@OpenWrt:/# cat /etc/config/wireless 
config wifi-device  wl0
        option type     broadcom
        option channel  1

        # REMOVE THIS LINE TO ENABLE WIFI:
#       option disabled 1

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     OpenWrt
        option encryption psk2
        option key      1234567890

Could someone with this problem try this wireless config with BB rc3 and report back?

comment:12 Changed 3 years ago by hauke

Are you using a fresh installation or are you dong sysupgrade?

comment:13 Changed 3 years ago by mravouk

BB RC3 r42056 downloaded from http://downloads.openwrt.org/barrier_breaker/14.07-rc3/brcm47xx/mips74k/openwrt-brcm47xx-mips74k-squashfs.trx and using the above configs still exhibits the same problem.

Just to be clear, I do use sysupgrade -n, but always do firstboot before and 30-30-30 afterwards.

comment:14 Changed 3 years ago by herr.ernst@…

I've also tried a fresh installation of RC2 and RC3 with your config above, WiFi still doesn't get added to the bridge (WRT320N/E2000)

comment:15 Changed 3 years ago by anonymous

The lastest version(BB RC3,r42625)still doesn't work on my router(Asus N16),I have to manually bridge the wifi up.

comment:16 Changed 3 years ago by OperatorOverload

A very recent trunk build (CC Bleeding Edge, r43034) still seems to exhibit this behavior on a Linksys E3000. Interestingly enough, it only appears to affect my wl0 (2.4Ghz) interface, not wl1 (5 Ghz). The wl1 interface adds automatically to the bridge as expected.. would be curious to see if other users with this issue have similar experience.

Before the 43034 build I had a trunk build loaded from some months back (circa May). That version did not have this issue for either wl0 or wl1, so clearly something has changed. Not sure on the timing for netifd change, but that's a possible culprit.

Changed 3 years ago by anonymous

comment:17 Changed 3 years ago by anonymous

I found a workaround for my E2000 by addding a sleep command to the network init script.
https://dev.openwrt.org/attachment/ticket/17262/wifi_race_condition.patch
Can you confirm this will fix the problem?

comment:18 Changed 3 years ago by herr.ernst@…

I've added the sleep command to /etc/init.d/networking, but unfortunately it hasn't changed anything: after reboot, wifi is still missing from bridge.

comment:19 Changed 3 years ago by herr.ernst@…

Okay, it works if I increase the sleep time to 10.

comment:20 Changed 3 years ago by tisdall

I'm also experiencing this issue with a Netgear wnr3500l using the proprietary Broadcom drivers (it labels the wireless as "wl0").

comment:21 Changed 2 years ago by superlupo

Still happens after sysupgrade to 15.05-rc3.

comment:22 Changed 2 years ago by anonymous

Latest trunk still exhibits same behavior. Doesn't initialize on device boot, but restarting the wireless network fixes the issue. Relevant logs:

Upon host attempting to connect:

daemon.warn dnsmasq-dhcp[993]: DHCP packet received on wl0 which has no address

Upon restarting wi-fi:

Sun Aug 23 14:07:26 2015 daemon.notice netifd: Network device 'wl0' link is up
Sun Aug 23 14:07:26 2015 kern.info kernel: [  240.690000] device wl0 entered promiscuous mode
Sun Aug 23 14:07:26 2015 kern.info kernel: [  240.690000] br-lan: port 2(wl0) entered forwarding state
Sun Aug 23 14:07:26 2015 kern.info kernel: [  240.700000] br-lan: port 2(wl0) entered forwarding state

comment:23 Changed 2 years ago by DooMMasteR

jepp confirmend on my WNR3500L, still need the wifi up in rc.local to have a working wifi after boot.

comment:24 Changed 2 years ago by hauke

  • Resolution set to fixed
  • Status changed from accepted to closed

Thank you for reporting this is fixed in r46749 and r46750.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.