From 30829b0ad1b1a1b8b4303ce297cee60ca7b265bc Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Wed, 26 Aug 2009 15:06:53 -0700 Subject: [PATCH] Add notes about rfkill and uping interfaces on rfkill patch Signed-off-by: Luis R. Rodriguez --- compat/patches/03-rfkill.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/compat/patches/03-rfkill.patch b/compat/patches/03-rfkill.patch index 61eb7628e221..1921b79ab408 100644 --- a/compat/patches/03-rfkill.patch +++ b/compat/patches/03-rfkill.patch @@ -8,6 +8,26 @@ are the ones we could not do through compat-2.6.31.h Do older kernels have /dev/rfkill ? I not then we can just keep /dev/rfkill and not /dev/rfkill_backport. +Note that 2.6.31 added netdevice notifier upon interface +dev_open() which on cfg80211 will check if checks to see +if rfkill is enabled (or if the mode of operation is not +supported) on the cfg80211_netdev_notifier_call() and if +so deny bringing the interface up. This was added via +commit: + +3b8bcfd5d31ea0fec58681d035544ace707d2536 + +Since older kernels will not have the notifier call +on dev_open() if we *really want* to port this we could have +mac80211's subif_open() call : + + ret = call_netdevice_notifiers(NETDEV_PRE_UP, dev); + ret = notifier_to_errno(ret); + if (ret) + return ret; + +This would do the policing from within mac80211. + --- a/net/rfkill/Makefile +++ b/net/rfkill/Makefile @@ -2,6 +2,6 @@ -- 2.30.2