From: Ilan Peer Date: Thu, 8 Oct 2015 09:36:06 +0000 (+0300) Subject: tests: Add role parameter to asp_provision X-Git-Tag: hostap_2_6~1535 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a537887074f9e464f5309801a6616d19c44343a9;p=thirdparty%2Fhostap.git tests: Add role parameter to asp_provision Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/wpasupplicant.py b/tests/hwsim/wpasupplicant.py index 32d2e712d..fded63421 100644 --- a/tests/hwsim/wpasupplicant.py +++ b/tests/hwsim/wpasupplicant.py @@ -1117,7 +1117,7 @@ class WpaSupplicant: return vals def asp_provision(self, peer, adv_id, adv_mac, session_id, session_mac, - method="1000", info="", status=None, cpt=None): + method="1000", info="", status=None, cpt=None, role=None): if status is None: cmd = "P2P_ASP_PROVISION" params = "info='%s' method=%s" % (info, method) @@ -1125,6 +1125,8 @@ class WpaSupplicant: cmd = "P2P_ASP_PROVISION_RESP" params = "status=%d" % status + if role is not None: + params += " role=" + role if cpt is not None: params += " cpt=" + cpt