mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 20:48:49 +08:00
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 <inaky@linux.intel.com>
This commit is contained in:
parent
5b45bfe501
commit
c29eaf3fae
@ -355,6 +355,7 @@ int wimax_rfkill_add(struct wimax_dev *wimax_dev)
|
|||||||
|
|
||||||
wimax_dev->rfkill = rfkill;
|
wimax_dev->rfkill = rfkill;
|
||||||
|
|
||||||
|
rfkill_init_sw_state(rfkill, 1);
|
||||||
result = rfkill_register(wimax_dev->rfkill);
|
result = rfkill_register(wimax_dev->rfkill);
|
||||||
if (result < 0)
|
if (result < 0)
|
||||||
goto error_rfkill_register;
|
goto error_rfkill_register;
|
||||||
|
Loading…
Reference in New Issue
Block a user