diff options
-rw-r--r-- | net/bluetooth/6lowpan.c | 13 | ||||
-rw-r--r-- | net/bluetooth/Kconfig | 6 | ||||
-rw-r--r-- | net/bluetooth/Makefile | 4 |
3 files changed, 17 insertions, 6 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index bdb01eb3bfcc..ceffe20fcbaa 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/if_arp.h> | 14 | #include <linux/if_arp.h> |
15 | #include <linux/netdevice.h> | 15 | #include <linux/netdevice.h> |
16 | #include <linux/etherdevice.h> | 16 | #include <linux/etherdevice.h> |
17 | #include <linux/module.h> | ||
17 | #include <linux/debugfs.h> | 18 | #include <linux/debugfs.h> |
18 | 19 | ||
19 | #include <net/ipv6.h> | 20 | #include <net/ipv6.h> |
@@ -1212,7 +1213,7 @@ static struct notifier_block bt_6lowpan_dev_notifier = { | |||
1212 | .notifier_call = device_event, | 1213 | .notifier_call = device_event, |
1213 | }; | 1214 | }; |
1214 | 1215 | ||
1215 | int bt_6lowpan_init(void) | 1216 | static int __init bt_6lowpan_init(void) |
1216 | { | 1217 | { |
1217 | lowpan_psm_debugfs = debugfs_create_file("6lowpan_psm", 0644, | 1218 | lowpan_psm_debugfs = debugfs_create_file("6lowpan_psm", 0644, |
1218 | bt_debugfs, NULL, | 1219 | bt_debugfs, NULL, |
@@ -1224,7 +1225,7 @@ int bt_6lowpan_init(void) | |||
1224 | return register_netdevice_notifier(&bt_6lowpan_dev_notifier); | 1225 | return register_netdevice_notifier(&bt_6lowpan_dev_notifier); |
1225 | } | 1226 | } |
1226 | 1227 | ||
1227 | void bt_6lowpan_exit(void) | 1228 | static void __exit bt_6lowpan_exit(void) |
1228 | { | 1229 | { |
1229 | debugfs_remove(lowpan_psm_debugfs); | 1230 | debugfs_remove(lowpan_psm_debugfs); |
1230 | debugfs_remove(lowpan_control_debugfs); | 1231 | debugfs_remove(lowpan_control_debugfs); |
@@ -1236,3 +1237,11 @@ void bt_6lowpan_exit(void) | |||
1236 | 1237 | ||
1237 | unregister_netdevice_notifier(&bt_6lowpan_dev_notifier); | 1238 | unregister_netdevice_notifier(&bt_6lowpan_dev_notifier); |
1238 | } | 1239 | } |
1240 | |||
1241 | module_init(bt_6lowpan_init); | ||
1242 | module_exit(bt_6lowpan_exit); | ||
1243 | |||
1244 | MODULE_AUTHOR("Jukka Rissanen <jukka.rissanen@linux.intel.com>"); | ||
1245 | MODULE_DESCRIPTION("Bluetooth 6LoWPAN"); | ||
1246 | MODULE_VERSION(VERSION); | ||
1247 | MODULE_LICENSE("GPL"); | ||
diff --git a/net/bluetooth/Kconfig b/net/bluetooth/Kconfig index 06ec14499ca1..f5afaa22f6ec 100644 --- a/net/bluetooth/Kconfig +++ b/net/bluetooth/Kconfig | |||
@@ -6,7 +6,6 @@ menuconfig BT | |||
6 | tristate "Bluetooth subsystem support" | 6 | tristate "Bluetooth subsystem support" |
7 | depends on NET && !S390 | 7 | depends on NET && !S390 |
8 | depends on RFKILL || !RFKILL | 8 | depends on RFKILL || !RFKILL |
9 | select 6LOWPAN_IPHC if BT_6LOWPAN | ||
10 | select CRC16 | 9 | select CRC16 |
11 | select CRYPTO | 10 | select CRYPTO |
12 | select CRYPTO_BLKCIPHER | 11 | select CRYPTO_BLKCIPHER |
@@ -41,10 +40,11 @@ menuconfig BT | |||
41 | more information, see <http://www.bluez.org/>. | 40 | more information, see <http://www.bluez.org/>. |
42 | 41 | ||
43 | config BT_6LOWPAN | 42 | config BT_6LOWPAN |
44 | bool "Bluetooth 6LoWPAN support" | 43 | tristate "Bluetooth 6LoWPAN support" |
45 | depends on BT && IPV6 | 44 | depends on BT && IPV6 |
45 | select 6LOWPAN_IPHC if BT_6LOWPAN | ||
46 | help | 46 | help |
47 | IPv6 compression over Bluetooth. | 47 | IPv6 compression over Bluetooth Low Energy. |
48 | 48 | ||
49 | source "net/bluetooth/rfcomm/Kconfig" | 49 | source "net/bluetooth/rfcomm/Kconfig" |
50 | 50 | ||
diff --git a/net/bluetooth/Makefile b/net/bluetooth/Makefile index ca51246b1016..886e9aa3ecf1 100644 --- a/net/bluetooth/Makefile +++ b/net/bluetooth/Makefile | |||
@@ -7,10 +7,12 @@ obj-$(CONFIG_BT_RFCOMM) += rfcomm/ | |||
7 | obj-$(CONFIG_BT_BNEP) += bnep/ | 7 | obj-$(CONFIG_BT_BNEP) += bnep/ |
8 | obj-$(CONFIG_BT_CMTP) += cmtp/ | 8 | obj-$(CONFIG_BT_CMTP) += cmtp/ |
9 | obj-$(CONFIG_BT_HIDP) += hidp/ | 9 | obj-$(CONFIG_BT_HIDP) += hidp/ |
10 | obj-$(CONFIG_BT_6LOWPAN) += bluetooth_6lowpan.o | ||
11 | |||
12 | bluetooth_6lowpan-y := 6lowpan.o | ||
10 | 13 | ||
11 | bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \ | 14 | bluetooth-y := af_bluetooth.o hci_core.o hci_conn.o hci_event.o mgmt.o \ |
12 | hci_sock.o hci_sysfs.o l2cap_core.o l2cap_sock.o smp.o sco.o lib.o \ | 15 | hci_sock.o hci_sysfs.o l2cap_core.o l2cap_sock.o smp.o sco.o lib.o \ |
13 | a2mp.o amp.o | 16 | a2mp.o amp.o |
14 | bluetooth-$(CONFIG_BT_6LOWPAN) += 6lowpan.o | ||
15 | 17 | ||
16 | subdir-ccflags-y += -D__CHECK_ENDIAN__ | 18 | subdir-ccflags-y += -D__CHECK_ENDIAN__ |