-
Notifications
You must be signed in to change notification settings - Fork 5.2k
RPI-3 brmfmac driver - Kernel trace while setting up Ad-hoc mode #1384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you give more information about what you did so we can try to reproduce this? |
First disabled the wlan0 from /etc/network/interfaces Command to start the Ad-hoc Mode |
Thanks for that. I can reproduce the crash on rpi-4.1.y. What makes you think that this is supposed to work? I'm not sure that it is. You may be better off asking about this on the Raspberry Pi Forums, where people have had success using hostapd: https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=140997&p=940642 |
Don't you think that is the different part than ad-hoc mode? I think, they are discussing about disable the SSID broadcasting in AP mode. I have already posted my issue on Raspberry Pi forum. https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=142306 I have tested ad-hoc mode on RPI2 using wipi. Please find below the same. Logs for above commands iw dev wlan0 station dump So I am just trying to do the same thing on RPI3 as iw phy0 info says it supports the ad-hoc IBSS mode. |
brcmfmac source has following callback for ibss mode. Not sure but some issue with channel as per if (WARN_ON(!channel)) return; at net/wireless/ibss.c:67 |
@pelwell did you get a time to reproduce the crash? |
Nope - not yet. |
@pelwell any suggestion to try and check? |
It doesn't crash on 4.4, but it also doesn't work - instead you get:
Since we've made our last 4.1 release I'd rather work on the 4.4 tree. To update the kernel and firmware you can use:
|
Tried 4.4 |
I'm looking at that next. |
Thanks |
I've been slightly diverted into working out why channels 12 & 13 don't work in the 4.6 kernel, but I'll get back to IBSS ASAP. |
IBSS appears to be supported on the 4.5 and 4.6 kernels. I can create an Ad Hoc network, even though I can't do much with it; my Android phone won't connect, and my laptop connects but probably needs some additional networking configuration to be able to make use of it. I can see the failure 4.4; I don't have a fix yet, but I'm getting closer. |
I've just back-ported two commits to the 4.4 tree that seems to make it work as well as 4.5 for Ad Hoc mode. They will get picked up in the next build. |
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
IBSS mode works! Thanks |
Did the fix make it into a released kernel? On attempting ad-hoc mode, I'm seeing a
(The 8192cu module is loaded because wlan1 is a USB rtl8188cus chip; the trace reproduces with or without the second adapter connected.) I can't reproduce it on a Raspberry Pi 2 B v1.1 with the same kernel version (4.4.35-v7+). It seems to work fine there. |
This is something different. I think, failed to get the bss information while roaming. |
Ah, thanks; I didn't catch the meaning of the difference in the stack traces. I've opened #1742 for this. |
See: raspberrypi/linux#1257 kernel: backport commits to fix Ad Hoc mode See: raspberrypi/linux#1384 kernel: BCM270X_DT: Sound DT adjustments for Dynamic DT kernel: dts: add overlay for pitft22 See: https://github.com/adafruit/Adafruit-Pi-Kernel-o-Matic kernel: drm/vc4: Add DT parameters to control CMA usage See: raspberrypi/linux#1431 kernel: ARM: bcm2835: add i2s-gpio28-31 for cm See: raspberrypi/linux#1430
Closing this issue as questions answered/resolved. |
I have been trying to setup the Ad-hoc mode using brmfmac but got following logs it crashes while configuring.
Unable to join the ibss. The power management is already off. So anyone ever noticed the same?
The text was updated successfully, but these errors were encountered: