Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to setup Marvell 88w8686 SDIO wifi

3,048 bytes added, 14:11, 17 June 2010
no edit summary
round-trip min/avg/max = 16.327/16.327/16.327 ms
</pre>
 
== How to debug the libertas driver ==
 
From: http://wiki.laptop.org/go/Libertas_Debug
 
To enable debug on the wireless (libertas) driver you may write to the libertas_debug '/sys' file:
echo <i>LBS_DEBUG_FLAGS</i> > /sys/module/libertas/parameters/libertas_debug
 
You can calculate the value for <i>LBS_DEBUG_FLAGS</i> using the table bellow (just add up the values for the flags you want to activate).
 
<table border="1" cellpadding="2" cellspacing="2">
<tr><th>Debug Flag Name</th><th>Flag Hex value</th><th>Description(*)</th></tr>
<tr><td>LBS_DEB_ENTER</td><td>0x00000001<td>function entrance</td>
<tr><td>LBS_DEB_LEAVE</td><td>0x00000002<td>function exit</td></tr>
<tr><td>LBS_DEB_MAIN</td><td>0x00000004<td>main libertas library code</td></tr>
<tr><td>LBS_DEB_NET</td><td>0x00000008<td>interaction with network subsystem</td></tr>
<tr><td>LBS_DEB_MESH</td><td>0x00000010<td>wireless mesh network</td></tr>
<tr><td>LBS_DEB_WEXT</td><td>0x00000020<td>interaction with wireless extensions</td></tr>
<tr><td>LBS_DEB_IOCTL</td><td>0x00000040<td>misc IOCTLs</td></tr>
<tr><td>LBS_DEB_SCAN</td><td>0x00000080<td>scanning for APs</td></tr>
<tr><td>LBS_DEB_ASSOC</td><td>0x00000100<td>associating ton an AP</td></tr>
<tr><td>LBS_DEB_JOIN</td><td>0x00000200<td>joining an IBSS?</td></tr>
<tr><td>LBS_DEB_11D</td><td>0x00000400<td>802.11d country settings</td></tr>
<tr><td>LBS_DEB_DEBUGFS</td><td>0x00000800<td>interaction with the debugfs subsystem</td></tr>
<tr><td>LBS_DEB_ETHTOOL</td><td>0x00001000<td>interaction with ethtool subsystem</td></tr>
<tr><td>LBS_DEB_HOST</td><td>0x00002000<td>communication between host and wlan chip</td></tr>
<tr><td>LBS_DEB_CMD</td><td>0x00004000<td>command and response processing</td></tr>
<tr><td>LBS_DEB_RX</td><td>0x00008000<td>packet reception</td></tr>
<tr><td>LBS_DEB_TX</td><td>0x00010000<td>packet transmission</td></tr>
<tr><td>LBS_DEB_USB</td><td>0x00020000<td>interaction with USB subsystem</td></tr>
<tr><td>LBS_DEB_CS</td><td>0x00040000<td>interaction with card services subsystem</td></tr>
<tr><td>LBS_DEB_FW</td><td>0x00080000<td>firmware downloading</td></tr>
<tr><td>LBS_DEB_THREAD</td><td>0x00100000<td>main libertas worker thread</td></tr>
<tr><td>LBS_DEB_HEX</td><td>0x00200000<td>turn on detailed hex dumps</td></tr>
<tr><td>LBS_DEB_SDIO</td><td>0x00400000<td>interaction with SDIO subsystem</td></tr>
<tr><td colspan=3>(*) Description taken from [http://git.infradead.org/?p=users/schurig/libertas-tools.git;a=blob_plain;f=lbsdebug/lbsdebug.c;hb=master lbsdebug.c] (by Holger Schurig)</td></tr>
</table>
 
 
Example:<br>
To activate scanning (LBS_DEB_SCAN), associating (LBS_DEB_ASSOC), command (LBS_DEB_CMD) and host (LBS_DEB_HOST):
echo 0x6180 > /sys/module/libertas/parameters/libertas_debug
 
The output will be post to the kernel ring buffer. You can display it with the dmesg command:
dmesg
 
You can also use the lbsdebug tool, from Holger Shurig, git tree available [http://git.infradead.org/?p=users/schurig/libertas-tools.git;a=blob_plain;f=lbsdebug/lbsdebug.c;hb=master here].
 
 
[[Category:How to forge|Wireless]]
0
edits