mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-24 16:49:25 +01:00
tree-wide: correct the spelling Ghz -> GHz
This mispelling was present in the configuration, so I retained parsing of the legacy BandModifier*Ghz options for compatibility. Without this change anyone spelling GHz correctly in their configs would be very confused.
This commit is contained in:
parent
20f13184f2
commit
c574c80e27
2
TODO
2
TODO
@ -286,7 +286,7 @@ Wireless daemon
|
|||||||
- Support OCE mutually non-overlapping channels optimization.
|
- Support OCE mutually non-overlapping channels optimization.
|
||||||
|
|
||||||
OCE Section 3.10 mandates that the STA should scan channels 1, 6 and 11 in
|
OCE Section 3.10 mandates that the STA should scan channels 1, 6 and 11 in
|
||||||
the 2.4Ghz band first, unless it expects to find an AP on a different
|
the 2.4GHz band first, unless it expects to find an AP on a different
|
||||||
channel.
|
channel.
|
||||||
|
|
||||||
Priority: Low
|
Priority: Low
|
||||||
|
@ -2761,7 +2761,7 @@ static void print_wsc_configuration_error(unsigned int level, const char *label,
|
|||||||
"Message timeout",
|
"Message timeout",
|
||||||
"Registration session timeout",
|
"Registration session timeout",
|
||||||
"Device Password Auth Failure",
|
"Device Password Auth Failure",
|
||||||
"60 Ghz channel not supported",
|
"60 GHz channel not supported",
|
||||||
"Public Key Hash Mismatch",
|
"Public Key Hash Mismatch",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
4
src/ap.c
4
src/ap.c
@ -1202,7 +1202,7 @@ static size_t ap_build_country_ie(struct ap_state *ap, uint8_t *out_buf,
|
|||||||
* and use the same TX power. Any deviation from this results in a new
|
* and use the same TX power. Any deviation from this results in a new
|
||||||
* channel group.
|
* channel group.
|
||||||
*
|
*
|
||||||
* TODO: 6Ghz requires operating triplets, not subband triplets.
|
* TODO: 6GHz requires operating triplets, not subband triplets.
|
||||||
*/
|
*/
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
const struct band_freq_attrs *attr = &list[i];
|
const struct band_freq_attrs *attr = &list[i];
|
||||||
@ -3564,7 +3564,7 @@ static bool ap_validate_band_channel(struct ap_state *ap)
|
|||||||
freq = band_channel_to_freq(ap->channel, ap->band);
|
freq = band_channel_to_freq(ap->channel, ap->band);
|
||||||
if (!freq) {
|
if (!freq) {
|
||||||
l_error("AP invalid band (%s) and channel (%u) combination",
|
l_error("AP invalid band (%s) and channel (%u) combination",
|
||||||
(ap->band & BAND_FREQ_5_GHZ) ? "5Ghz" : "2.4GHz",
|
(ap->band & BAND_FREQ_5_GHZ) ? "5GHz" : "2.4GHz",
|
||||||
ap->channel);
|
ap->channel);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ The group ``[General]`` contains general settings.
|
|||||||
- Value: rssi dBm value, from -100 to 1, default: **-70**
|
- Value: rssi dBm value, from -100 to 1, default: **-70**
|
||||||
|
|
||||||
This value can be used to control how aggressively **iwd** roams when
|
This value can be used to control how aggressively **iwd** roams when
|
||||||
connected to a 2.4Ghz access point.
|
connected to a 2.4GHz access point.
|
||||||
|
|
||||||
* - RoamThreshold5G
|
* - RoamThreshold5G
|
||||||
- Value: rssi dBm value, from -100 to 1, default: **-76**
|
- Value: rssi dBm value, from -100 to 1, default: **-76**
|
||||||
@ -291,7 +291,7 @@ autoconnect purposes.
|
|||||||
:widths: 20 80
|
:widths: 20 80
|
||||||
:align: left
|
:align: left
|
||||||
|
|
||||||
* - BandModifier2_4Ghz
|
* - BandModifier2_4GHz
|
||||||
- Values: floating point value (default: **1.0**)
|
- Values: floating point value (default: **1.0**)
|
||||||
|
|
||||||
Increase or decrease the preference for 2.4GHz access points by
|
Increase or decrease the preference for 2.4GHz access points by
|
||||||
@ -300,19 +300,19 @@ autoconnect purposes.
|
|||||||
A value of 0.0 will disable the 2.4GHz band and prevent scanning or
|
A value of 0.0 will disable the 2.4GHz band and prevent scanning or
|
||||||
connecting on those frequencies.
|
connecting on those frequencies.
|
||||||
|
|
||||||
* - BandModifier5Ghz
|
* - BandModifier5GHz
|
||||||
- Values: floating point value (default: **1.0**)
|
- Values: floating point value (default: **1.0**)
|
||||||
|
|
||||||
Increase or decrease the preference for 5GHz access points by increasing
|
Increase or decrease the preference for 5GHz access points by increasing
|
||||||
or decreasing the value of this modifier. 5GHz networks are already
|
or decreasing the value of this modifier. 5GHz networks are already
|
||||||
preferred due to their increase throughput / data rate. However, 5GHz
|
preferred due to their increase throughput / data rate. However, 5GHz
|
||||||
networks are highly RSSI sensitive, so it is still possible for IWD to
|
networks are highly RSSI sensitive, so it is still possible for IWD to
|
||||||
prefer 2.4Ghz APs in certain circumstances.
|
prefer 2.4GHz APs in certain circumstances.
|
||||||
|
|
||||||
A value of 0.0 will disable the 5GHz band and prevent scanning or
|
A value of 0.0 will disable the 5GHz band and prevent scanning or
|
||||||
connecting on those frequencies.
|
connecting on those frequencies.
|
||||||
|
|
||||||
* - BandModifier6Ghz
|
* - BandModifier6GHz
|
||||||
- Values: floating point value (default: **1.0**)
|
- Values: floating point value (default: **1.0**)
|
||||||
|
|
||||||
Increase or decrease the preference for 6GHz access points by increasing
|
Increase or decrease the preference for 6GHz access points by increasing
|
||||||
|
14
src/scan.c
14
src/scan.c
@ -2333,24 +2333,28 @@ 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;
|
char *str, *str_legacy;
|
||||||
|
|
||||||
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;
|
||||||
|
@ -4435,7 +4435,7 @@ static void station_wiphy_watch(struct wiphy *wiphy,
|
|||||||
/*
|
/*
|
||||||
* The only state that requires special handling is for
|
* The only state that requires special handling is for
|
||||||
* quick scans since the previous quick scan was delayed until
|
* quick scans since the previous quick scan was delayed until
|
||||||
* the regulatory domain updated. Try again in case 6Ghz is now
|
* the regulatory domain updated. Try again in case 6GHz is now
|
||||||
* unlocked (unlikely), or advance to full autoconnect. Just in
|
* unlocked (unlikely), or advance to full autoconnect. Just in
|
||||||
* case this update came during a quick scan, ignore it.
|
* case this update came during a quick scan, ignore it.
|
||||||
*/
|
*/
|
||||||
|
@ -1262,10 +1262,10 @@ static void wiphy_print_basic_info(struct wiphy *wiphy)
|
|||||||
l_info("\tPermanent Address: "MAC, MAC_STR(wiphy->permanent_addr));
|
l_info("\tPermanent Address: "MAC, MAC_STR(wiphy->permanent_addr));
|
||||||
|
|
||||||
if (wiphy->band_2g)
|
if (wiphy->band_2g)
|
||||||
wiphy_print_band_info(wiphy->band_2g, "2.4Ghz Band");
|
wiphy_print_band_info(wiphy->band_2g, "2.4GHz Band");
|
||||||
|
|
||||||
if (wiphy->band_5g)
|
if (wiphy->band_5g)
|
||||||
wiphy_print_band_info(wiphy->band_5g, "5Ghz Band");
|
wiphy_print_band_info(wiphy->band_5g, "5GHz Band");
|
||||||
|
|
||||||
if (wiphy->band_6g)
|
if (wiphy->band_6g)
|
||||||
wiphy_print_band_info(wiphy->band_6g, "6GHz Band");
|
wiphy_print_band_info(wiphy->band_6g, "6GHz Band");
|
||||||
|
@ -654,8 +654,8 @@ static void test_conversions(const void *data)
|
|||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Test a few invalid channels/frequencies that appear valid but are
|
* Test a few invalid channels/frequencies that appear valid but are
|
||||||
* not in the E-4 table. The checks in band.c seem to cover 2.4Ghz and
|
* not in the E-4 table. The checks in band.c seem to cover 2.4GHz and
|
||||||
* 6Ghz very well since there are no gaps, but the 5GHz band has some
|
* 6GHz very well since there are no gaps, but the 5GHz band has some
|
||||||
* segmentation.
|
* segmentation.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user