From: Haim Dreyfuss Date: Tue, 10 Jun 2014 17:50:30 +0000 (+0300) Subject: tests: Add wpasupplicant get_mcc helper function X-Git-Tag: hostap_2_3~297 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fe7a42601471acf4aa2c0f50541ffaf331e4d0b;p=thirdparty%2Fhostap.git tests: Add wpasupplicant get_mcc helper function The function returns the number of concurrent channels supported by the driver. Signed-off-by: Haim Dreyfuss --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index fb77e9b79..a2a7b67f0 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -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()