summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/mgmt.h
diff options
context:
space:
mode:
authorJohan Hedberg2010-12-16 09:00:37 +0100
committerGustavo F. Padovan2011-02-08 04:40:04 +0100
commit5add6af8fcbce269cac2457584c0ebfda055474a (patch)
treef27f5eb78f8193f636c576c979391c63bfc50c29 /include/net/bluetooth/mgmt.h
parentBluetooth: Implement automatic setup procedure for local adapters (diff)
downloadkernel-qcow2-linux-5add6af8fcbce269cac2457584c0ebfda055474a.tar.gz
kernel-qcow2-linux-5add6af8fcbce269cac2457584c0ebfda055474a.tar.xz
kernel-qcow2-linux-5add6af8fcbce269cac2457584c0ebfda055474a.zip
Bluetooth: Add support for management powered event
This patch adds support for the powered event that's used to indicate to userspace when the powered state of a local adapter changes. Signed-off-by: Johan Hedberg <johan.hedberg@nokia.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/mgmt.h')
-rw-r--r--include/net/bluetooth/mgmt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/mgmt.h b/include/net/bluetooth/mgmt.h
index ca29c1367ffd..0ac1520573ed 100644
--- a/include/net/bluetooth/mgmt.h
+++ b/include/net/bluetooth/mgmt.h
@@ -85,3 +85,9 @@ struct mgmt_ev_index_added {
struct mgmt_ev_index_removed {
__le16 index;
} __packed;
+
+#define MGMT_EV_POWERED 0x0006
+struct mgmt_ev_powered {
+ __le16 index;
+ __u8 powered;
+} __packed;