aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-wifi/fix-iwlist-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-wifi/fix-iwlist-path.patch')
-rw-r--r--testing/py3-wifi/fix-iwlist-path.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/py3-wifi/fix-iwlist-path.patch b/testing/py3-wifi/fix-iwlist-path.patch
new file mode 100644
index 0000000000..dfdc602dde
--- /dev/null
+++ b/testing/py3-wifi/fix-iwlist-path.patch
@@ -0,0 +1,14 @@
+diff --git a/wifi/scan.py b/wifi/scan.py
+index 29f61ad..43f0af7 100644
+--- a/wifi/scan.py
++++ b/wifi/scan.py
+@@ -35,7 +35,7 @@ class Cell(object):
+ Returns a list of all cells extracted from the output of iwlist.
+ """
+ try:
+- iwlist_scan = subprocess.check_output(['/sbin/iwlist', interface, 'scan'],
++ iwlist_scan = subprocess.check_output(['/usr/sbin/iwlist', interface, 'scan'],
+ stderr=subprocess.STDOUT)
+ except subprocess.CalledProcessError as e:
+ raise InterfaceError(e.output.strip())
+