Commit 72fcd3d1 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

b43: don't warn about no 5 GHz support on 2.4 GHz devices

This could be a bit confusing to see warning about lacking support for
5 GHz band if your device supports 2.4 GHz only.
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3695b932
...@@ -5268,14 +5268,16 @@ static int b43_wireless_core_attach(struct b43_wldev *dev) ...@@ -5268,14 +5268,16 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
b43_supported_bands(dev, &have_2ghz_phy, &have_5ghz_phy); b43_supported_bands(dev, &have_2ghz_phy, &have_5ghz_phy);
/* We don't support 5 GHz on some PHYs yet */ /* We don't support 5 GHz on some PHYs yet */
switch (dev->phy.type) { if (have_5ghz_phy) {
case B43_PHYTYPE_A: switch (dev->phy.type) {
case B43_PHYTYPE_G: case B43_PHYTYPE_A:
case B43_PHYTYPE_N: case B43_PHYTYPE_G:
case B43_PHYTYPE_LP: case B43_PHYTYPE_N:
case B43_PHYTYPE_HT: case B43_PHYTYPE_LP:
b43warn(wl, "5 GHz band is unsupported on this PHY\n"); case B43_PHYTYPE_HT:
have_5ghz_phy = false; b43warn(wl, "5 GHz band is unsupported on this PHY\n");
have_5ghz_phy = false;
}
} }
if (!have_2ghz_phy && !have_5ghz_phy) { if (!have_2ghz_phy && !have_5ghz_phy) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment