Commit a3162eed authored by Christian Lamparter's avatar Christian Lamparter Committed by John W. Linville

p54: p54_generate_band cleanup

Signed-off-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 192abece
...@@ -145,25 +145,26 @@ static int p54_generate_band(struct ieee80211_hw *dev, ...@@ -145,25 +145,26 @@ static int p54_generate_band(struct ieee80211_hw *dev,
for (i = 0, j = 0; (j < list->band_channel_num[band]) && for (i = 0, j = 0; (j < list->band_channel_num[band]) &&
(i < list->entries); i++) { (i < list->entries); i++) {
struct p54_channel_entry *chan = &list->channels[i];
if (list->channels[i].band != band) if (chan->band != band)
continue; continue;
if (list->channels[i].data != CHAN_HAS_ALL) { if (chan->data != CHAN_HAS_ALL) {
wiphy_err(dev->wiphy, wiphy_err(dev->wiphy, "%s%s%s is/are missing for "
"%s%s%s is/are missing for channel:%d [%d MHz].\n", "channel:%d [%d MHz].\n",
(list->channels[i].data & CHAN_HAS_CAL ? "" : (chan->data & CHAN_HAS_CAL ? "" :
" [iqauto calibration data]"), " [iqauto calibration data]"),
(list->channels[i].data & CHAN_HAS_LIMIT ? "" : (chan->data & CHAN_HAS_LIMIT ? "" :
" [output power limits]"), " [output power limits]"),
(list->channels[i].data & CHAN_HAS_CURVE ? "" : (chan->data & CHAN_HAS_CURVE ? "" :
" [curve data]"), " [curve data]"),
list->channels[i].index, list->channels[i].freq); chan->index, chan->freq);
continue; continue;
} }
tmp->channels[j].band = list->channels[i].band; tmp->channels[j].band = chan->band;
tmp->channels[j].center_freq = list->channels[i].freq; tmp->channels[j].center_freq = chan->freq;
j++; j++;
} }
......
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