3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

ap: Remove support for deprecated APRanges setting

In preparation for 2.0 release, remove settings that were marked
deprecated during 1.x cycle.
This commit is contained in:
Denis Kenzior 2022-09-29 12:59:16 -05:00
parent bead4745ac
commit ac976c6f71

View File

@ -4143,32 +4143,14 @@ static int ap_init(void)
* [General].EnableNetworkConfiguration is true. * [General].EnableNetworkConfiguration is true.
*/ */
if (netconfig_enabled()) { if (netconfig_enabled()) {
if (l_settings_get_value(settings, "IPv4", "APAddressPool")) { global_addr4_strs =
global_addr4_strs = l_settings_get_string_list(settings, l_settings_get_string_list(settings, "IPv4",
"IPv4", "APAddressPool", ',');
"APAddressPool", if (!global_addr4_strs || !global_addr4_strs[0]) {
','); l_error("Can't parse the [IPv4].APAddressPool "
if (!global_addr4_strs || !*global_addr4_strs) {
l_error("Can't parse the [IPv4].APAddressPool "
"setting as a string list"); "setting as a string list");
l_strv_free(global_addr4_strs); l_strv_free(global_addr4_strs);
global_addr4_strs = NULL; global_addr4_strs = NULL;
}
} else if (l_settings_get_value(settings,
"General", "APRanges")) {
l_warn("The [General].APRanges setting is deprecated, "
"use [IPv4].APAddressPool instead");
global_addr4_strs = l_settings_get_string_list(settings,
"General",
"APRanges",
',');
if (!global_addr4_strs || !*global_addr4_strs) {
l_error("Can't parse the [General].APRanges "
"setting as a string list");
l_strv_free(global_addr4_strs);
global_addr4_strs = NULL;
}
} }
/* Fall back to 192.168.0.0/16 */ /* Fall back to 192.168.0.0/16 */