#7690 NORM 8.2.0 (: msh0 device does not come back up (nor NM/Sugar notified once it does) after power cycling radio via /sys/power/wlan_enabled

Zarro Boogs per Child bugtracker at laptop.org
Tue Aug 26 22:36:16 EDT 2008


#7690: msh0 device does not come back up (nor NM/Sugar notified once it does)
after power cycling radio via /sys/power/wlan_enabled
----------------------------+-----------------------------------------------
   Reporter:  mtd           |       Owner:                                   
       Type:  defect        |      Status:  new                              
   Priority:  normal        |   Milestone:  8.2.0 (was Update.2)             
  Component:  not assigned  |     Version:  Development build as of this date
 Resolution:                |    Keywords:  blocks?:8.2.0                    
Next_action:  diagnose      |    Verified:  0                                
  Blockedby:  7740          |    Blocking:  7879                             
----------------------------+-----------------------------------------------

Comment(by jcardona):

 The notification path for new network interfaces is as follows:

 register_netdev (driver) -> udev (userspace) -> hald -> d-bus ->
 NetworkManager

 I verified that the ''add msh0'' notification is seen by udev, but it is
 not passed on to hald.
 I later found the following rule:

 '''/etc/udev/rules.d/10-olpc-netif.rules:'''
 {{{
 SUBSYSTEM=="net", KERNEL=="msh*", OPTIONS="last_rule"
 }}}

 This intercepts the event before it is sent to hald.

 The test script below will pass if the above rule is commented out.

 {{{
 # Test for ticket #7690

 ret=PASS

 echo 0 > /sys/power/wlan-enabled
 killall NetworkManager
 killall udevd
 /etc/init.d/haldaemon restart

 udevd --debug &> udevd.log &

 echo 1 > /sys/power/wlan-enabled

 sleep 3

 lshal | grep msh0 || ret=FAIL
 lshal | grep eth0 || ret=FAIL

 echo $ret
 }}}

 Can anyone provide more info on the original purpose of this rule?  Can it
 be removed?

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


More information about the Bugs mailing list