diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-11-25 16:36:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-05 09:32:11 -0500 |
commit | 0d950d84d9d16f7d4edf380a238c5b534ff00d11 (patch) | |
tree | 3127b67a67b82c131cd0ab63b6ab8dc245e4ceba /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 8e268e47b8ca5bddd189320884c3cc7d9ae489f4 (diff) |
iwlwifi: properly initialize calibration command header
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index ab0b40531989..f90c9e92ef71 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -523,7 +523,7 @@ static void iwl4965_chain_noise_reset(struct iwl_priv *priv) | |||
523 | struct iwl_calib_diff_gain_cmd cmd; | 523 | struct iwl_calib_diff_gain_cmd cmd; |
524 | 524 | ||
525 | memset(&cmd, 0, sizeof(cmd)); | 525 | memset(&cmd, 0, sizeof(cmd)); |
526 | cmd.opCode = IWL_PHY_CALIBRATE_DIFF_GAIN_CMD; | 526 | cmd.hdr.op_code = IWL_PHY_CALIBRATE_DIFF_GAIN_CMD; |
527 | cmd.diff_gain_a = 0; | 527 | cmd.diff_gain_a = 0; |
528 | cmd.diff_gain_b = 0; | 528 | cmd.diff_gain_b = 0; |
529 | cmd.diff_gain_c = 0; | 529 | cmd.diff_gain_c = 0; |
@@ -574,7 +574,7 @@ static void iwl4965_gain_computation(struct iwl_priv *priv, | |||
574 | data->radio_write = 1; | 574 | data->radio_write = 1; |
575 | 575 | ||
576 | memset(&cmd, 0, sizeof(cmd)); | 576 | memset(&cmd, 0, sizeof(cmd)); |
577 | cmd.opCode = IWL_PHY_CALIBRATE_DIFF_GAIN_CMD; | 577 | cmd.hdr.op_code = IWL_PHY_CALIBRATE_DIFF_GAIN_CMD; |
578 | cmd.diff_gain_a = data->delta_gain_code[0]; | 578 | cmd.diff_gain_a = data->delta_gain_code[0]; |
579 | cmd.diff_gain_b = data->delta_gain_code[1]; | 579 | cmd.diff_gain_b = data->delta_gain_code[1]; |
580 | cmd.diff_gain_c = data->delta_gain_code[2]; | 580 | cmd.diff_gain_c = data->delta_gain_code[2]; |