aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-02-07 17:08:52 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-02-14 15:27:36 -0500
commit642745184f82688eb3ef0cdfaa4ba632055be9af (patch)
tree481319e39ccd971d770d88e48507469aad4adc87 /net/bluetooth/l2cap_core.c
parentc4c896e1471aec3b004a693c689f60be3b17ac86 (diff)
Bluetooth: Merge L2CAP and SCO modules into bluetooth.ko
Actually doesn't make sense have these modules built separately. The L2CAP layer is needed by almost all Bluetooth protocols and profiles. There isn't any real use case without having L2CAP loaded. SCO is only essential for Audio transfers, but it is so small that we can have it loaded always in bluetooth.ko without problems. If you really doesn't want it you can disable SCO in the kernel config. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index ba7f9da68998..6f054d906c6f 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -55,8 +55,6 @@
55#include <net/bluetooth/hci_core.h> 55#include <net/bluetooth/hci_core.h>
56#include <net/bluetooth/l2cap.h> 56#include <net/bluetooth/l2cap.h>
57 57
58#define VERSION "2.15"
59
60int disable_ertm; 58int disable_ertm;
61 59
62static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN; 60static u32 l2cap_feat_mask = L2CAP_FEAT_FIXED_CHAN;
@@ -3806,7 +3804,7 @@ static struct hci_proto l2cap_hci_proto = {
3806 .recv_acldata = l2cap_recv_acldata 3804 .recv_acldata = l2cap_recv_acldata
3807}; 3805};
3808 3806
3809static int __init l2cap_init(void) 3807int __init l2cap_init(void)
3810{ 3808{
3811 int err; 3809 int err;
3812 3810
@@ -3834,7 +3832,6 @@ static int __init l2cap_init(void)
3834 BT_ERR("Failed to create L2CAP debug file"); 3832 BT_ERR("Failed to create L2CAP debug file");
3835 } 3833 }
3836 3834
3837 BT_INFO("L2CAP ver %s", VERSION);
3838 BT_INFO("L2CAP socket layer initialized"); 3835 BT_INFO("L2CAP socket layer initialized");
3839 3836
3840 return 0; 3837 return 0;
@@ -3845,7 +3842,7 @@ error:
3845 return err; 3842 return err;
3846} 3843}
3847 3844
3848static void __exit l2cap_exit(void) 3845void l2cap_exit(void)
3849{ 3846{
3850 debugfs_remove(l2cap_debugfs); 3847 debugfs_remove(l2cap_debugfs);
3851 3848
@@ -3866,14 +3863,5 @@ void l2cap_load(void)
3866} 3863}
3867EXPORT_SYMBOL(l2cap_load); 3864EXPORT_SYMBOL(l2cap_load);
3868 3865
3869module_init(l2cap_init);
3870module_exit(l2cap_exit);
3871
3872module_param(disable_ertm, bool, 0644); 3866module_param(disable_ertm, bool, 0644);
3873MODULE_PARM_DESC(disable_ertm, "Disable enhanced retransmission mode"); 3867MODULE_PARM_DESC(disable_ertm, "Disable enhanced retransmission mode");
3874
3875MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
3876MODULE_DESCRIPTION("Bluetooth L2CAP ver " VERSION);
3877MODULE_VERSION(VERSION);
3878MODULE_LICENSE("GPL");
3879MODULE_ALIAS("bt-proto-0");