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
|
@ -16,7 +16,7 @@ def connect(dev, apdev, **kwargs):
|
|||
params = { "ssid": "ap-csa",
|
||||
"channel": "1" }
|
||||
params.update(kwargs)
|
||||
ap = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
ap = hostapd.add_ap(apdev[0], params)
|
||||
dev.connect("ap-csa", key_mgmt="NONE", scan_freq="2412")
|
||||
return ap
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue