From f752bac2428ff3f5749c934cbd9e416f19796b2f Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Sep 2012 15:12:45 +0300 Subject: [PATCH] test: Add PSM and Channel options to test-profile --- test/test-profile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test-profile b/test/test-profile index c690648c5..24efde17f 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() -- 2.47.3