aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py3-wifi/fix-iwlist-path.patch
blob: dfdc602ddea9dd4e6314f4c246c53ec54b3e4da0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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())