#10208 NORM 1.0-sof: disable wifi stopped working on XO-1

Zarro Boogs per Child bugtracker at laptop.org
Fri Jul 9 11:58:53 EDT 2010


#10208: disable wifi stopped working on XO-1
------------------------------+---------------------------------------------
           Reporter:  dsd     |       Owner:  dsaxena            
               Type:  defect  |      Status:  new                
           Priority:  normal  |   Milestone:  1.0-software-update
          Component:  kernel  |     Version:  not specified      
         Resolution:          |    Keywords:                     
        Next_action:  code    |    Verified:  0                  
Deployment_affected:          |   Blockedby:                     
           Blocking:          |  
------------------------------+---------------------------------------------
Changes (by pgf):

  * owner:  cjb => dsaxena
  * next_action:  never set => code
  * component:  distro => kernel


Comment:

 there's no linkage between rfkill and the XO-1 libertas driver, so the
 control panel checkbox doesn't do anything at all.  adding this linkage
 wouldn't be difficult -- the olpc_ec_cmd() calls necessary can be found in
 olpc-pm.c, and it's obvious where to put them in olpc-rfkill.c.


 before i realized how easy that would be, i prototyped the following,
 which does essentially the same thing, and which would also work, but i'm
 not recommending it:

 a quick solution would involve removing the rfkill package, and instead
 installing the following emulation script:

 {{{
 #!/bin/sh

 # fake rfkill command.  the XO-1 wireless driver isn't hooked
 # up to rfkill, and there are no other rfkillable devices,
 # so the real command would do no good.

 usage()
 {
         echo "${0##*/} {block|unblock} {wifi|wlan}" >&2
         exit 1
 }

 case $2 in
 wifi|wlan)  ;;
 *)         usage ;;
 esac

 case $1 in
 block)    echo 0 > /sys/power/wlan-enabled ;;
 unblock)  echo 1 > /sys/power/wlan-enabled ;;
 *)        usage ;;
 esac

 }}}

 this would also require either:
 {{{
 chmod a+w /sys/power/wlan-enabled
 }}}
 or
 {{{
 chown olpc:olpc /sys/power/wlan-enabled
 }}}
 probably from olpc-configure.

-- 
Ticket URL: <http://dev.laptop.org/ticket/10208#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list