Message ID | 20240827142048.750995-1-prestwoj@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | scan: remove legacy "Ghz" band modifier settings | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-alpine-ci-fetch | success | Fetch PR |
prestwoj/iwd-ci-gitlint | success | GitLint |
prestwoj/iwd-ci-fetch | success | Fetch PR |
prestwoj/iwd-alpine-ci-setupell | success | Prep - Setup ELL |
prestwoj/iwd-ci-setupell | success | Prep - Setup ELL |
prestwoj/iwd-alpine-ci-makedistcheck | success | Make Distcheck |
prestwoj/iwd-ci-makedistcheck | success | Make Distcheck |
prestwoj/iwd-alpine-ci-incremental_build | success | Incremental build not run PASS |
prestwoj/iwd-ci-incremental_build | success | Incremental build not run PASS |
prestwoj/iwd-ci-build | success | Build - Configure |
prestwoj/iwd-alpine-ci-build | success | Build - Configure |
prestwoj/iwd-ci-makecheckvalgrind | success | Make Check w/Valgrind |
prestwoj/iwd-alpine-ci-makecheckvalgrind | success | Make Check w/Valgrind |
prestwoj/iwd-alpine-ci-makecheck | success | Make Check |
prestwoj/iwd-ci-clang | success | clang PASS |
prestwoj/iwd-ci-makecheck | success | Make Check |
prestwoj/iwd-ci-testrunner | success | test-runner PASS |
Hi James, On 8/27/24 9:20 AM, James Prestwood wrote: > --- > src/scan.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > Applied, thanks. Regards, -Denis
diff --git a/src/scan.c b/src/scan.c index bee6c5b4..44bcfd3f 100644 --- a/src/scan.c +++ b/src/scan.c @@ -2544,28 +2544,24 @@ double scan_get_band_rank_modifier(enum band_freq band) { const struct l_settings *config = iwd_get_config(); double modifier; - char *str, *str_legacy; + char *str; switch (band) { case BAND_FREQ_2_4_GHZ: str = "BandModifier2_4GHz"; - str_legacy = "BandModifier2_4Ghz"; break; case BAND_FREQ_5_GHZ: str = "BandModifier5GHz"; - str_legacy = "BandModifier5Ghz"; break; case BAND_FREQ_6_GHZ: str = "BandModifier6GHz"; - str_legacy = "BandModifier6Ghz"; break; default: l_warn("Unhandled band %u", band); return 0.0; } - if (!l_settings_get_double(config, "Rank", str, &modifier) && - !l_settings_get_double(config, "Rank", str_legacy, &modifier)) + if (!l_settings_get_double(config, "Rank", str, &modifier)) modifier = 1.0; return modifier;