summaryrefslogtreecommitdiff
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-29 14:59:03 +0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-05 07:34:12 +0400
commitf6d3c6e783b0e9f75b18232f8ff8cd5dbc3f7301 (patch)
tree868a752db0c703cdb9152ada0c2e3e6f276d7545 /include/net/bluetooth
parent9740e49d17e55f3832661fd99a8e0a17e921a82e (diff)
downloadlinux-f6d3c6e783b0e9f75b18232f8ff8cd5dbc3f7301.tar.xz
Bluetooth: A2MP: Build and Send msg helpers
Helper function to build and send A2MP messages. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/a2mp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/a2mp.h b/include/net/bluetooth/a2mp.h
index ff4754000cf8..654df60cfd6d 100644
--- a/include/net/bluetooth/a2mp.h
+++ b/include/net/bluetooth/a2mp.h
@@ -24,6 +24,13 @@ struct amp_mgr {
unsigned long flags;
};
+struct a2mp_cmd {
+ __u8 code;
+ __u8 ident;
+ __le16 len;
+ __u8 data[0];
+} __packed;
+
void amp_mgr_get(struct amp_mgr *mgr);
int amp_mgr_put(struct amp_mgr *mgr);