diff options
author | Mohamed Abbas <mohamed.abbas@intel.com> | 2008-02-01 00:46:40 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:33 -0500 |
commit | 7b72304d864ed281547341a49495a6eb3770681b (patch) | |
tree | 01a124ae2d10e153bc822ee63fb4d0149fcede0a /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | aac09fbf827b467995b00a1ea0213843a9e605b8 (diff) |
iwlwifi: initialize ieee80211_channel->hw_value
hw_value is being used uninitialized. fix it.
Signed-off-by: Mohamed Abbas <mohamed.abbas@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/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 6de969de4c8..933e0d44f69 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -5815,6 +5815,7 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) | |||
5815 | geo_ch->center_freq = ieee80211chan2mhz(ch->channel); | 5815 | geo_ch->center_freq = ieee80211chan2mhz(ch->channel); |
5816 | geo_ch->max_power = ch->max_power_avg; | 5816 | geo_ch->max_power = ch->max_power_avg; |
5817 | geo_ch->max_antenna_gain = 0xff; | 5817 | geo_ch->max_antenna_gain = 0xff; |
5818 | geo_ch->hw_value = ch->channel; | ||
5818 | 5819 | ||
5819 | if (is_channel_valid(ch)) { | 5820 | if (is_channel_valid(ch)) { |
5820 | if (!(ch->flags & EEPROM_CHANNEL_IBSS)) | 5821 | if (!(ch->flags & EEPROM_CHANNEL_IBSS)) |