WLAN driver is not able to load more than one iface at one time
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- c, linux, raspberry-pi
- Domain
- embedded-iot, networking, operating-systems
Research direction
Start with the /etc/network/interfaces configuration and the provided /var/log/kern.log output, then reproduce the failure using hostapd, dnsmasq, and dhcpcd with both wlan0 and uap0 configured. Investigate the brcmfmac messages around interface setup and connection, and consider the issue resolved only when both interfaces initialize correctly after reboot without manual ifdown/ifup.
Written by the indexing model from the issue text.
Description
Issue is mostly described there: another guy having the same problem, but I'm not sure whether he made any bug report or not (nothing here, Debian buglist query is quite unusable for me but I did not found anything)
The problem appears when you try to configure ap and client in bridge mode (as wifi extender or as modem (inet gprs, ppp) and I want to have blocked ssh from outer internet) via /etc/network/interfaces, hostapd, dnsmasq and dhcpcd (there are tons of manual how to do that)
But after rebooting ifup fails to bring up wlan0 correctly while AP is fine, so you have to ifdown wlan0 and ifup wlan0. As suggested in url above iface wlan0 inet manual and putting sleep in /etc/rc.local didn't help
Linux nightenom_zero 4.9.59+ #1047 Sun Oct 29 11:47:10 GMT 2017 armv6l
/var/log/kern.log:
15:50:18 [ 11.293366] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
15:50:18 [ 11.333796] usbcore: registered new interface driver brcmfmac
15:50:18 [ 11.731678] brcmfmac: Firmware version = wl0: Aug 7 2017 00:46:29 version 7.45.41.46 (r666254 CY) FWID 01-f8a78378
15:50:18 [ 11.734287] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 7.11.15 Compiler: 1.24.2 ClmImport: 1.24.1 Creation: 2014-05-26 10:53:55 Inc Data: 9.10.41 Inc Compiler: 1.29.4 Inc ClmImport: 1.36.3 Creation: 2017-08-07 00:37:47
15:50:18 [ 13.959924] w1_master_driver w1_bus_master1: w1_search: max_slave_count 64 reached, will continue next search.
15:50:18 [ 14.332303] uart-pl011 20201000.serial: no DMA platform data
15:50:20 [ 17.382520] Adding 102396k swap on /var/swap. Priority:-1 extents:4 across:241660k SSFS
15:50:21 [ 18.505147] rpi-sense 1-0046: Raspberry Pi Sense HAT firmware version 0
15:50:22 [ 18.869994] input: Raspberry Pi Sense HAT Joystick as /devices/virtual/input/input0
15:50:22 [ 18.977860] Bluetooth: Core ver 2.22
15:50:22 [ 18.977974] NET: Registered protocol family 31
15:50:22 [ 18.977982] Bluetooth: HCI device and connection manager initialized
15:50:22 [ 18.978008] Bluetooth: HCI socket layer initialized
15:50:22 [ 18.978024] Bluetooth: L2CAP socket layer initialized
15:50:22 [ 18.978090] Bluetooth: SCO socket layer initialized
15:50:22 [ 19.003387] Bluetooth: HCI UART driver ver 2.3
15:50:22 [ 19.003407] Bluetooth: HCI UART protocol H4 registered
15:50:22 [ 19.003413] Bluetooth: HCI UART protocol Three-wire (H5) registered
15:50:22 [ 19.003594] Bluetooth: HCI UART protocol Broadcom registered
15:50:22 [ 19.134612] fb1: RPi-Sense FB frame buffer device
15:50:23 [ 19.769062] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
15:50:23 [ 19.769077] Bluetooth: BNEP filters: protocol multicast
15:50:23 [ 19.769103] Bluetooth: BNEP socket layer initialized
15:50:23 [ 20.352997] random: crng init done
15:50:25 [ 22.365960] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
15:50:25 [ 22.365982] brcmfmac: power management disabled
15:50:27 [ 23.979146] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
15:50:36 [ 33.432215] IPv6: ADDRCONF(NETDEV_UP): uap0: link is not ready
15:50:39 [ 36.276076] nf_conntrack version 0.5.0 (7168 buckets, 28672 max)
15:50:41 [ 37.734080] brcmfmac: brcmf_link_down: WLC_DISASSOC failed (-11)
15:50:41 [ 37.786619] IPv6: ADDRCONF(NETDEV_CHANGE): uap0: link becomes ready
15:50:41 [ 38.588722] brcmfmac: brcmf_c_set_joinpref_default: Set join_pref error (-1)
15:50:41 [ 38.590398] brcmfmac: brcmf_cfg80211_connect: BRCMF_C_SET_SSID failed (-1)
One offtopic question: I want to know for what is wlan1 written in /etc/network/interfaces and whether I can delete it, nothing found on Google
- Dominant language
- C
- Stars
- 13.2k
- Forks
- 5.5k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 21
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from raspberrypi/linux
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
raspberrypi/linux#7415 · 2 comments · 1 reaction ·
-
rp1-cfe doesn't forward V4L2_EVENT_SOURCE_CHANGE event from csi-2 sensor driver to userspace app Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
raspberrypi/linux#7399 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
raspberrypi/linux#7357 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
raspberrypi/linux#7054 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
raspberrypi/linux#7634 · 8 comments · 1 reaction ·
All issues in raspberrypi/linux
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·