Skip to contentSkip to conversation

Bluetooth: Always enable management interface

PATCH Applied Marcel Holtmann 2 participants 2 messages Feb 20, 2012

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Always enable management interface

The management interface API has reached stable version 1.0 and thus it can now be always enabled. All future changes will be made backwards compatible.

---
 net/bluetooth/hci_sock.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
net/bluetooth/hci_sock.c +1 -6
index 8c429a1..dd56350 100644
@@ -50,8 +50,6 @@
 #include <net/bluetooth/hci_core.h>
 #include <net/bluetooth/hci_mon.h>
 
-static bool enable_mgmt;
-
 static atomic_t monitor_promisc = ATOMIC_INIT(0);
 
 /* ----- HCI socket interface ----- */
@@ -651,7 +649,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
 		break;
 
 	case HCI_CHANNEL_CONTROL:
-		if (haddr.hci_dev != HCI_DEV_NONE || !enable_mgmt) {
+		if (haddr.hci_dev != HCI_DEV_NONE) {
 			err = -EINVAL;
 			goto done;
 		}
@@ -1129,6 +1127,3 @@ void hci_sock_cleanup(void)
 
 	proto_unregister(&hci_sk_proto);
 }
-
-module_param(enable_mgmt, bool, 0644);
-MODULE_PARM_DESC(enable_mgmt, "Enable Management interface");
Signature · 1 line
1.7.7.6
#1 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Holtmann

The management interface API has reached stable version 1.0 and thus it can now be always enabled. All future changes will be made backwards compatible.

---
 net/bluetooth/hci_sock.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

Applied to my bluetooth-next tree. Thanks.

Johan