b43: xmit: set 5 GHz bit depending on current band
authorRafał Miłecki <zajec5@gmail.com>
Tue, 20 May 2014 07:27:18 +0000 (09:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 May 2014 14:34:28 +0000 (10:34 -0400)
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>
drivers/net/wireless/b43/phy_common.h
drivers/net/wireless/b43/xmit.c

index 4c80b09a858dc4aed6dcf7a3b6becb641f334d99..47b55855c37da0363bb213fc92a4491419f7eebf 100644 (file)
@@ -231,7 +231,7 @@ struct b43_phy {
        /* HT info */
        bool is_40mhz;
 
-       /* GMODE bit enabled? */
+       /* Is GMODE (2 GHz mode) bit enabled? */
        bool gmode;
 
        /* Analog Type */
index 31adb8cf0291fb0bbebf1a6896c8f4ff4d7288b9..4f38f19b8e3d373847778766ec8ad820e5d1d2bd 100644 (file)
@@ -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