aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c5
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 4a40109d4aa0..9fa803ad9cf7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -4905,6 +4905,10 @@ void iwl4965_hw_cancel_deferred_work(struct iwl_priv *priv)
4905 cancel_delayed_work(&priv->init_alive_start); 4905 cancel_delayed_work(&priv->init_alive_start);
4906} 4906}
4907 4907
4908
4909static struct iwl_hcmd_ops iwl4965_hcmd = {
4910};
4911
4908static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = { 4912static struct iwl_hcmd_utils_ops iwl4965_hcmd_utils = {
4909 .enqueue_hcmd = iwl4965_enqueue_hcmd, 4913 .enqueue_hcmd = iwl4965_enqueue_hcmd,
4910}; 4914};
@@ -4927,6 +4931,7 @@ static struct iwl_lib_ops iwl4965_lib = {
4927 4931
4928static struct iwl_ops iwl4965_ops = { 4932static struct iwl_ops iwl4965_ops = {
4929 .lib = &iwl4965_lib, 4933 .lib = &iwl4965_lib,
4934 .hcmd = &iwl4965_hcmd,
4930 .utils = &iwl4965_hcmd_utils, 4935 .utils = &iwl4965_hcmd_utils,
4931}; 4936};
4932 4937
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index 0ff0978d6801..64bab66d05d8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -82,6 +82,8 @@ struct iwl_cmd;
82#define IWL_SKU_A 0x2 82#define IWL_SKU_A 0x2
83#define IWL_SKU_N 0x8 83#define IWL_SKU_N 0x8
84 84
85struct iwl_hcmd_ops {
86};
85struct iwl_hcmd_utils_ops { 87struct iwl_hcmd_utils_ops {
86 int (*enqueue_hcmd)(struct iwl_priv *priv, struct iwl_host_cmd *cmd); 88 int (*enqueue_hcmd)(struct iwl_priv *priv, struct iwl_host_cmd *cmd);
87}; 89};
@@ -111,6 +113,7 @@ struct iwl_lib_ops {
111 113
112struct iwl_ops { 114struct iwl_ops {
113 const struct iwl_lib_ops *lib; 115 const struct iwl_lib_ops *lib;
116 const struct iwl_hcmd_ops *hcmd;
114 const struct iwl_hcmd_utils_ops *utils; 117 const struct iwl_hcmd_utils_ops *utils;
115}; 118};
116 119