summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43/xmit.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-05-20 09:27:18 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-05-20 10:34:28 -0400
commit24acfc632b7ba55bbc2a9305e8df31c8e41178b6 (patch)
tree7ff3bc142299cde058d59c3dc9b54a6aed0cffa0 /drivers/net/wireless/b43/xmit.c
parent3cad711dbc79cf9d1bcb9f192ba681e877c18d16 (diff)
downloadop-kernel-dev-24acfc632b7ba55bbc2a9305e8df31c8e41178b6.zip
op-kernel-dev-24acfc632b7ba55bbc2a9305e8df31c8e41178b6.tar.gz
b43: xmit: set 5 GHz bit depending on current band
PHYs other than A may also work in 5 GHz mode. 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/xmit.c')
-rw-r--r--drivers/net/wireless/b43/xmit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/b43/xmit.c b/drivers/net/wireless/b43/xmit.c
index 31adb8c..4f38f19 100644
--- a/drivers/net/wireless/b43/xmit.c
+++ b/drivers/net/wireless/b43/xmit.c
@@ -408,7 +408,7 @@ int b43_generate_txhdr(struct b43_wldev *dev,
mac_ctl |= B43_TXH_MAC_HWSEQ;
if (info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)
mac_ctl |= B43_TXH_MAC_STMSDU;
- if (phy->type == B43_PHYTYPE_A)
+ if (!phy->gmode)
mac_ctl |= B43_TXH_MAC_5GHZ;
/* Overwrite rates[0].count to make the retry calculation
OpenPOWER on IntegriCloud