diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-21 16:53:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:55 -0400 |
commit | 857485c0c46ceee5c658c1761bba4d9a5ddf433f (patch) | |
tree | df2028c6a3d99ad32491efba7b6ca69f7d45edcf /drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |
parent | 8622e7058a8764223ae2305d980a38d07f034717 (diff) |
iwlwifi: move host command sending functions to core module
1. Host command sending functions moved from iwl4965-base.c to iwl-hcmd.c
in iwlcore module
2. enqueue_hcmd function currently stays in iwl4965-base.c. It is invoked
through the new 'utils' field in priv's ops.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 02990aeabab5..7d7ce7489ab5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "../net/mac80211/ieee80211_rate.h" | 39 | #include "../net/mac80211/ieee80211_rate.h" |
40 | 40 | ||
41 | #include "iwl-4965.h" | 41 | #include "iwl-4965.h" |
42 | #include "iwl-core.h" | ||
42 | #include "iwl-helpers.h" | 43 | #include "iwl-helpers.h" |
43 | 44 | ||
44 | #define RS_NAME "iwl-4965-rs" | 45 | #define RS_NAME "iwl-4965-rs" |
@@ -230,7 +231,7 @@ static s32 expected_tpt_mimo40MHzSGI[IWL_RATE_COUNT] = { | |||
230 | }; | 231 | }; |
231 | 232 | ||
232 | static int iwl4965_lq_sync_callback(struct iwl_priv *priv, | 233 | static int iwl4965_lq_sync_callback(struct iwl_priv *priv, |
233 | struct iwl4965_cmd *cmd, struct sk_buff *skb) | 234 | struct iwl_cmd *cmd, struct sk_buff *skb) |
234 | { | 235 | { |
235 | /*We didn't cache the SKB; let the caller free it */ | 236 | /*We didn't cache the SKB; let the caller free it */ |
236 | return 1; | 237 | return 1; |
@@ -247,7 +248,7 @@ static int rs_send_lq_cmd(struct iwl_priv *priv, | |||
247 | #ifdef CONFIG_IWLWIFI_DEBUG | 248 | #ifdef CONFIG_IWLWIFI_DEBUG |
248 | int i; | 249 | int i; |
249 | #endif | 250 | #endif |
250 | struct iwl4965_host_cmd cmd = { | 251 | struct iwl_host_cmd cmd = { |
251 | .id = REPLY_TX_LINK_QUALITY_CMD, | 252 | .id = REPLY_TX_LINK_QUALITY_CMD, |
252 | .len = sizeof(struct iwl4965_link_quality_cmd), | 253 | .len = sizeof(struct iwl4965_link_quality_cmd), |
253 | .meta.flags = flags, | 254 | .meta.flags = flags, |
@@ -276,7 +277,7 @@ static int rs_send_lq_cmd(struct iwl_priv *priv, | |||
276 | 277 | ||
277 | if (iwl4965_is_associated(priv) && priv->assoc_station_added && | 278 | if (iwl4965_is_associated(priv) && priv->assoc_station_added && |
278 | priv->lq_mngr.lq_ready) | 279 | priv->lq_mngr.lq_ready) |
279 | return iwl4965_send_cmd(priv, &cmd); | 280 | return iwl_send_cmd(priv, &cmd); |
280 | 281 | ||
281 | return 0; | 282 | return 0; |
282 | } | 283 | } |