Skip to content

Commit

Permalink
wireless: T6320: Revert to using default channel in smoketest
Browse files Browse the repository at this point in the history
test_wireless_hostapd_wpa_config, as it would have implicitly been like
that in the past.
  • Loading branch information
alainlamar committed Jun 5, 2024
1 parent 12e4742 commit d53b5b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions smoketest/scripts/cli/test_interfaces_wireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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):
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit d53b5b0

Please sign in to comment.