Diff between 0a0223bec818c0f4d14a3c2d58bcd4b447668aa1 and f752bac2428ff3f5749c934cbd9e416f19796b2f

Changed Files

File Additions Deletions Status
test/test-profile +10 -0 modified

Full Patch

diff --git a/test/test-profile b/test/test-profile
index c690648..24efde1 100755
--- a/test/test-profile
+++ b/test/test-profile
@@ -53,6 +53,10 @@ if __name__ == '__main__':
 			make_option("-a", "--auto-connect",
 					action="store_true",
 					dest="auto_connect", default=False),
+			make_option("-P", "--PSM", action="store",
+					type="int", dest="psm"),
+			make_option("-C", "--channel", action="store",
+					type="int", dest="channel")
 			]
 
 	parser = OptionParser(option_list=option_list)
@@ -71,6 +75,12 @@ if __name__ == '__main__':
 	if (options.role):
 		opts["Role"] = options.role
 
+	if (options.psm):
+		opts["PSM"] = dbus.UInt16(options.psm)
+
+	if (options.channel):
+		opts["Channel"] = dbus.UInt16(options.channel)
+
 	manager.RegisterProfile(options.path, options.uuid, opts)
 
 	mainloop.run()