diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-17 03:54:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-17 03:54:33 +0000 |
commit | b27ba9665f13cafe973610dccc4a4193322f8ff3 (patch) | |
tree | 5ad00477caf932c45de10d4e6a317682ecd5d509 /package/broadcom-wl/src/kmod/bcmutils.c | |
parent | 22d0525a1ce97db26cb661929a418dca6bed8c32 (diff) | |
download | upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.tar.gz upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.tar.bz2 upstream-b27ba9665f13cafe973610dccc4a4193322f8ff3.zip |
upgrade to broadcom wl driver version 4.80.53.0 (from wrt350n release)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5546 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/src/kmod/bcmutils.c')
-rw-r--r-- | package/broadcom-wl/src/kmod/bcmutils.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/broadcom-wl/src/kmod/bcmutils.c b/package/broadcom-wl/src/kmod/bcmutils.c index c264ea500b..7592f230ad 100644 --- a/package/broadcom-wl/src/kmod/bcmutils.c +++ b/package/broadcom-wl/src/kmod/bcmutils.c @@ -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; +} + |