Skip to contentSkip to conversation

Question about rfkill

DISCUSSION Larry Finger 2 participants 4 messages Jun 20, 2009

lore
Share & tools
lore
#0 lore raw

Johannes,

What is the reason that rfkill_get_global_sw_state() is not exported? A call to this routine seems to be the ideal replacement for the deprecated radio_enabled.

Larry

#1 lore raw

Larry,

Quoted 3 lines

What is the reason that rfkill_get_global_sw_state() is not exported? A call to this routine seems to be the ideal replacement for the deprecated radio_enabled.

No need, radio_enabled is intended to be removed, because if you rfkill now cfg80211 will force the interfaces down. Some time later way may need to add a way to disable just the radio again, but that will be different and for different purposes.

johannes

#2 lore raw

Johannes,

Quoted 4 lines

No need, radio_enabled is intended to be removed, because if you rfkill now cfg80211 will force the interfaces down. Some time later way may need to add a way to disable just the radio again, but that will be different and for different purposes.

In b43/b43legacy, the driver can determine when the hw has required an rfkill, but what is the "approved" method for determining if userspace has killed it?

Larry

#3 lore raw
Quoted 10 lines · Larry Finger

Johannes,

Quoted 4 lines

No need, radio_enabled is intended to be removed, because if you rfkill now cfg80211 will force the interfaces down. Some time later way may need to add a way to disable just the radio again, but that will be different and for different purposes.

In b43/b43legacy, the driver can determine when the hw has required an rfkill, but what is the "approved" method for determining if userspace has killed it?

That isn't necessary. In that case, cfg80211 notices that it was killed, and (via mac80211) ends up calling the ->stop() callback.

johannes