diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-05-31 14:49:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 15:49:13 -0400 |
commit | bee6d4b272ba6e668f0c12d8bb66d76e1826f406 (patch) | |
tree | 6c58b4193fc93dc388cc446c1dc41e85ec0d298e /drivers/net/wireless/b43/phy_common.c | |
parent | 39e971ef1b0ced72b6504429296551bbf14ac965 (diff) |
b43: PHY: drop is_40mhz (get width info from chandef)
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43/phy_common.c b/drivers/net/wireless/b43/phy_common.c index 9aa6c9c57393..e7e83835f725 100644 --- a/drivers/net/wireless/b43/phy_common.c +++ b/drivers/net/wireless/b43/phy_common.c | |||
@@ -553,6 +553,11 @@ bool b43_channel_type_is_40mhz(enum nl80211_channel_type channel_type) | |||
553 | channel_type == NL80211_CHAN_HT40PLUS); | 553 | channel_type == NL80211_CHAN_HT40PLUS); |
554 | } | 554 | } |
555 | 555 | ||
556 | bool b43_is_40mhz(struct b43_wldev *dev) | ||
557 | { | ||
558 | return dev->phy.chandef->width == NL80211_CHAN_WIDTH_40; | ||
559 | } | ||
560 | |||
556 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ | 561 | /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ |
557 | void b43_phy_force_clock(struct b43_wldev *dev, bool force) | 562 | void b43_phy_force_clock(struct b43_wldev *dev, bool force) |
558 | { | 563 | { |