public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Bluetooth: AMP: Do not set name for AMP ctrl
@ 2012-06-06 15:00 Andrei Emeltchenko
  2012-06-06 15:22 ` Johan Hedberg
  0 siblings, 1 reply; 7+ messages in thread
From: Andrei Emeltchenko @ 2012-06-06 15:00 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

AMP controllers do not understand this command

...
< HCI Command: Write Local Name (0x03|0x0013) plen 248
   name ''
> HCI Event: Command Complete (0x0e) plen 4
   Write Local Name (0x03|0x0013) ncmd 1
   status 0x01
   Error: Unknown HCI Command
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 net/bluetooth/mgmt.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 958f764..9afcc84 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2135,6 +2135,9 @@ static int set_local_name(struct sock *sk, struct hci_dev *hdev, void *data,
 
 	BT_DBG("");
 
+	if (hdev->amp_type != HCI_BREDR)
+		return -ENOTSUPP;
+
 	hci_dev_lock(hdev);
 
 	memcpy(hdev->short_name, cp->short_name, sizeof(hdev->short_name));
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-06-12 13:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06 15:00 [RFC] Bluetooth: AMP: Do not set name for AMP ctrl Andrei Emeltchenko
2012-06-06 15:22 ` Johan Hedberg
2012-06-06 15:27   ` Johan Hedberg
2012-06-07  6:40     ` Andrei Emeltchenko
2012-06-07 15:18       ` Johan Hedberg
2012-06-08  8:09         ` [PATCH] Bluetooth: mgmt: Fix managing AMP device Andrei Emeltchenko
2012-06-12 13:31           ` [PATCHv2] " Andrei Emeltchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox