mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-18 17:22:50 +01:00
scan: remove legacy "Ghz" band modifier settings
This commit is contained in:
parent
5c7777ff0f
commit
95a9e052de
@ -2492,28 +2492,24 @@ double scan_get_band_rank_modifier(enum band_freq band)
|
|||||||
{
|
{
|
||||||
const struct l_settings *config = iwd_get_config();
|
const struct l_settings *config = iwd_get_config();
|
||||||
double modifier;
|
double modifier;
|
||||||
char *str, *str_legacy;
|
char *str;
|
||||||
|
|
||||||
switch (band) {
|
switch (band) {
|
||||||
case BAND_FREQ_2_4_GHZ:
|
case BAND_FREQ_2_4_GHZ:
|
||||||
str = "BandModifier2_4GHz";
|
str = "BandModifier2_4GHz";
|
||||||
str_legacy = "BandModifier2_4Ghz";
|
|
||||||
break;
|
break;
|
||||||
case BAND_FREQ_5_GHZ:
|
case BAND_FREQ_5_GHZ:
|
||||||
str = "BandModifier5GHz";
|
str = "BandModifier5GHz";
|
||||||
str_legacy = "BandModifier5Ghz";
|
|
||||||
break;
|
break;
|
||||||
case BAND_FREQ_6_GHZ:
|
case BAND_FREQ_6_GHZ:
|
||||||
str = "BandModifier6GHz";
|
str = "BandModifier6GHz";
|
||||||
str_legacy = "BandModifier6Ghz";
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
l_warn("Unhandled band %u", band);
|
l_warn("Unhandled band %u", band);
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!l_settings_get_double(config, "Rank", str, &modifier) &&
|
if (!l_settings_get_double(config, "Rank", str, &modifier))
|
||||||
!l_settings_get_double(config, "Rank", str_legacy, &modifier))
|
|
||||||
modifier = 1.0;
|
modifier = 1.0;
|
||||||
|
|
||||||
return modifier;
|
return modifier;
|
||||||
|
Loading…
Reference in New Issue
Block a user