From: Inaky Perez-Gonzalez Date: Fri, 28 Aug 2009 00:54:53 +0000 (-0700) Subject: wimax: indicate initial SW rfkill state is "blocked" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c29eaf3faef7547ba72355bac44e9ca6ffdaee39;p=openwrt%2Fstaging%2Fblogic.git wimax: indicate initial SW rfkill state is "blocked" The WiMAX stack assumes that all WiMAX devices are SW OFF when they are initialized. The recent changes in the RFKILL stack thus cause an initial call after rfkill_register(), because by default, rfkill considers devices to be SW ON upon registration. So call rfkill_init_sw_state() to set it to SW OFF so rfkill_register() doesn't do that unnecessary step. Signed-off-by: Inaky Perez-Gonzalez --- diff --git a/net/wimax/op-rfkill.c b/net/wimax/op-rfkill.c index 70ef4df863b9..40e1210cdbd8 100644 --- a/net/wimax/op-rfkill.c +++ b/net/wimax/op-rfkill.c @@ -355,6 +355,7 @@ int wimax_rfkill_add(struct wimax_dev *wimax_dev) wimax_dev->rfkill = rfkill; + rfkill_init_sw_state(rfkill, 1); result = rfkill_register(wimax_dev->rfkill); if (result < 0) goto error_rfkill_register;