brcmsmac: Invalid killswitch handling
I had a discussion with Matthew Garrett about handling of a wifi killswitch on a Dell laptop.
Some (rfkill) code was removed from platform/dell-laptop. On my machine a bug now occurs which is caused by brcmsmac in the view of Matthew.
So is this a bug, or do you have no killsitch handling, so far?
Bug description:
Quoted 9 lines
physical switch is OFF
rfkill state is ON
=> Laptop hangs on boot (maybe because a physical ascent device is used by network subsystem)physical switch is OFF
rfkill state is OFF
=> Activate interface in Gnome Connection Manager => System hang
Quoted 5 lines
test setup:
Dell Vostro 3300
Broadcom 4313 Wifi
Kernel 3.5.[0-2] & 3.6
Fedora 17
What Matthew wrote to me:
Quoted 7 lines
Quoted 3 lines
With the old dell-laptop code included everything was fine with brcmsmac. So either generic platform code does not handle the switch correct or there is no handling at all?
brcmsmac is broken. I suspect it was happily claiming to be unblocked,
but was ignored because dell-laptop claimed to be blocked.
Full discussion thread:
https://lkml.org/lkml/2012/8/23/234
Quoted 7 lines · Sebastian Poehn
I had a discussion with Matthew Garrett about handling of a wifi killswitch on a Dell laptop.
Some (rfkill) code was removed from platform/dell-laptop. On my machine a bug now occurs which is caused by brcmsmac in the view of Matthew.
So is this a bug, or do you have no killsitch handling, so far?
brcmsmac handled the rfkill switch properly so this would be a regression. I also have Dell laptops here with a physical rfkill switch. What rfkill switch do you have?
Anyway, I will test over here on my hardware as this regression has been flagged internally here as well. Would you be willing to test a fix on your system when I have one?
Gr. AvS
Quoted 3 lines · Arend van Spriel
brcmsmac handled the rfkill switch properly so this would be a regression. I also have Dell laptops here with a physical rfkill switch. What rfkill switch do you have?
I have no idea how to detect the type of the switch (looks like it's neither connected via usb nor pci). That's what rfkill tells me:
[sebastian@localhost ~]$ rfkill list
0: dell-wifi: Wireless LAN
Soft blocked: yes
Hard blocked: yes
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
It is a Vostro 3300 with a physical slide switch on the front being either black and enabled or red and disabled.
Quoted 4 lines
Anyway, I will test over here on my hardware as this regression has been flagged internally here as well. Would you be willing to test a fix on your system when I have one?
Would be a joy for me