]> git.baikalelectronics.ru Git - kernel.git/commit
wl12xx: fix passive and radar channel generation for scheduled scan
authorLuciano Coelho <coelho@ti.com>
Fri, 27 May 2011 12:34:45 +0000 (15:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 May 2011 18:47:24 +0000 (14:47 -0400)
commite1f99601641b4d27cf57a5528c84ef56e3394483
tree3c52564a8c92cb75c0b9fa49a91809412c1bdaeb
parentcab419fc28afd8ada6295ee92123cfe13362d875
wl12xx: fix passive and radar channel generation for scheduled scan

We were comparing bitwise AND results with a boolean, so when the
boolean was set to true, it was not matching as it should.

Fix this by booleanizing the bitwise AND results with !!.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl12xx/scan.c