Skip to content

Commit

Permalink
wimax: indicate initial SW rfkill state is "blocked"
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Inaky Perez-Gonzalez committed Oct 19, 2009
1 parent 5b45bfe commit c29eaf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/wimax/op-rfkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c29eaf3

Please sign in to comment.