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-commands.h | |
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-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 1fe83d45443a..77615045de69 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -2896,11 +2896,6 @@ enum { | |||
2896 | }; | 2896 | }; |
2897 | 2897 | ||
2898 | 2898 | ||
2899 | struct iwl_cal_xtal_freq { | ||
2900 | u8 cap_pin1; | ||
2901 | u8 cap_pin2; | ||
2902 | } __attribute__ ((packed)); | ||
2903 | |||
2904 | #define IWL_CALIB_INIT_CFG_ALL __constant_cpu_to_le32(0xffffffff) | 2899 | #define IWL_CALIB_INIT_CFG_ALL __constant_cpu_to_le32(0xffffffff) |
2905 | 2900 | ||
2906 | struct iwl_calib_cfg_elmnt_s { | 2901 | struct iwl_calib_cfg_elmnt_s { |
@@ -2935,31 +2930,34 @@ struct iwl_calib_cmd { | |||
2935 | u8 data[0]; | 2930 | u8 data[0]; |
2936 | } __attribute__ ((packed)); | 2931 | } __attribute__ ((packed)); |
2937 | 2932 | ||
2938 | /* "Differential Gain" opcode used in REPLY_PHY_CALIBRATION_CMD. */ | 2933 | /* IWL_PHY_CALIBRATE_DIFF_GAIN_CMD (7) */ |
2939 | |||
2940 | struct iwl_calib_diff_gain_cmd { | 2934 | struct iwl_calib_diff_gain_cmd { |
2941 | u8 opCode; /* IWL_PHY_CALIBRATE_DIFF_GAIN_CMD (7) */ | 2935 | struct iwl_calib_hdr hdr; |
2942 | u8 flags; /* not used */ | ||
2943 | __le16 reserved; | ||
2944 | s8 diff_gain_a; /* see above */ | 2936 | s8 diff_gain_a; /* see above */ |
2945 | s8 diff_gain_b; | 2937 | s8 diff_gain_b; |
2946 | s8 diff_gain_c; | 2938 | s8 diff_gain_c; |
2947 | u8 reserved1; | 2939 | u8 reserved1; |
2948 | } __attribute__ ((packed)); | 2940 | } __attribute__ ((packed)); |
2949 | 2941 | ||
2950 | struct iwl_calib_chain_noise_reset_cmd { | 2942 | struct iwl_calib_xtal_freq_cmd { |
2951 | u8 op_code; /* IWL_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */ | 2943 | struct iwl_calib_hdr hdr; |
2952 | u8 flags; /* not used */ | 2944 | u8 cap_pin1; |
2953 | __le16 reserved; | 2945 | u8 cap_pin2; |
2946 | u8 pad[2]; | ||
2954 | } __attribute__ ((packed)); | 2947 | } __attribute__ ((packed)); |
2955 | 2948 | ||
2949 | /* IWL_PHY_CALIBRATE_CHAIN_NOISE_RESET_CMD */ | ||
2950 | struct iwl_calib_chain_noise_reset_cmd { | ||
2951 | struct iwl_calib_hdr hdr; | ||
2952 | u8 data[0]; | ||
2953 | }; | ||
2954 | |||
2955 | /* IWL_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD */ | ||
2956 | struct iwl_calib_chain_noise_gain_cmd { | 2956 | struct iwl_calib_chain_noise_gain_cmd { |
2957 | u8 op_code; /* IWL_PHY_CALIBRATE_CHAIN_NOISE_GAIN_CMD */ | 2957 | struct iwl_calib_hdr hdr; |
2958 | u8 flags; /* not used */ | ||
2959 | __le16 reserved; | ||
2960 | u8 delta_gain_1; | 2958 | u8 delta_gain_1; |
2961 | u8 delta_gain_2; | 2959 | u8 delta_gain_2; |
2962 | __le16 reserved1; | 2960 | u8 pad[2]; |
2963 | } __attribute__ ((packed)); | 2961 | } __attribute__ ((packed)); |
2964 | 2962 | ||
2965 | /****************************************************************************** | 2963 | /****************************************************************************** |