SWRU575 December   2020 WL1801MOD , WL1805MOD , WL1807MOD , WL1831MOD , WL1835MOD , WL1837MOD

 

  1.   Trademarks
  2. 1Acquire WL18xx Firmware Version
  3. 2Enable wlcore Driver Kernel Message
    1. 2.1 Debug Parameter Options
    2. 2.2 Activation of Debug Printout
    3. 2.3 Additional Examples to Enable Debug Message Groups
  4. 3Enable Dynamic Debug for wl18xx, mac80211, cfg80211
    1. 3.1 Checking for the Dynamic Debug Compile Switch
    2. 3.2 Enabling Dynamic Debug
  5. 4Enabling and Disabling WiLink8 Features
    1. 4.1 DFS Channel Related Commands
    2. 4.2 Enhanced Low Power Enable/Disable Commands

Activation of Debug Printout

The following sections detail the method to enable dynamic debug message groups within the driver. The following command is used for instructing the kernel to send log messages to the console:

echo 8 > /proc/sys/kernel/printk

To configure debug mode of the driver, write one of the above debug category number to /sys/module/wl12xx/parameters/debug_level file. For example, following command will configures driver to print debug messages related to scanning operation - DEBUG_SCAN.

echo 256 > /sys/module/wlcore/parameters/debug_level

Alternatively, you may enter hex number instead of decimal.

echo 0x100 > /sys/module/wlcore/parameters/debug_level

Table 2-1 shows the output prints when the scan command is executed after starting the STA.

Table 2-1 Typical Debug Output During Scan

root@am335x-evm:~# iw wlan0 scan > /dev/null

[ 3132.079650] wlcore: normal scan role_id 0

[ 3132.083862] wlcore: freq 2467, ch. 012, flags 0x36, power 20, min/max_dwell 25/50, PASSIVE

[ 3132.092529] wlcore: freq 2472, ch. 013, flags 0x36, power 20, min/max_dwell 25/50, PASSIVE

[ 3132.101165] wlcore: freq 2484, ch. 014, flags 0x36, power 20, min/max_dwell 25/50, PASSIVE

[ 3132.109802] wlcore: freq 2412, ch. 001, flags 0x20, power 20, min/max_dwell 25/50

[ 3132.117614] wlcore: freq 2417, ch. 002, flags 0x20, power 20, min/max_dwell 25/50

[ 3132.125427] wlcore: freq 2422, ch. 003, flags 0x20, power 20, min/max_dwell 25/50

[ 3132.133239] wlcore: freq 2427, ch. 004, flags 0x20, power 20, min/max_dwell 25/50

[ 3132.141052] wlcore: freq 2432, ch. 005, flags 0x00, power 20, min/max_dwell 25/50

[ 3132.148864] wlcore: freq 2437, ch. 006, flags 0x00, power 20, min/max_dwell 25/50

[ 3132.156677] wlcore: freq 2442, ch. 007, flags 0x00, power 20, min/max_dwell 25/50

[ 3132.164489] wlcore: freq 2447, ch. 008, flags 0x10, power 20, min/max_dwell 25/50

[ 3132.172332] wlcore: freq 2452, ch. 009, flags 0x10, power 20, min/max_dwell 25/50

[ 3132.180145] wlcore: freq 2457, ch. 010, flags 0x10, power 20, min/max_dwell 25/50

[ 3132.187957] wlcore: freq 2462, ch. 011, flags 0x10, power 20, min/max_dwell 25/50

[ 3132.195770] wlcore: 2.4GHz: active 11 passive 3

[ 3132.200866] wlcore: 5GHz: active 0 passive 0

[ 3132.205688] wlcore: DFS: 0

[ 3132.208862] wlcore: build probe request band 0.