1Feingranularere Debug-Flags fuer DFS-Meldungen in ath9k
4saemtliche DFS-Meldungen werden ueber Bitmaske 0x10000 aktiviert
7Bitmaske 0x00010000 aktiviert alle DFS-Meldungen ausser den Meldungen fuer einzelne Pulse
8Bitmaske 0x10000000 aktiviert DFS-Puls-Meldungen
12echo 0x10400 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug (nur "RADAR found"-Meldungen)
13echo 0x10010400 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug (alle Meldungen, auch Pulse)
17Index: on_firmware/openwrt/package/kernel/mac80211/patches/ath/499_radar_pulse_debug.patch
18===================================================================
20+++ on_firmware/openwrt/package/kernel/mac80211/patches/ath/499_radar_pulse_debug.patch
22+--- a/drivers/net/wireless/ath/ath9k/dfs.c
23++++ b/drivers/net/wireless/ath/ath9k/dfs.c
25+ DFS_STAT_INC(sc, pulses_total);
26+ if ((rs->rs_phyerr != ATH9K_PHYERR_RADAR) &&
27+ (rs->rs_phyerr != ATH9K_PHYERR_FALSE_RADAR_EXT)) {
28+- ath_dbg(common, DFS,
29++ ath_dbg(common, DFS_PULSE,
30+ "Error: rs_phyer=0x%x not a radar error\n",
32+ DFS_STAT_INC(sc, pulses_no_dfs);
37+- ath_dbg(common, DFS,
38++ ath_dbg(common, DFS_PULSE,
39+ "ath9k_dfs_process_phyerr: type=%d, freq=%d, ts=%llu, "
40+ "width=%d, rssi=%d, delta_ts=%llu\n",
41+ ard.pulse_bw_info, pe.freq, pe.ts, pe.width, pe.rssi,
42+--- a/drivers/net/wireless/ath/ath.h
43++++ b/drivers/net/wireless/ath/ath.h
45+ * used exclusively for WLAN-BT coexistence starting from
47+ * @ATH_DBG_DFS: radar datection
48++ * @ATH_DBG_DFS_PULSE: radar detection (messages about single pulses)
49+ * @ATH_DBG_WOW: Wake on Wireless
50+ * @ATH_DBG_DYNACK: dynack handling
51+ * @ATH_DBG_SPECTRAL_SCAN: FFT spectral scan
53+ ATH_DBG_CHAN_CTX = 0x00040000,
54+ ATH_DBG_DYNACK = 0x00080000,
55+ ATH_DBG_SPECTRAL_SCAN = 0x00100000,
56++ ATH_DBG_DFS_PULSE = 0x10000000,
57+ ATH_DBG_ANY = 0xffffffff