wl12xx: use a bitmask instead of list of booleans in scanned_ch
authorLuciano Coelho <coelho@ti.com>
Mon, 21 Mar 2011 21:16:14 +0000 (23:16 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 19 Apr 2011 13:49:12 +0000 (16:49 +0300)
commit4a31c11c7d8c482598754a577a8fb71abb61ffa0
treec43a18ce0e9ee6bc54dc3dcda83b2e6e3ae85438
parent4623ec7d97afaf7a8489036e2c2e71e8349716b4
wl12xx: use a bitmask instead of list of booleans in scanned_ch

We were using an array of booleans to mark the channels we had already
scanned.  This was causing a sparse error, because bool is not a type
with defined size.  To fix this, use bitmasks instead, which is much
cleaner anyway.

Thanks Johannes Berg for the idea.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c
drivers/net/wireless/wl12xx/scan.c
drivers/net/wireless/wl12xx/wl12xx.h