[PATCH hcidump 2/2] core: set HCI channel explicitly when bind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Chan-yeol Park <chanyeol.park@xxxxxxxxxxx>

---
 src/hcidump.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/hcidump.c b/src/hcidump.c
index 089d444..7423cdd 100644
--- a/src/hcidump.c
+++ b/src/hcidump.c
@@ -590,8 +590,10 @@ static int open_socket(int dev, unsigned long flags)
 	memset(&addr, 0, sizeof(addr));
 	addr.hci_family = AF_BLUETOOTH;
 	addr.hci_dev = dev;
+	addr.hci_channel = HCI_CHANNEL_RAW;
+
 	if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
-		printf("Can't attach to device hci%d. %s(%d)\n", 
+		printf("Can't attach to device hci%d. %s(%d)\n",
 					dev, strerror(errno), errno);
 		return -1;
 	}
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux