SWRU576 January 2021 WL1801MOD , WL1805MOD , WL1807MOD , WL1831MOD , WL1835MOD , WL1837MOD
The following are the script and flow used for operation on DFS channel:
Radar Simulation: There is a debug option to simulate a radar detection on a specific DFS channel: Example:
echo 60 > /sys/kernel/debug/ieee80211/phy0/wlcore/wl18xx/radar_detection
Changing Non-Occupancy-Period (NOP): To edit the 'NOP' time, load cfg80211 modules with the desired parameters: dfs_nop_time_ms - Non Occupying Period in ms, Default is 1,800,000. dfs_cac_time_ms – CAC time in ms, Default is 60,000. Example:
modprobe cfg80211.ko dfs_nop_time_ms=60000 dfs_cac_time_ms=10000
Enable/Disable test mode: Allows testing radar detection without switching channels.
echo 8 > /proc/sys/kernel/printk Disable: echo 0 > /sys/kernel/debug/ieee80211/phy0/wlcore/wl18xx/radar_debug_mode Enable: echo 1 > /sys/kernel/debug/ieee80211/phy0/wlcore/wl18xx/radar_debug_mode