Index: server/site_wifitest.py |
diff --git a/server/site_wifitest.py b/server/site_wifitest.py |
index a358457366f035f5b9968fe72583cbfb0a9a12da..adf7dcd58026603f2692fd5f2bf9a584d6f558b3 100644 |
--- a/server/site_wifitest.py |
+++ b/server/site_wifitest.py |
@@ -190,7 +190,7 @@ class WiFiTest(object): |
ifmatch = re.search("Interface (\S*)", line) |
if ifmatch is not None: |
current_if = ifmatch.group(1) |
- elif 'type managed' in line and current_if: |
+ elif ('type managed' in line or 'type IBSS' in line) and current_if: |
ret.append(current_if) |
logging.info("Found wireless interfaces %s" % str(ret)) |
return ret |
@@ -377,6 +377,8 @@ class WiFiTest(object): |
flags.append('--debug') |
if params.get('hidden', False): |
flags.append('--hidden') |
+ if 'mode' in params: |
+ flags.append('--mode=%s' % params['mode']) |
result = self.client.run('python "%s" %s "%s" "%s" "%s" "%d" "%d"' % |
(script_client_file, |