]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add wpasupplicant get_mcc helper function
authorHaim Dreyfuss <haim.dreyfuss@intel.com>
Tue, 10 Jun 2014 17:50:30 +0000 (20:50 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Jun 2014 16:49:17 +0000 (19:49 +0300)
The function returns the number of concurrent channels supported by the
driver.

Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
tests/hwsim/wpasupplicant.py

index fb77e9b792866fcc9888cea165fb9998406e2bbb..a2a7b67f0ef9f516ecaa4c3821a12ecf3c538d11 100644 (file)
@@ -313,6 +313,10 @@ class WpaSupplicant:
             return vals[field]
         return None
 
+    def get_mcc(self):
+       mcc = int(self.get_driver_status_field('capa.num_multichan_concurrent'))
+       return 1 if mcc < 2 else mcc
+
     def get_mib(self):
         res = self.request("MIB")
         lines = res.splitlines()