Bluetooth: Add support for set_powered management command

This patch adds a set_powered command to the management interface
through which the powered state of local adapters can be controlled.

Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
Johan Hedberg
2010-12-16 10:17:38 +02:00
committed by Gustavo F. Padovan
parent 5add6af8fc
commit eec8d2bcc8
6 changed files with 215 additions and 10 deletions

View File

@@ -58,6 +58,16 @@ struct mgmt_rp_read_info {
__u16 hci_rev;
} __packed;
#define MGMT_OP_SET_POWERED 0x0005
struct mgmt_cp_set_powered {
__le16 index;
__u8 powered;
} __packed;
struct mgmt_rp_set_powered {
__le16 index;
__u8 powered;
} __packed;
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
__le16 opcode;