aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/hci_sock.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index 8c429a179aa4..dd5635064145 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -50,8 +50,6 @@
50#include <net/bluetooth/hci_core.h> 50#include <net/bluetooth/hci_core.h>
51#include <net/bluetooth/hci_mon.h> 51#include <net/bluetooth/hci_mon.h>
52 52
53static bool enable_mgmt;
54
55static atomic_t monitor_promisc = ATOMIC_INIT(0); 53static atomic_t monitor_promisc = ATOMIC_INIT(0);
56 54
57/* ----- HCI socket interface ----- */ 55/* ----- HCI socket interface ----- */
@@ -651,7 +649,7 @@ static int hci_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_le
651 break; 649 break;
652 650
653 case HCI_CHANNEL_CONTROL: 651 case HCI_CHANNEL_CONTROL:
654 if (haddr.hci_dev != HCI_DEV_NONE || !enable_mgmt) { 652 if (haddr.hci_dev != HCI_DEV_NONE) {
655 err = -EINVAL; 653 err = -EINVAL;
656 goto done; 654 goto done;
657 } 655 }
@@ -1129,6 +1127,3 @@ void hci_sock_cleanup(void)
1129 1127
1130 proto_unregister(&hci_sk_proto); 1128 proto_unregister(&hci_sk_proto);
1131} 1129}
1132
1133module_param(enable_mgmt, bool, 0644);
1134MODULE_PARM_DESC(enable_mgmt, "Enable Management interface");