diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-03-06 16:30:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-07 13:51:48 -0500 |
commit | e10a0533a9172471b52bd9512838d766420a3baf (patch) | |
tree | 872217005f1eb2e223fc1fc5b6799785e5a90691 /drivers/net/wireless/iwlwifi/iwl-ucode.c | |
parent | 965974a631756ab2729469b9ecadfe61ee44dfc5 (diff) |
iwlwifi: add wrappers for command sending
Add wrappers to send commands from the DVM
op-mode (which essentially consists of the
current driver). This will allow us to move
specific sanity checks there.
Also, this removes iwl_trans_send_cmd_pdu()
since that can now be taken care of in the
DVM-specific wrapper.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-ucode.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-ucode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-ucode.c b/drivers/net/wireless/iwlwifi/iwl-ucode.c index 3747edb7c292..1cbe8e9926f1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-ucode.c | |||
@@ -179,7 +179,7 @@ static int iwl_send_calib_cfg(struct iwl_priv *priv) | |||
179 | calib_cfg_cmd.ucd_calib_cfg.flags = | 179 | calib_cfg_cmd.ucd_calib_cfg.flags = |
180 | IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK; | 180 | IWL_CALIB_CFG_FLAG_SEND_COMPLETE_NTFY_MSK; |
181 | 181 | ||
182 | return iwl_trans_send_cmd(trans(priv), &cmd); | 182 | return iwl_dvm_send_cmd(priv, &cmd); |
183 | } | 183 | } |
184 | 184 | ||
185 | int iwlagn_rx_calib_result(struct iwl_priv *priv, | 185 | int iwlagn_rx_calib_result(struct iwl_priv *priv, |
@@ -260,7 +260,7 @@ static int iwl_send_wimax_coex(struct iwl_priv *priv) | |||
260 | /* coexistence is disabled */ | 260 | /* coexistence is disabled */ |
261 | memset(&coex_cmd, 0, sizeof(coex_cmd)); | 261 | memset(&coex_cmd, 0, sizeof(coex_cmd)); |
262 | } | 262 | } |
263 | return iwl_trans_send_cmd_pdu(trans(priv), | 263 | return iwl_dvm_send_cmd_pdu(priv, |
264 | COEX_PRIORITY_TABLE_CMD, CMD_SYNC, | 264 | COEX_PRIORITY_TABLE_CMD, CMD_SYNC, |
265 | sizeof(coex_cmd), &coex_cmd); | 265 | sizeof(coex_cmd), &coex_cmd); |
266 | } | 266 | } |
@@ -293,7 +293,7 @@ void iwl_send_prio_tbl(struct iwl_priv *priv) | |||
293 | 293 | ||
294 | memcpy(prio_tbl_cmd.prio_tbl, iwl_bt_prio_tbl, | 294 | memcpy(prio_tbl_cmd.prio_tbl, iwl_bt_prio_tbl, |
295 | sizeof(iwl_bt_prio_tbl)); | 295 | sizeof(iwl_bt_prio_tbl)); |
296 | if (iwl_trans_send_cmd_pdu(trans(priv), | 296 | if (iwl_dvm_send_cmd_pdu(priv, |
297 | REPLY_BT_COEX_PRIO_TABLE, CMD_SYNC, | 297 | REPLY_BT_COEX_PRIO_TABLE, CMD_SYNC, |
298 | sizeof(prio_tbl_cmd), &prio_tbl_cmd)) | 298 | sizeof(prio_tbl_cmd), &prio_tbl_cmd)) |
299 | IWL_ERR(priv, "failed to send BT prio tbl command\n"); | 299 | IWL_ERR(priv, "failed to send BT prio tbl command\n"); |
@@ -306,7 +306,7 @@ int iwl_send_bt_env(struct iwl_priv *priv, u8 action, u8 type) | |||
306 | 306 | ||
307 | env_cmd.action = action; | 307 | env_cmd.action = action; |
308 | env_cmd.type = type; | 308 | env_cmd.type = type; |
309 | ret = iwl_trans_send_cmd_pdu(trans(priv), | 309 | ret = iwl_dvm_send_cmd_pdu(priv, |
310 | REPLY_BT_COEX_PROT_ENV, CMD_SYNC, | 310 | REPLY_BT_COEX_PROT_ENV, CMD_SYNC, |
311 | sizeof(env_cmd), &env_cmd); | 311 | sizeof(env_cmd), &env_cmd); |
312 | if (ret) | 312 | if (ret) |