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: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Rafał Miłecki 2014-07-08 21:00:19 +02:00 committed by John W. Linville
parent 3695b9324e
commit 72fcd3d16c
1 changed files with 10 additions and 8 deletions

View File

@ -5268,6 +5268,7 @@ 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 */
if (have_5ghz_phy) {
switch (dev->phy.type) { switch (dev->phy.type) {
case B43_PHYTYPE_A: case B43_PHYTYPE_A:
case B43_PHYTYPE_G: case B43_PHYTYPE_G:
@ -5277,6 +5278,7 @@ static int b43_wireless_core_attach(struct b43_wldev *dev)
b43warn(wl, "5 GHz band is unsupported on this PHY\n"); b43warn(wl, "5 GHz band is unsupported on this PHY\n");
have_5ghz_phy = false; have_5ghz_phy = false;
} }
}
if (!have_2ghz_phy && !have_5ghz_phy) { if (!have_2ghz_phy && !have_5ghz_phy) {
b43err(wl, "b43 can't support any band on this device\n"); b43err(wl, "b43 can't support any band on this device\n");