Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315272
b: refs/heads/master
c: 32c336a
h: refs/heads/master
v: v3
  • Loading branch information
Arend van Spriel authored and John W. Linville committed Jul 9, 2012
1 parent 71ce2e3 commit de38c12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 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: 2b943a3315f4c01e84b7913e9e97b148da9da9d3
refs/heads/master: 32c336a5dfd16b4645c8a0dbc534efd02f079e02
17 changes: 7 additions & 10 deletions trunk/drivers/net/wireless/brcm80211/brcmsmac/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,20 +763,17 @@ void brcms_c_regd_init(struct brcms_c_info *wlc)
int band_idx, i;

/* Disable any channels not supported by the phy */
for (band_idx = 0; band_idx < IEEE80211_NUM_BANDS; band_idx++) {
if (band_idx == IEEE80211_BAND_2GHZ)
band = wlc->bandstate[BAND_2G_INDEX];
else
band = wlc->bandstate[BAND_5G_INDEX];

/* skip if band not initialized */
if (band->pi == NULL)
continue;
for (band_idx = 0; band_idx < wlc->pub->_nbands; band_idx++) {
band = wlc->bandstate[band_idx];

wlc_phy_chanspec_band_validch(band->pi, band->bandtype,
&sup_chan);

sband = wiphy->bands[band_idx];
if (band_idx == BAND_2G_INDEX)
sband = wiphy->bands[IEEE80211_BAND_2GHZ];
else
sband = wiphy->bands[IEEE80211_BAND_5GHZ];

for (i = 0; i < sband->n_channels; i++) {
ch = &sband->channels[i];
if (!isset(sup_chan.vec, ch->hw_value))
Expand Down

0 comments on commit de38c12

Please sign in to comment.