[Trac #1019] setting the WiFi channel fails intermittently

Zarro Boogs per Child bugtracker at laptop.org
Thu Mar 8 13:32:11 EST 2007


#1019: setting the WiFi channel fails intermittently
----------------------+-----------------------------------------------------
 Reporter:  mbletsas  |       Owner:  rchokshi 
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  Untriaged
Component:  distro    |    Keywords:           
----------------------+-----------------------------------------------------
 Setting the channel on the wireless adapter fails intermittently.
 We are using the following code to initialize the mesh interface:


 {{{
 # configure mesh interface
 # pick an IP

 MAC=`/sbin/ifconfig -a | grep msh0 | awk '{print $5}'`
 byte4=${MAC:9:2}
 byte5=${MAC:12:2}
 byte6=${MAC:15:2}
 ifconfig msh0 10.$((0x$byte4)).$((0x$byte5)).$((0x$byte6))
 iwconfig msh0 mode ad-hoc
 sleep 2
 iwconfig msh0 channel 11
 iwconfig msh0 essid olpc-mesh-$((0x$byte4)).$((0x$byte5)).$((0x$byte6))

 }}}


 Occasionally (example: rebooting all 14 machines in my testbed will have
 at least one   instance of this) this code will fail to set the channel:

 {{{
 [root at mshy14 ~]# iwconfig msh0 channel 1
 Error for wireless request "Set Frequency" (8B04) :
     SET failed on device msh0 ; Operation not supported.

 }}}


 In this case msh0 will come up at channel 6

 M.

-- 
Ticket URL: <http://dev.laptop.org/ticket/1019>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list