]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/batman-adv/main.h
batman-adv: Replace bitarray operations with bitmap
[karo-tx-linux.git] / net / batman-adv / main.h
index 94fa1c2393a6952fdbeeae735110e3033de9a6d9..0a20a19197aa800a22948bbea097ab0824c5757a 100644 (file)
@@ -65,7 +65,7 @@
 
 #define NULL_IFINDEX 0 /* dummy ifindex used to avoid iface checks */
 
-#define NUM_WORDS (TQ_LOCAL_WINDOW_SIZE / WORD_BIT_SIZE)
+#define NUM_WORDS BITS_TO_LONGS(TQ_LOCAL_WINDOW_SIZE)
 
 #define LOG_BUF_LEN 8192         /* has to be a power of 2 */