diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2014-05-31 20:49:40 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-06-19 21:49:13 +0200 |
commit | bee6d4b272ba6e668f0c12d8bb66d76e1826f406 (patch) | |
tree | 6c58b4193fc93dc388cc446c1dc41e85ec0d298e /drivers/net/wireless/b43/phy_common.c | |
parent | b43: PHY: drop own channel_freq (get it from chandef when needed) (diff) | |
download | linux-bee6d4b272ba6e668f0c12d8bb66d76e1826f406.tar.xz linux-bee6d4b272ba6e668f0c12d8bb66d76e1826f406.zip |
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) channel_type == NL80211_CHAN_HT40PLUS); } +bool b43_is_40mhz(struct b43_wldev *dev) +{ + return dev->phy.chandef->width == NL80211_CHAN_WIDTH_40; +} + /* http://bcm-v4.sipsolutions.net/802.11/PHY/N/BmacPhyClkFgc */ void b43_phy_force_clock(struct b43_wldev *dev, bool force) { |