linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bluetooth: opcode field of sent commands is little endian.
@ 2012-06-25  6:38 Michel Dänzer
  2012-06-25  6:51 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Michel Dänzer @ 2012-06-25  6:38 UTC (permalink / raw)
  To: Johan Hedberg, Marcel Holtmann; +Cc: linux-bluetooth, linuxppc-dev

Fixes built-in Bluetooth not working on Apple PowerBooks, regression from
commit 75fb0e324daa48ec458fb5c2960eb07b80cfad9d ('Bluetooth: Fix init sequence
for some CSR based controllers').

Cc: stable@vger.kernel.org [v3.4]
Signed-off-by: Michel Dänzer <michel@daenzer.net>
---
 net/bluetooth/hci_core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index d6dc44c..e039e3d 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -92,7 +92,7 @@ void hci_req_complete(struct hci_dev *hdev, __u16 cmd, int result)
 		 * command.
 		 */
 
-		if (cmd != HCI_OP_RESET || sent->opcode == HCI_OP_RESET)
+		if (cmd != HCI_OP_RESET || sent->opcode == cpu_to_le16(HCI_OP_RESET))
 			return;
 
 		skb = skb_clone(hdev->sent_cmd, GFP_ATOMIC);
-- 
1.7.10.4

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

end of thread, other threads:[~2012-06-25  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25  6:38 [PATCH] bluetooth: opcode field of sent commands is little endian Michel Dänzer
2012-06-25  6:51 ` Marcel Holtmann
2012-06-25  7:06   ` Michel Dänzer
2012-06-25  7:22     ` Marcel Holtmann
2012-06-25  7:32       ` Michel Dänzer
2012-06-25  8:02         ` Andrei Emeltchenko
2012-06-25  9:20         ` David Laight
2012-06-25  9:33           ` Michel Dänzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).