diff options
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index c65b27bd9f5f..12c5b9a44904 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -218,6 +218,7 @@ static int ath_setup_channels(struct ath_softc *sc) | |||
218 | chan_2ghz[a].band = IEEE80211_BAND_2GHZ; | 218 | chan_2ghz[a].band = IEEE80211_BAND_2GHZ; |
219 | chan_2ghz[a].center_freq = c->channel; | 219 | chan_2ghz[a].center_freq = c->channel; |
220 | chan_2ghz[a].max_power = c->maxTxPower; | 220 | chan_2ghz[a].max_power = c->maxTxPower; |
221 | c->chan = &chan_2ghz[a]; | ||
221 | 222 | ||
222 | if (c->privFlags & CHANNEL_DISALLOW_ADHOC) | 223 | if (c->privFlags & CHANNEL_DISALLOW_ADHOC) |
223 | chan_2ghz[a].flags |= IEEE80211_CHAN_NO_IBSS; | 224 | chan_2ghz[a].flags |= IEEE80211_CHAN_NO_IBSS; |
@@ -233,6 +234,7 @@ static int ath_setup_channels(struct ath_softc *sc) | |||
233 | chan_5ghz[b].band = IEEE80211_BAND_5GHZ; | 234 | chan_5ghz[b].band = IEEE80211_BAND_5GHZ; |
234 | chan_5ghz[b].center_freq = c->channel; | 235 | chan_5ghz[b].center_freq = c->channel; |
235 | chan_5ghz[b].max_power = c->maxTxPower; | 236 | chan_5ghz[b].max_power = c->maxTxPower; |
237 | c->chan = &chan_5ghz[a]; | ||
236 | 238 | ||
237 | if (c->privFlags & CHANNEL_DISALLOW_ADHOC) | 239 | if (c->privFlags & CHANNEL_DISALLOW_ADHOC) |
238 | chan_5ghz[b].flags |= IEEE80211_CHAN_NO_IBSS; | 240 | chan_5ghz[b].flags |= IEEE80211_CHAN_NO_IBSS; |