This series implements an airplane-mode indicator LED trigger, which can be used by platform drivers. By default the trigger fires on RFKILL_OP_CHANGE_ALL, but this policy can be overwritten by userspace using the new operations _AIRPLANE_MODE_INDICATOR_ACQUIRE and _AIRPLANE_MODE_INDICATOR_CHANGE. When the airplane-mode indicator state changes, userspace gets notifications through the RFKill control misc device (/dev/rfkill). I also have patches to the rfkill userspace tool that makes use of this interface, so it can serve as API usage example and to do quick checks on a running system, which I'll send in a separate series. After some hiatus I found the time to get back to this, and this time I've used Jouni's hwsim suite to test the patches on top of mac80211-next/master. Lines containing rfkill are pasted bellow: START wext_rfkill 14/1880 PASS wext_rfkill 4.100002 2016-04-29 12:30:23.792682 START rfkill_wpas 571/1880 PASS rfkill_wpas 1.245307 2016-04-29 12:48:51.804344 START rfkill_autogo 572/1880 PASS rfkill_autogo 1.154174 2016-04-29 12:48:52.959605 START rfkill_p2p_discovery 573/1880 PASS rfkill_p2p_discovery 0.534903 2016-04-29 12:48:53.495547 START rfkill_open 574/1880 PASS rfkill_open 0.34073 2016-04-29 12:48:53.836963 START rfkill_p2p_discovery_p2p_dev 575/1880 PASS rfkill_p2p_discovery_p2p_dev 1.159446 2016-04-29 12:48:54.997555 START rfkill_hostapd 576/1880 PASS rfkill_hostapd 3.686868 2016-04-29 12:48:58.685162 START rfkill_wpa2_psk 577/1880 PASS rfkill_wpa2_psk 0.330014 2016-04-29 12:48:59.016711 João Paulo Rechi Vita (3): rfkill: Create "rfkill-airplane-mode" LED trigger rfkill: Userspace control for airplane mode rfkill: Notify userspace of airplane-mode state changes Documentation/rfkill.txt | 15 +++++++ include/uapi/linux/rfkill.h | 6 +++ net/rfkill/core.c | 100 +++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 119 insertions(+), 2 deletions(-) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html