]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Add extended listen functions to WpaSupplicant
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Thu, 24 Sep 2015 17:37:52 +0000 (20:37 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Oct 2015 14:07:21 +0000 (17:07 +0300)
Add p2p_ext_listen() and p2p_cancel_ext_listen() functions.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
tests/hwsim/wpasupplicant.py

index 1dab60af75660450cdb41e81c5cddad690a01f6c..32d2e712dfd11d9a7828e65ae1b94f424725af5f 100644 (file)
@@ -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"