Commit 7b72304d authored by Mohamed Abbas's avatar Mohamed Abbas Committed by John W. Linville

iwlwifi: initialize ieee80211_channel->hw_value

hw_value is being used uninitialized. fix it.
Signed-off-by: default avatarMohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aac09fbf
...@@ -5395,6 +5395,7 @@ static int iwl3945_init_geos(struct iwl3945_priv *priv) ...@@ -5395,6 +5395,7 @@ static int iwl3945_init_geos(struct iwl3945_priv *priv)
geo_ch->center_freq = ieee80211chan2mhz(ch->channel); geo_ch->center_freq = ieee80211chan2mhz(ch->channel);
geo_ch->max_power = ch->max_power_avg; geo_ch->max_power = ch->max_power_avg;
geo_ch->max_antenna_gain = 0xff; geo_ch->max_antenna_gain = 0xff;
geo_ch->hw_value = ch->channel;
if (is_channel_valid(ch)) { if (is_channel_valid(ch)) {
if (!(ch->flags & EEPROM_CHANNEL_IBSS)) if (!(ch->flags & EEPROM_CHANNEL_IBSS))
......
...@@ -5815,6 +5815,7 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv) ...@@ -5815,6 +5815,7 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv)
geo_ch->center_freq = ieee80211chan2mhz(ch->channel); geo_ch->center_freq = ieee80211chan2mhz(ch->channel);
geo_ch->max_power = ch->max_power_avg; geo_ch->max_power = ch->max_power_avg;
geo_ch->max_antenna_gain = 0xff; geo_ch->max_antenna_gain = 0xff;
geo_ch->hw_value = ch->channel;
if (is_channel_valid(ch)) { if (is_channel_valid(ch)) {
if (!(ch->flags & EEPROM_CHANNEL_IBSS)) if (!(ch->flags & EEPROM_CHANNEL_IBSS))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment