From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH] scan: remove legacy "Ghz" band modifier settings
Date: Tue, 27 Aug 2024 07:20:48 -0700 [thread overview]
Message-ID: <20240827142048.750995-1-prestwoj@gmail.com> (raw)
---
src/scan.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
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;
--
2.34.1
next reply other threads:[~2024-08-27 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 14:20 James Prestwood [this message]
2024-08-28 2:24 ` [PATCH] scan: remove legacy "Ghz" band modifier settings Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240827142048.750995-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox