From: Jonathan McDowell <noodles@earth.li>
commit49175bf6f6f5945262a6222ec4acb8ab20d9457e
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 11 Nov 2008 22:06:55 +0000 (11 20:06 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 22 Nov 2008 21:22:22 +0000 (22 19:22 -0200)
treef85f11445aa06bb7917a24a15e535366065f1f1d
parentb918413cae2bc5152fe856c88ef609d04497c6ee
From: Jonathan McDowell <noodles@earth.li>
Date: Thu, 30 Oct 2008 22:46:48 +0000

rfkill: Fix logic error in rfkill_check_duplicity

> I'll have a prod at why the [hso] rfkill stuff isn't working next

Ok, I believe this is due to the addition of rfkill_check_duplicity in
rfkill and the fact that test_bit actually returns a negative value
rather than the postive one expected (which is of course equally true).
So when the second WLAN device (the hso device, with the EEE PC WLAN
being the first) comes along rfkill_check_duplicity returns a negative
value and so rfkill_register returns an error. Patch below fixes this
for me.

Signed-Off-By: Jonathan McDowell <noodles@earth.li>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
net/rfkill/rfkill.c