Opennet Firmware
radar_pulse_debug.patch
gehe zur Dokumentation dieser Datei
1 Feingranularere Debug-Flags fuer DFS-Meldungen in ath9k
2 
3 bisher:
4 saemtliche DFS-Meldungen werden ueber Bitmaske 0x10000 aktiviert
5 
6 jetzt:
7 Bitmaske 0x00010000 aktiviert alle DFS-Meldungen ausser den Meldungen fuer einzelne Pulse
8 Bitmaske 0x10000000 aktiviert DFS-Puls-Meldungen
9 
10 also z.B.
11 
12 echo 0x10400 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug (nur "RADAR found"-Meldungen)
13 echo 0x10010400 > /sys/kernel/debug/ieee80211/phy0/ath9k/debug (alle Meldungen, auch Pulse)
14 
15 Autor: Till
16 
17 Index: on_firmware/openwrt/package/kernel/mac80211/patches/ath/499_radar_pulse_debug.patch
18 ===================================================================
19 --- /dev/null
20 +++ on_firmware/openwrt/package/kernel/mac80211/patches/ath/499_radar_pulse_debug.patch
21 @@ -0,0 +1,37 @@
22 +--- a/drivers/net/wireless/ath/ath9k/dfs.c
23 ++++ b/drivers/net/wireless/ath/ath9k/dfs.c
24 +@@ -301,7 +301,7 @@
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",
31 + rs->rs_phyerr);
32 + DFS_STAT_INC(sc, pulses_no_dfs);
33 +@@ -345,7 +345,7 @@
34 + pe.chirp = false;
35 + }
36 +
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
44 +@@ -249,6 +249,7 @@
45 + * used exclusively for WLAN-BT coexistence starting from
46 + * AR9462.
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
52 +@@ -282,6 +283,7 @@
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
58 + };