Questions on libertas driver

Holger Schurig hs4233 at mail.mn-solutions.de
Mon Jan 28 11:22:36 EST 2008


> I become crazy !! :)

You should start a new thread :-)


> Any idea ?

Maybe you can use arm-linux-objdump to map

 RETX: <0x00750b9a> { :libertas:_lbs_scan_networks + 0x6e }
 RETS: <0x007514de> { :libertas:_lbs_scan_networks + 0x9b2 }
 PC  : <0x00750b9a> { :libertas:_lbs_scan_networks + 0x6e }

to line numbers. If not, then pepper lbs_scan_networks with

   printk(##CH %s:%d\n", __FUNCTION__, __LINE__)

statements before/after/inside all relevant areas. E.g. change
things like

        if (priv->scan_channel > 0) {
                curr_chans += priv->scan_channel;
                chan_count -= priv->scan_channel;
        }

to

        printk(##CH %s:%d\n", __FUNCTION__, __LINE__)
        if (priv->scan_channel > 0) {
                printk(##CH %s:%d\n", __FUNCTION__, __LINE__)
                curr_chans += priv->scan_channel;
                chan_count -= priv->scan_channel;
        }
        printk(##CH %s:%d\n", __FUNCTION__, __LINE__)

That way you can follow the code-flow exactly.



Also note that I didn't ACK one of Ihar's patches because it
triggered warnings in both gcc and sparse. Maybe you can re-write 
the patch without warnings.



I'll go home soon, but tomorrow you might want to join #libertas 
on irc.freenode.org (or one of it's servers, see 
http://freenode.net/irc_servers.shtml). I'm "schurig" there. I'm 
in Germany, so you and I should have similar daylight hours :-)



More information about the libertas-dev mailing list