Skip to content

Commit c29eaf3

Browse files
author
Inaky Perez-Gonzalez
committed
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>
1 parent 5b45bfe commit c29eaf3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/wimax/op-rfkill.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ int wimax_rfkill_add(struct wimax_dev *wimax_dev)
355355

356356
wimax_dev->rfkill = rfkill;
357357

358+
rfkill_init_sw_state(rfkill, 1);
358359
result = rfkill_register(wimax_dev->rfkill);
359360
if (result < 0)
360361
goto error_rfkill_register;

0 commit comments

Comments
 (0)