aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-12-23 18:58:49 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:34 -0500
commit0de57d991b82eb64b7a0f4cf406251713ee633cf (patch)
treedf2006f931c844c9ecaef29a1dc218f42fb651dd /drivers
parent4febf7b8f4f2c7052cffbccba9e5ddf041b41330 (diff)
ath9k: remove ath9k_hw_check_chan()
The only check we care about in ath9k_hw_check_chan() is the internal regulatory check so use that. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/ath9k/hw.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c
index 08b9a0d421b8..1d44aa8e5110 100644
--- a/drivers/net/wireless/ath9k/hw.c
+++ b/drivers/net/wireless/ath9k/hw.c
@@ -1666,30 +1666,6 @@ static bool ath9k_hw_chip_reset(struct ath_hal *ah,
1666 return true; 1666 return true;
1667} 1667}
1668 1668
1669static struct ath9k_channel *ath9k_hw_check_chan(struct ath_hal *ah,
1670 struct ath9k_channel *chan)
1671{
1672 if (!(IS_CHAN_2GHZ(chan) ^ IS_CHAN_5GHZ(chan))) {
1673 DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL,
1674 "invalid channel %u/0x%x; not marked as "
1675 "2GHz or 5GHz\n", chan->channel, chan->channelFlags);
1676 return NULL;
1677 }
1678
1679 if (!IS_CHAN_OFDM(chan) &&
1680 !IS_CHAN_B(chan) &&
1681 !IS_CHAN_HT20(chan) &&
1682 !IS_CHAN_HT40(chan)) {
1683 DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL,
1684 "invalid channel %u/0x%x; not marked as "
1685 "OFDM or CCK or HT20 or HT40PLUS or HT40MINUS\n",
1686 chan->channel, chan->channelFlags);
1687 return NULL;
1688 }
1689
1690 return ath9k_regd_check_channel(ah, chan);
1691}
1692
1693static bool ath9k_hw_channel_change(struct ath_hal *ah, 1669static bool ath9k_hw_channel_change(struct ath_hal *ah,
1694 struct ath9k_channel *chan, 1670 struct ath9k_channel *chan,
1695 enum ath9k_ht_macmode macmode) 1671 enum ath9k_ht_macmode macmode)
@@ -2234,7 +2210,7 @@ int ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan,
2234 ahp->ah_rxchainmask &= 0x3; 2210 ahp->ah_rxchainmask &= 0x3;
2235 } 2211 }
2236 2212
2237 if (ath9k_hw_check_chan(ah, chan) == NULL) { 2213 if (ath9k_regd_check_channel(ah, chan) == NULL) {
2238 DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL, 2214 DPRINTF(ah->ah_sc, ATH_DBG_CHANNEL,
2239 "invalid channel %u/0x%x; no mapping\n", 2215 "invalid channel %u/0x%x; no mapping\n",
2240 chan->channel, chan->channelFlags); 2216 chan->channel, chan->channelFlags);