]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Bluetooth: Fix userspace compatibility issue with mgmt interface
authorGustavo Padovan <gustavo@padovan.org>
Thu, 29 Mar 2012 12:47:53 +0000 (09:47 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Thu, 5 Apr 2012 19:21:22 +0000 (16:21 -0300)
To ensure that old user space versions do not accidentally pick up and
try to use the management channel, use a different channel number.

Reported-by: Keith Packard <keithp@keithp.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
include/net/bluetooth/hci.h

index 38ac0e6185f187cda3f7442f6d83480cba0343ed..346f08779792930d5667c754d39303b966600074 100644 (file)
@@ -1335,8 +1335,8 @@ struct sockaddr_hci {
 #define HCI_DEV_NONE   0xffff
 
 #define HCI_CHANNEL_RAW                0
-#define HCI_CHANNEL_CONTROL    1
 #define HCI_CHANNEL_MONITOR    2
+#define HCI_CHANNEL_CONTROL    3
 
 struct hci_filter {
        unsigned long type_mask;