From: Andrei Otcheretianski Date: Thu, 24 Sep 2015 17:37:52 +0000 (+0300) Subject: tests: Add extended listen functions to WpaSupplicant X-Git-Tag: hostap_2_6~1567 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3dc75020a543bd3f45508731108710ff69a5a52;p=thirdparty%2Fhostap.git tests: Add extended listen functions to WpaSupplicant Add p2p_ext_listen() and p2p_cancel_ext_listen() functions. Signed-off-by: Andrei Otcheretianski --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 1dab60af7..32d2e712d 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -413,6 +413,12 @@ class WpaSupplicant: def p2p_listen(self): return self.global_request("P2P_LISTEN") + def p2p_ext_listen(self, period, interval): + return self.global_request("P2P_EXT_LISTEN %d %d" % (period, interval)) + + def p2p_cancel_ext_listen(self): + return self.global_request("P2P_EXT_LISTEN") + def p2p_find(self, social=False, progressive=False, dev_id=None, dev_type=None, delay=None, freq=None): cmd = "P2P_FIND"