OSDN Git Service

tools/btmgmt: Add support for set_bredr
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Oct 2013 07:41:48 +0000 (10:41 +0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Oct 2013 09:16:57 +0000 (12:16 +0300)
tools/btmgmt.c

index 4b73d06..1d45349 100644 (file)
@@ -971,6 +971,11 @@ static void cmd_advertising(struct mgmt *mgmt, uint16_t index, int argc,
        cmd_setting(mgmt, index, MGMT_OP_SET_ADVERTISING, argc, argv);
 }
 
+static void cmd_bredr(struct mgmt *mgmt, uint16_t index, int argc, char **argv)
+{
+       cmd_setting(mgmt, index, MGMT_OP_SET_BREDR, argc, argv);
+}
+
 static void class_rsp(uint16_t op, uint16_t id, uint8_t status, uint16_t len,
                                                        const void *param)
 {
@@ -1788,6 +1793,7 @@ static struct {
        { "hs",         cmd_hs,         "Toggle HS Support"             },
        { "le",         cmd_le,         "Toggle LE Support"             },
        { "advertising",cmd_advertising,"Toggle LE advertising",        },
+       { "bredr",      cmd_bredr,      "Toggle BR/EDR support",        },
        { "class",      cmd_class,      "Set device major/minor class"  },
        { "disconnect", cmd_disconnect, "Disconnect device"             },
        { "con",        cmd_con,        "List connections"              },