Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236964
b: refs/heads/master
c: 5a3a035
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka authored and John W. Linville committed Jan 31, 2011
1 parent b6d68bf commit 6d56688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0439f5367c8d8bb2ebaca8d7329f51f3148b2fb2
refs/heads/master: 5a3a0352f39c81dfa5c30a190ad04d115616c3e6
8 changes: 2 additions & 6 deletions trunk/drivers/net/wireless/iwlwifi/iwl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,16 +219,12 @@ int iwlcore_init_geos(struct iwl_priv *priv)
if (!is_channel_valid(ch))
continue;

if (is_channel_a_band(ch))
sband = &priv->bands[IEEE80211_BAND_5GHZ];
else
sband = &priv->bands[IEEE80211_BAND_2GHZ];
sband = &priv->bands[ch->band];

geo_ch = &sband->channels[sband->n_channels++];

geo_ch->center_freq =
ieee80211_channel_to_frequency(ch->channel,
sband->band);
ieee80211_channel_to_frequency(ch->channel, ch->band);
geo_ch->max_power = ch->max_power_avg;
geo_ch->max_antenna_gain = 0xff;
geo_ch->hw_value = ch->channel;
Expand Down

0 comments on commit 6d56688

Please sign in to comment.