#4637 BLOC Update.: OFW networking broken in Q2D03

Zarro Boogs per Child bugtracker at laptop.org
Mon Nov 5 20:11:23 EST 2007


#4637: OFW networking broken in Q2D03
----------------------------------+-----------------------------------------
  Reporter:  wmb at firmworks.com    |       Owner:  wmb at firmworks.com
      Type:  defect               |      Status:  new              
  Priority:  blocker              |   Milestone:  Update.1         
 Component:  ofw - open firmware  |     Version:                   
Resolution:                       |    Keywords:                   
  Verified:  0                    |  
----------------------------------+-----------------------------------------

Comment(by wmb at firmworks.com):

 Aha!

 The OFW driver gets the MAC address from the wireless module immediately
 after downloading the Libertas firmware.

 In the working case, the Libertas FW returns the correct MAC address
 immediately.
 In the failing case, the Libertas FW returns a wrong MAC address, but if
 you delay about 40 mS before asking for the MAC address, you get the
 correct one.

 The sequence is:
 {{{
  a) Download the firmware using some number of bulk-out USB transactions
  b) Wait for the command response packet that the Libertas FW sends to
 signify download completion
  c) Get the MAC address using CMD_802_11_MAC_ADDRESS
 }}}

 The delay goes between (b) and (c).  40 mS generally work.  32 mS
 sometimes works and sometimes doesn't.

 I could work around the problem by inserting a delay in the driver code,
 but that would not be a robust solution, since I have no assurance that
 any particular delay value would continue to work.

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



More information about the Bugs mailing list