diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2008-03-28 19:21:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-01 17:13:18 -0400 |
commit | ad97edd2f524940d524c26ae273a4eb23067a7c0 (patch) | |
tree | 7d7af2310ec45dd70dfe17b1723fc66b9228d5cc /drivers/net/wireless/iwlwifi/iwl-core.c | |
parent | c8381fdcab98b74f670d879097bab35d97d88400 (diff) |
iwlwifi: hook iwlwifi with Linux rfkill
This patch hook IWL with Linux rfkill.
Signed-off-by: Mohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 342a269b8ab..49fb52f0735 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -35,6 +35,7 @@ struct iwl_priv; /* FIXME: remove */ | |||
35 | #include "iwl-debug.h" | 35 | #include "iwl-debug.h" |
36 | #include "iwl-eeprom.h" | 36 | #include "iwl-eeprom.h" |
37 | #include "iwl-core.h" | 37 | #include "iwl-core.h" |
38 | #include "iwl-rfkill.h" | ||
38 | 39 | ||
39 | #include "iwl-4965.h" /* FIXME: remove */ | 40 | #include "iwl-4965.h" /* FIXME: remove */ |
40 | 41 | ||
@@ -257,12 +258,15 @@ int iwlcore_low_level_notify(struct iwl_priv *priv, | |||
257 | { | 258 | { |
258 | switch (notify) { | 259 | switch (notify) { |
259 | case IWLCORE_INIT_EVT: | 260 | case IWLCORE_INIT_EVT: |
261 | iwl_rfkill_init(priv); | ||
260 | break; | 262 | break; |
261 | case IWLCORE_START_EVT: | 263 | case IWLCORE_START_EVT: |
262 | break; | 264 | break; |
263 | case IWLCORE_STOP_EVT: | 265 | case IWLCORE_STOP_EVT: |
264 | break; | 266 | break; |
265 | case IWLCORE_REMOVE_EVT: | 267 | case IWLCORE_REMOVE_EVT: |
268 | iwl_rfkill_unregister(priv); | ||
269 | iwl_rfkill_free(priv); | ||
266 | break; | 270 | break; |
267 | } | 271 | } |
268 | 272 | ||