Re: Why wireless is disable by radio killswitch?



On Fri, May 22, 2009 at 11:17 PM, Dan Williams <dcbw redhat com> wrote:
> On Fri, 2009-05-22 at 17:40 +0800, Bin Li wrote:
>> Hi,
>>
>>  I've use NM 0.7.0.r4359, and from the lshal I could found "killswitch".
>> $ lshal --version
>> lshal version 0.5.12
>>
>> udi = '/org/freedesktop/Hal/devices/dell_wlan_switch'
>>   info.capabilities = {'killswitch'} (string list)
>>   info.category = 'killswitch'  (string)
>>   info.interfaces = {'org.freedesktop.Hal.Device.KillSwitch'} (string list)
>>   info.parent = '/org/freedesktop/Hal/devices/platform_dcdbas'  (string)
>>   info.product = 'Dell WLAN Switch'  (string)
>>   info.subsystem = 'unknown'  (string)
>>   info.udi = '/org/freedesktop/Hal/devices/dell_wlan_switch'  (string)
>>   killswitch.access_method = 'dell'  (string)
>>   killswitch.type = 'wlan'  (string)
>>   org.freedesktop.Hal.Device.KillSwitch.method_argnames = {'power',
>> ''} (string list)
>>   org.freedesktop.Hal.Device.KillSwitch.method_execpaths =
>> {'hal-system-killswitch-set-power', 'hal-system-killswitch-get-power'}
>> (string list)
>>   org.freedesktop.Hal.Device.KillSwitch.method_names = {'SetPower',
>> 'GetPower'} (string list)
>>   org.freedesktop.Hal.Device.KillSwitch.method_signatures = {'b', ''}
>> (string list)
>>
>> But when I run "NetowrkManager --no-daemon" with root permission, it prompt:
>>
>> NetworkManager: <info>  eth1: driver is 'wl'.
>> NetworkManager: <info>  eth1: driver does not support SSID scans
>> (scan_capa 0x00).
>> NetworkManager: <info>  Found new 802.11 WiFi device 'eth1'.
>> NetworkManager: <info>  (eth1): exported as
>> /org/freedesktop/Hal/devices/net_00_22_5f_53_60_01
>> NetworkManager: <info>  Wireless now disabled by radio killswitch
>>
>> And I've check the switch is on, the wireless led is light.
>>
>> When I use the wireless-tools, the iwlist and iwconfig, the wireless
>> card could be configured successfully, and works fine.
>>
>> Any ideas?
>
> What have you got in /sys/class/rfkill?  What's the output of both:
>
> cat /sys/class/rfkill/*/type
> cat /sys/class/rfkill/*/state
The rfkill module not install at all, I don't know why, so I use
modprobe to install it.
And the /sys/class/rfkill is an empty directory.

> Next, we need to ask HAL what its killswitch state is:
>
> dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/dell_wlan_switch org.freedesktop.Hal.Device.KillSwitch.GetPower
>
> If that returns 'int32 0', then HAL believes your killswitch to be
> turned on, and your radio should be disabled.  That would be a HAL bug
> then.
Yes, 'int32 0' return whenever I disable or enable the radio switch,
so is it a HAL bug?

Thanks!
> Dan
>
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]