]> rtime.felk.cvut.cz Git - socketcan-devel.git/commitdiff
bug fix: meaning of CONFIG_CAN_RAW_USER and CONFIG_CAN_BCM_USER were negated.
authorthuermann <thuermann@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 28 Nov 2006 09:45:23 +0000 (09:45 +0000)
committerthuermann <thuermann@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 28 Nov 2006 09:45:23 +0000 (09:45 +0000)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@107 030b6a49-0b11-0410-94ab-b0dab22257f2

kernel/2.6/net/can/bcm.c
kernel/2.6/net/can/raw.c

index 004d1bb2d507dee22a0b0dc271e869bbec644e44..e27441506d004c5073840a870a7834faa6f1fd52 100644 (file)
@@ -170,9 +170,9 @@ static struct proto_ops bcm_ops = {
 };
 
 #ifdef CONFIG_CAN_BCM_USER
-#define BCM_CAP CAP_NET_RAW
-#else
 #define BCM_CAP (-1)
+#else
+#define BCM_CAP CAP_NET_RAW
 #endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
index 0776d1f66e1dbbb84017fc3dc96e18861ac88bdd..c0d7ec39965cf6f1e8766ff5522350fd2eeb8138 100644 (file)
@@ -146,9 +146,9 @@ struct raw_opt {
 };
 
 #ifdef CONFIG_CAN_RAW_USER
-#define RAW_CAP CAP_NET_RAW
-#else
 #define RAW_CAP (-1)
+#else
+#define RAW_CAP CAP_NET_RAW
 #endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)