[PATCH 7/9] tests: Fix usage of a non existing variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In monitor.py in the remote tests code there is fucntion create()
that creates standalone monitor interfaces. In this function
there is an iteration of the ifaces of the host by using the ifaces
variable but this variable is non-existing.
This patch creates this variable before its usage.

Signed-off-by: Jonathan Afek <jonathanx.afek@xxxxxxxxx>
---
 tests/remote/monitor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/remote/monitor.py b/tests/remote/monitor.py
index e002c8d..fefc97f 100644
--- a/tests/remote/monitor.py
+++ b/tests/remote/monitor.py
@@ -37,6 +37,7 @@ def create(devices, setup_params, refs, duts, monitors):
         try:
             host.execute(["iw", "reg", "set", setup_params['country']])
             setup_hw = setup_params['setup_hw']
+            ifaces = re.split('; | |, ', host.ifname)
             for iface in ifaces:
                 host.execute(setup_hw + " -I " + iface + " -R 1")
         except:
-- 
1.9.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux