diff options
author | Bindu Mahadev <bmahadev@google.com> | 2018-10-18 16:16:22 -0700 |
---|---|---|
committer | Bindu Mahadev <bmahadev@google.com> | 2018-10-18 16:16:22 -0700 |
commit | ed89832f6008bcb49a4bb0f91cf93246e0bf53e6 (patch) | |
tree | a0517b11839c98328070e830409c63cc6630c277 | |
parent | 1e82b983347558c689dd26c5ae37967f9c49910b (diff) | |
download | platform_tools_test_connectivity-ed89832f6008bcb49a4bb0f91cf93246e0bf53e6.tar.gz platform_tools_test_connectivity-ed89832f6008bcb49a4bb0f91cf93246e0bf53e6.tar.bz2 platform_tools_test_connectivity-ed89832f6008bcb49a4bb0f91cf93246e0bf53e6.zip |
[AP_LIB]Correcting variable names
Bug: None
Test: None
Change-Id: Ia5b1dc9468eb346b50d28a668d09adec54e5c836
-rw-r--r-- | acts/framework/acts/controllers/ap_lib/hostapd_ap_preset.py | 4 | ||||
-rwxr-xr-x | acts/framework/acts/controllers/ap_lib/hostapd_constants.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/acts/framework/acts/controllers/ap_lib/hostapd_ap_preset.py b/acts/framework/acts/controllers/ap_lib/hostapd_ap_preset.py index e57f333ced..60889034af 100644 --- a/acts/framework/acts/controllers/ap_lib/hostapd_ap_preset.py +++ b/acts/framework/acts/controllers/ap_lib/hostapd_ap_preset.py @@ -54,8 +54,8 @@ def create_ap_preset(profile_name='whirlwind', # The Onhub uses wlan0, wlan1 as the WAN interfaces, while the Gale uses # wlan-2400mhz, wlan-5000mhz. - if iface_wlan_2g not in hotapd_constants.2G_INTERFACE_LIST or \ - iface_wlan_5g not in hotapd_constants.5G_INTERFACE_LIST: + if iface_wlan_2g not in hotapd_constants.INTERFACE_2G_LIST or \ + iface_wlan_5g not in hotapd_constants.INTERFACE_5G_LIST: raise ValueError('Incorrect interface name was passed.') force_wmm = None diff --git a/acts/framework/acts/controllers/ap_lib/hostapd_constants.py b/acts/framework/acts/controllers/ap_lib/hostapd_constants.py index af4a4620de..3d3f23327f 100755 --- a/acts/framework/acts/controllers/ap_lib/hostapd_constants.py +++ b/acts/framework/acts/controllers/ap_lib/hostapd_constants.py @@ -49,8 +49,8 @@ AP_SSID_LENGTH_2G = 8 AP_PASSPHRASE_LENGTH_2G = 10 AP_SSID_LENGTH_5G = 8 AP_PASSPHRASE_LENGTH_5G = 10 -2G_INTERFACE_LIST = [WLAN0_STRING, WLAN0_GALE] -5G_INTERFACE_LIST = [WLAN1_STRING, WLAN1_GALE] +INTERFACE_2G_LIST = [WLAN0_STRING, WLAN0_GALE] +INTERFACE_5G_LIST = [WLAN1_STRING, WLAN1_GALE] # A mapping of frequency to channel number. This includes some # frequencies used outside the US. |