From: Emmanuel Grumbach Date: Wed, 28 Mar 2012 08:33:09 +0000 (+0200) Subject: iwlwifi: enable RF kill interrupt in start_hw X-Git-Tag: v3.5-rc1~109^2~267^2^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=226c02ca7fd182b24599d205820e159b0e7bc405;p=platform%2Fkernel%2Flinux-3.10.git iwlwifi: enable RF kill interrupt in start_hw The op_mode wants to know about changes in HW RF kill state. Signed-off-by: Emmanuel Grumbach Signed-off-by: Wey-Yi Guy --- diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c index 78aa320..589037d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c @@ -1420,6 +1420,9 @@ static int iwl_trans_pcie_start_hw(struct iwl_trans *trans) iwl_apm_init(trans); + /* From now on, the op_mode will be kept updated about RF kill state */ + iwl_enable_rfkill_int(trans); + hw_rfkill = iwl_is_rfkill_set(trans); iwl_op_mode_hw_rf_kill(trans->op_mode, hw_rfkill);