Hi Leonardo,

> >> I need to change the behavior of Fn+F1 key command to turn off the
> >> wifi just like user clicking on the panel and turning it off. Now when
> >> i press Fn+F1 the wifi card is disable and the panel shows the wifi
> >> button disabled. Can dbus be used to turn off the card instead of
> >> disabling it? Which dbus interface should i use?
> >
> > what is your difference between a disabled WiFi and a switched off WiFi?
> 
> Disabled wifi is when the rfkill of the driver is called, the panel
> shows that a device is there, but you can't turn it on and off (the
> button is disabled.
> Switched off is when the wifi network is down, this happend when you
> click the button to turn off the wifi network on the panel.
> 
> Does it make sense?

it sort of makes sense, but in the end there is also no difference here.
So if we have a WiFi card that supports RFKILL, we will try to use
RFKILL to switch the device off. That way we ensure that all radio
activity is actually off. If no RFKILL is available, then the best we
can do is to bring the network interface down.

So from a ConnMan perspective both are treated the same. My expectation
is that all WiFi cards have a RFKILL switch. And that is true for all
cfg80211 enabled cards since they have at least a soft RFKILL switch.

The important question is what hardware you are talking about. If this
is a staging WiFi driver, then this whole situation becomes a bit more
fuzzier.

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to