From: Jonathan McDowell <noodles@earth.li>
commit72ee2b9935e06fa562334ddbc43ce236a1f724ea
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 24 Mar 2009 06:53:15 +0000 (24 03:53 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 24 Mar 2009 06:53:15 +0000 (24 03:53 -0300)
treeca5fb3835762bc262ac44a36c3c0dd7494092d09
parente9cb33222c39291d3de10e9bd1dbb6375a9b0a63
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