Fix the device names too long (#1591)
[openwrt.git] / package / broadcom-wl / src / kmod / bcmutils.c
index c264ea5..7592f23 100644 (file)
@@ -855,3 +855,19 @@ bcm_bprintf(struct bcmstrbuf *b, const char *fmt, ...)
 
        return r;
 }
+
+uint
+bcm_bitcount(uint8 *bitmap, uint length)
+{   
+       uint bitcount = 0, i;
+       uint8 tmp;
+       for (i = 0; i < length; i++) {
+               tmp = bitmap[i];
+               while (tmp) {
+                       bitcount++;
+                       tmp &= (tmp - 1);
+               }
+       }
+       return bitcount;
+}
+
This page took 0.022139 seconds and 4 git commands to generate.