diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-calib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-calib.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-calib.c b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c index 39d1e47a0978..c9255def1080 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-calib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-calib.c | |||
@@ -87,14 +87,14 @@ int iwl_send_calib_results(struct iwl_priv *priv) | |||
87 | 87 | ||
88 | struct iwl_host_cmd hcmd = { | 88 | struct iwl_host_cmd hcmd = { |
89 | .id = REPLY_PHY_CALIBRATION_CMD, | 89 | .id = REPLY_PHY_CALIBRATION_CMD, |
90 | .flags = CMD_SIZE_HUGE, | ||
91 | }; | 90 | }; |
92 | 91 | ||
93 | for (i = 0; i < IWL_CALIB_MAX; i++) { | 92 | for (i = 0; i < IWL_CALIB_MAX; i++) { |
94 | if ((BIT(i) & priv->hw_params.calib_init_cfg) && | 93 | if ((BIT(i) & priv->hw_params.calib_init_cfg) && |
95 | priv->calib_results[i].buf) { | 94 | priv->calib_results[i].buf) { |
96 | hcmd.len = priv->calib_results[i].buf_len; | 95 | hcmd.len[0] = priv->calib_results[i].buf_len; |
97 | hcmd.data = priv->calib_results[i].buf; | 96 | hcmd.data[0] = priv->calib_results[i].buf; |
97 | hcmd.dataflags[0] = IWL_HCMD_DFL_NOCOPY; | ||
98 | ret = iwl_send_cmd_sync(priv, &hcmd); | 98 | ret = iwl_send_cmd_sync(priv, &hcmd); |
99 | if (ret) { | 99 | if (ret) { |
100 | IWL_ERR(priv, "Error %d iteration %d\n", | 100 | IWL_ERR(priv, "Error %d iteration %d\n", |
@@ -456,9 +456,9 @@ static int iwl_sensitivity_write(struct iwl_priv *priv) | |||
456 | struct iwl_sensitivity_data *data = NULL; | 456 | struct iwl_sensitivity_data *data = NULL; |
457 | struct iwl_host_cmd cmd_out = { | 457 | struct iwl_host_cmd cmd_out = { |
458 | .id = SENSITIVITY_CMD, | 458 | .id = SENSITIVITY_CMD, |
459 | .len = sizeof(struct iwl_sensitivity_cmd), | 459 | .len = { sizeof(struct iwl_sensitivity_cmd), }, |
460 | .flags = CMD_ASYNC, | 460 | .flags = CMD_ASYNC, |
461 | .data = &cmd, | 461 | .data = { &cmd, }, |
462 | }; | 462 | }; |
463 | 463 | ||
464 | data = &(priv->sensitivity_data); | 464 | data = &(priv->sensitivity_data); |
@@ -491,9 +491,9 @@ static int iwl_enhance_sensitivity_write(struct iwl_priv *priv) | |||
491 | struct iwl_sensitivity_data *data = NULL; | 491 | struct iwl_sensitivity_data *data = NULL; |
492 | struct iwl_host_cmd cmd_out = { | 492 | struct iwl_host_cmd cmd_out = { |
493 | .id = SENSITIVITY_CMD, | 493 | .id = SENSITIVITY_CMD, |
494 | .len = sizeof(struct iwl_enhance_sensitivity_cmd), | 494 | .len = { sizeof(struct iwl_enhance_sensitivity_cmd), }, |
495 | .flags = CMD_ASYNC, | 495 | .flags = CMD_ASYNC, |
496 | .data = &cmd, | 496 | .data = { &cmd, }, |
497 | }; | 497 | }; |
498 | 498 | ||
499 | data = &(priv->sensitivity_data); | 499 | data = &(priv->sensitivity_data); |