Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102837
b: refs/heads/master
c: d2f18bf
h: refs/heads/master
i:
  102835: 004d42c
v: v3
  • Loading branch information
Emmanuel Grumbach authored and John W. Linville committed Jun 3, 2008
1 parent 403b38f commit 6588fdb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67249625089c21ec299b337a26448312b7eb91b3
refs/heads/master: d2f18bfd9bc6b51c8bb72b272ecca902a88387d4
45 changes: 27 additions & 18 deletions trunk/drivers/net/wireless/iwlwifi/iwl-5000.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,28 +428,37 @@ static int iwl5000_send_calib_results(struct iwl_priv *priv)
{
int ret = 0;

if (priv->calib_results.lo_res)
ret = iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD,
priv->calib_results.lo_res_len,
priv->calib_results.lo_res);
if (ret)
goto err;
struct iwl_host_cmd hcmd = {
.id = REPLY_PHY_CALIBRATION_CMD,
.meta.flags = CMD_SIZE_HUGE,
};

if (priv->calib_results.lo_res) {
hcmd.len = priv->calib_results.lo_res_len;
hcmd.data = priv->calib_results.lo_res;
ret = iwl_send_cmd_sync(priv, &hcmd);

if (priv->calib_results.tx_iq_res)
ret = iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD,
priv->calib_results.tx_iq_res_len,
priv->calib_results.tx_iq_res);
if (ret)
goto err;
}

if (ret)
goto err;
if (priv->calib_results.tx_iq_res) {
hcmd.len = priv->calib_results.tx_iq_res_len;
hcmd.data = priv->calib_results.tx_iq_res;
ret = iwl_send_cmd_sync(priv, &hcmd);

if (priv->calib_results.tx_iq_perd_res)
ret = iwl_send_cmd_pdu(priv, REPLY_PHY_CALIBRATION_CMD,
priv->calib_results.tx_iq_perd_res_len,
priv->calib_results.tx_iq_perd_res);
if (ret)
goto err;
if (ret)
goto err;
}

if (priv->calib_results.tx_iq_perd_res) {
hcmd.len = priv->calib_results.tx_iq_perd_res_len;
hcmd.data = priv->calib_results.tx_iq_perd_res;
ret = iwl_send_cmd_sync(priv, &hcmd);

if (ret)
goto err;
}

return 0;
err:
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/iwlwifi/iwl-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct iwl_cmd_meta {

} __attribute__ ((packed));

#define IWL_CMD_MAX_PAYLOAD 640
#define IWL_CMD_MAX_PAYLOAD 320

/**
* struct iwl_cmd
Expand Down

0 comments on commit 6588fdb

Please sign in to comment.