upgrade to broadcom wl driver version 4.80.53.0 (from wrt350n release)
[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.019964 seconds and 4 git commands to generate.