summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/phy_common.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2010-12-07 21:55:58 +0100
committerJohn W. Linville <linville@tuxdriver.com>2010-12-08 15:38:45 -0500
commitabc1f7cd531f80a8468ab654f1dfd35d58bd2490 (patch)
tree94fad4d5f8684c48a07daf52a8974629aac2bf88 /drivers/net/wireless/b43/phy_common.c
parentc7455cf988f06ba578cc6a680392426fce382ca1 (diff)
downloadop-kernel-dev-abc1f7cd531f80a8468ab654f1dfd35d58bd2490.zip
op-kernel-dev-abc1f7cd531f80a8468ab654f1dfd35d58bd2490.tar.gz
b43: set TMS to work with current band width for N-PHY
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/phy_common.c')
-rw-r--r--drivers/net/wireless/b43/phy_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c
index 0a91fc3..412f1b6 100644
--- a/drivers/net/wireless/b43/phy_common.c
+++ b/drivers/net/wireless/b43/phy_common.c
@@ -429,6 +429,13 @@ void b43_phyop_switch_analog_generic(struct b43_wldev *dev, bool on)
b43_write16(dev, B43_MMIO_PHY0, on ? 0 : 0xF4);
}
+
+bool b43_channel_type_is_40mhz(enum nl80211_channel_type channel_type)
+{
+ return (channel_type == NL80211_CHAN_HT40MINUS ||
+ channel_type == NL80211_CHAN_HT40PLUS);
+}
+
/* http://bcm-v4.sipsolutions.net/802.11/PHY/Cordic */
struct b43_c32 b43_cordic(int theta)
{
OpenPOWER on IntegriCloud