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:
Janusz Dziedzic 2016-03-30 10:55:56 +02:00 committed by Jouni Malinen
parent 78b8319317
commit 8b8a1864ff
60 changed files with 1083 additions and 1083 deletions

View file

@ -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