diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2012-01-30 03:51:42 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-30 15:48:47 -0500 |
commit | feced2012e665468258a5c89b7f2a90b4e5695a4 (patch) | |
tree | 22330de0aaa2180bd16636190abc632e1beb7e94 | |
parent | 0ed7b93e307fd02188a33b80897069d3acc76485 (diff) |
ath9k: Print the correct channel mode
channelFlags doesn't contain the operating HT mode.
Use IS_CHAN_HT40 to determine if the current channel is
in HT40 mode.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 4a00806e2852..ec82e926badc 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -340,9 +340,7 @@ static int ath_reset_internal(struct ath_softc *sc, struct ath9k_channel *hchan, | |||
340 | fastcc = false; | 340 | fastcc = false; |
341 | 341 | ||
342 | ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n", | 342 | ath_dbg(common, CONFIG, "Reset to %u MHz, HT40: %d fastcc: %d\n", |
343 | hchan->channel, !!(hchan->channelFlags & (CHANNEL_HT40MINUS | | 343 | hchan->channel, IS_CHAN_HT40(hchan), fastcc); |
344 | CHANNEL_HT40PLUS)), | ||
345 | fastcc); | ||
346 | 344 | ||
347 | r = ath9k_hw_reset(ah, hchan, caldata, fastcc); | 345 | r = ath9k_hw_reset(ah, hchan, caldata, fastcc); |
348 | if (r) { | 346 | if (r) { |