]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
iwlwifi: initialize ieee80211_channel->hw_value
authorMohamed Abbas <mohamed.abbas@intel.com>
Fri, 1 Feb 2008 05:46:40 +0000 (21:46 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:19:33 +0000 (15:19 -0500)
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>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c

index 57a1d70f2abf92cfab8d1907c49154fc14b40821..41b45a2778bdbc04de42a1f224694fcdabd58078 100644 (file)
@@ -5395,6 +5395,7 @@ static int iwl3945_init_geos(struct iwl3945_priv *priv)
                geo_ch->center_freq = ieee80211chan2mhz(ch->channel);
                geo_ch->max_power = ch->max_power_avg;
                geo_ch->max_antenna_gain = 0xff;
+               geo_ch->hw_value = ch->channel;
 
                if (is_channel_valid(ch)) {
                        if (!(ch->flags & EEPROM_CHANNEL_IBSS))
index 6de969de4c84cb8fea46d68984bfd533debf098e..933e0d44f69f0092a3d3efbadae713af05458dd2 100644 (file)
@@ -5815,6 +5815,7 @@ static int iwl4965_init_geos(struct iwl4965_priv *priv)
                geo_ch->center_freq = ieee80211chan2mhz(ch->channel);
                geo_ch->max_power = ch->max_power_avg;
                geo_ch->max_antenna_gain = 0xff;
+               geo_ch->hw_value = ch->channel;
 
                if (is_channel_valid(ch)) {
                        if (!(ch->flags & EEPROM_CHANNEL_IBSS))