tests: Add wpasupplicant get_mcc helper function
The function returns the number of concurrent channels supported by the driver. Signed-off-by: Haim Dreyfuss <haim.dreyfuss@intel.com>
This commit is contained in:
parent
57d909eeff
commit
5fe7a42601
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,10 @@ class WpaSupplicant:
|
||||||
return vals[field]
|
return vals[field]
|
||||||
return None
|
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):
|
def get_mib(self):
|
||||||
res = self.request("MIB")
|
res = self.request("MIB")
|
||||||
lines = res.splitlines()
|
lines = res.splitlines()
|
||||||
|
|
Loading…
Reference in a new issue