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 4c80b09..47b5585 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 31adb8c..4f38f19 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