b43: N-PHY: don't calculate values for TSSI if we can't transmit
PATCH 1/3 b43: N-PHY: don't calculate values for TSSI if we can't transmit
This process requires sending some sample tone, so make sure we're allowed to transmit first.
Signed-off-by Rafa? Mi?ecki <[email protected]>
--- drivers/net/wireless/b43/phy_n.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/b43/phy_n.c +2 -1
@@ -3957,7 +3957,8 @@ static void b43_nphy_tx_power_ctl_idle_tssi(struct b43_wldev *dev)u32 tmp;s32 rssi[4 ] = { }; -/* TODO: check if we can transmit */ +if (phy->chandef->chan->flags &IEEE80211_CHAN_NO_IR ) +return ;if (b43_nphy_ipa (dev))b43_nphy_ipa_internal_tssi_setup (dev);
Signature · 1 line
1.8.4.5
PATCH 2/3 b43: register limited amount of 5G channels for BCM43228
We don't have all needed channel tables due to RE process for this device.
Signed-off-by Rafa? Mi?ecki <[email protected]>
--- drivers/net/wireless/b43/main.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)
drivers/net/wireless/b43/main.c +22 -1
@@ -290,6 +290,14 @@ static struct ieee80211_channel b43_5ghz_nphy_chantable[] = { CHAN5G(182, 0), }; +static struct ieee80211_channel b43_5ghz_nphy_chantable_limited[] = { +CHAN5G (36 ,0 ),CHAN5G (40 ,0 ), +CHAN5G (44 ,0 ),CHAN5G (48 ,0 ), +CHAN5G (149 ,0 ),CHAN5G (153 ,0 ), +CHAN5G (157 ,0 ),CHAN5G (161 ,0 ), +CHAN5G (165 ,0 ), +}; +static struct ieee80211_channel b43_5ghz_aphy_chantable[] = {CHAN5G (34 ,0 ),CHAN5G (36 ,0 ),CHAN5G (38 ,0 ),CHAN5G (40 ,0 ),
@@ -322,6 +330,14 @@ static struct ieee80211_supported_band b43_band_5GHz_nphy = { .n_bitrates = b43_a_ratetable_size, }; +static struct ieee80211_supported_band b43_band_5GHz_nphy_limited = { + .band =IEEE80211_BAND_5GHZ , + .channels = b43_5ghz_nphy_chantable_limited, + .n_channels =ARRAY_SIZE (b43_5ghz_nphy_chantable_limited), + .bitrates = b43_a_ratetable, + .n_bitrates = b43_a_ratetable_size, +}; +static struct ieee80211_supported_band b43_band_5GHz_aphy = { .band =IEEE80211_BAND_5GHZ , .channels = b43_5ghz_aphy_chantable,
@@ -5155,17 +5171,22 @@ static int b43_setup_bands(struct b43_wldev *dev,struct ieee80211_hw *hw = dev->wl->hw;struct b43_phy *phy = &dev->phy;bool limited_2g; +bool limited_5g;/* We don't support all 2 GHz channels on some devices */ limited_2g = phy->radio_ver ==0x2057 && (phy->radio_rev ==9 || phy->radio_rev ==14 ); + limited_5g = phy->radio_ver ==0x2057 && + phy->radio_rev ==9 ;if (have_2ghz_phy) hw->wiphy->bands[IEEE80211_BAND_2GHZ ] = limited_2g ? &b43_band_2ghz_limited : &b43_band_2GHz;if (dev->phy.type ==B43_PHYTYPE_N ) {if (have_5ghz_phy) - hw->wiphy->bands[IEEE80211_BAND_5GHZ ] = &b43_band_5GHz_nphy; + hw->wiphy->bands[IEEE80211_BAND_5GHZ ] = limited_5g ? + &b43_band_5GHz_nphy_limited : + &b43_band_5GHz_nphy; }else {if (have_5ghz_phy) hw->wiphy->bands[IEEE80211_BAND_5GHZ ] = &b43_band_5GHz_aphy;
Signature · 1 line
1.8.4.5
PATCH 3/3 b43: enable 5 GHz support for N-PHY devices
In reply to Rafał MiłeckiThis has been tested on 14e4:4328 (BCM4321), 14e4:432b (BCM4322), 14e4:4353 (BCM43224) and 14e4:4359 (BCM43228) which is an almost complete list of 5 GHz capable device (only BCM43222 is missing).
Signed-off-by Rafa? Mi?ecki <[email protected]>
--- drivers/net/wireless/b43/main.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/wireless/b43/main.c +0 -1
@@ -5338,7 +5338,6 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)switch (dev->phy.type) {case B43_PHYTYPE_A :case B43_PHYTYPE_G : -case B43_PHYTYPE_N :case B43_PHYTYPE_LP :case B43_PHYTYPE_HT :b43warn (wl,"5 GHz band is unsupported on this PHY\n" );
Signature · 1 line
1.8.4.5