diff options
-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. |