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 May 30, 2024
1 parent 82eee7f commit 911ac6c
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 911ac6c

Please sign in to comment.