netdev
[Top] [All Lists]

[PATCH] fix module netproto alias for bluetooth

To: Maxim Krasnyansky <maxk@xxxxxxxxxxxx>, Rusty Russell <rusty@xxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxx>
Subject: [PATCH] fix module netproto alias for bluetooth
From: Stephen Hemminger <shemminger@xxxxxxxx>
Date: Wed, 10 Dec 2003 15:58:36 -0800
Cc: netdev@xxxxxxxxxxx
Organization: Open Source Development Lab
Sender: netdev-bounce@xxxxxxxxxxx
In 2.6.0-test11 the net-pf-31 alias gets associated with the bnep module
rather than the bluetooth module that actually handles the protocol.
It is mostly works because bnep depends on bluetooth so it gets loaded.

diff -Nru a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c
--- a/net/bluetooth/af_bluetooth.c      Wed Dec 10 15:55:50 2003
+++ b/net/bluetooth/af_bluetooth.c      Wed Dec 10 15:55:50 2003
@@ -361,3 +361,4 @@
 MODULE_AUTHOR("Maxim Krasnyansky <maxk@xxxxxxxxxxxx>");
 MODULE_DESCRIPTION("Bluetooth Core ver " VERSION);
 MODULE_LICENSE("GPL");
+MODULE_ALIAS_NETPROTO(PF_BLUETOOTH);
diff -Nru a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c
--- a/net/bluetooth/bnep/core.c Wed Dec 10 15:55:50 2003
+++ b/net/bluetooth/bnep/core.c Wed Dec 10 15:55:50 2003
@@ -707,4 +707,3 @@
 MODULE_DESCRIPTION("Bluetooth BNEP ver " VERSION);
 MODULE_AUTHOR("David Libault <david.libault@xxxxxxxxxxx>, Maxim Krasnyanskiy 
<maxk@xxxxxxxxxxxx>");
 MODULE_LICENSE("GPL");
-MODULE_ALIAS_NETPROTO(PF_BLUETOOTH);

<Prev in Thread] Current Thread [Next in Thread>