hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Thu Aug 23 09:44:42 PDT 2007


 tools/linux/hal-ipw-killswitch-linux.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree c940b3cb8e6951e4e8d94fc5661dfc8982860bfa (from 455004a6e503cc0cbf995ab182014850848b551b)
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Thu Aug 23 18:44:08 2007 +0200

    fix hal-ipw-killswitch-linux to return status of killswitch
    
    Fixed hal-ipw-killswitch-linux to return the status of the killswitch
    and not the status of WLAN/radio. It returns now 0 if the killswitch
    is not active and 1 if the switch is activated and WLAN is off.

diff --git a/tools/linux/hal-ipw-killswitch-linux.c b/tools/linux/hal-ipw-killswitch-linux.c
index 811f767..5376810 100644
--- a/tools/linux/hal-ipw-killswitch-linux.c
+++ b/tools/linux/hal-ipw-killswitch-linux.c
@@ -87,12 +87,12 @@ int main(int argc,char** argv) {
 
 			switch(kill_status) {
 				case '0':
-					ret =  1;
+					ret = 0;
 				break;
 				case '1':
 				case '2':
 				case '3':
-					ret = 0;
+					ret = 1;
 				break;
 			}
 


More information about the hal-commit mailing list