From d53b5b0aea438f1940cd173163eb7c7a41b5099b Mon Sep 17 00:00:00 2001 From: Alain Lamar Date: Thu, 30 May 2024 09:46:50 +0200 Subject: [PATCH] wireless: T6320: Revert to using default channel in smoketest test_wireless_hostapd_wpa_config, as it would have implicitly been like that in the past. --- smoketest/scripts/cli/test_interfaces_wireless.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/smoketest/scripts/cli/test_interfaces_wireless.py b/smoketest/scripts/cli/test_interfaces_wireless.py index 90680317375..09afca4abf7 100755 --- a/smoketest/scripts/cli/test_interfaces_wireless.py +++ b/smoketest/scripts/cli/test_interfaces_wireless.py @@ -238,7 +238,6 @@ def test_wireless_hostapd_wpa_config(self): interface = 'wlan1' phy = 'phy0' ssid = 'ssid' - channel = '1' wpa_key = 'VyOSVyOSVyOS' mode = 'n' country = 'de' @@ -250,7 +249,6 @@ def test_wireless_hostapd_wpa_config(self): self.cli_set(self._base_path + [interface, 'physical-device', phy]) self.cli_set(self._base_path + [interface, 'type', 'access-point']) self.cli_set(self._base_path + [interface, 'mode', mode]) - self.cli_set(self._base_path + [interface, 'channel', channel]) # SSID must be set with self.assertRaises(ConfigSessionError): @@ -290,7 +288,8 @@ def test_wireless_hostapd_wpa_config(self): # channel tmp = get_config_value(interface, 'channel') - self.assertEqual(channel, tmp) + cli_default = default_value(self._base_path + [interface, 'channel']) + self.assertEqual(cli_default, tmp) # Country code tmp = get_config_value(interface, 'country_code')