tests: Pass full apdev to add_ap() function (1)
Pass the full apdev to the add_ap() function instead of just ifname. This allows us to handle also remote hosts while we can check apdev['hostname'], apdev['port']. This step (1) converts the cases where apdev[#]['ifname'] was used as the argument to hostapd.add_ap(). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
This commit is contained in:
parent
78b8319317
commit
8b8a1864ff
60 changed files with 1083 additions and 1083 deletions
|
@ -41,7 +41,7 @@ def test_ap_qosmap(dev, apdev):
|
|||
ssid = "test-qosmap"
|
||||
params = { "ssid": ssid }
|
||||
params['qos_map_set'] = '53,2,22,6,8,15,0,7,255,255,16,31,32,39,255,255,40,47,48,55'
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
|
||||
time.sleep(0.1)
|
||||
addr = dev[0].p2p_interface_addr()
|
||||
|
@ -76,7 +76,7 @@ def test_ap_qosmap_default(dev, apdev):
|
|||
"""QoS mapping with default values"""
|
||||
ssid = "test-qosmap-default"
|
||||
params = { "ssid": ssid }
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
|
||||
addr = dev[0].p2p_interface_addr()
|
||||
dev[0].request("DATA_TEST_CONFIG 1")
|
||||
|
@ -110,7 +110,7 @@ def test_ap_qosmap_default_acm(dev, apdev):
|
|||
"wmm_ac_vo_cwmax": "2",
|
||||
"wmm_ac_vo_txop_limit": "47",
|
||||
"wmm_ac_vo_acm": "1" }
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
|
||||
addr = dev[0].p2p_interface_addr()
|
||||
dev[0].request("DATA_TEST_CONFIG 1")
|
||||
|
@ -129,7 +129,7 @@ def test_ap_qosmap_invalid(dev, apdev):
|
|||
"""QoS mapping ctrl_iface error handling"""
|
||||
ssid = "test-qosmap"
|
||||
params = { "ssid": ssid }
|
||||
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
hapd = hostapd.add_ap(apdev[0], params)
|
||||
if "FAIL" not in hapd.request("SEND_QOS_MAP_CONF 00:11:22:33:44:55"):
|
||||
raise Exception("Unexpected SEND_QOS_MAP_CONF success")
|
||||
if "FAIL" not in hapd.request("SET_QOS_MAP_SET "):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue