Skip to content
Snippets Groups Projects
Commit 9c2ecb49 authored by Stefan Laudemann's avatar Stefan Laudemann
Browse files

Extends ffpb-debug to include additional WiFi debug data.

Due to the WiFi blackout problem with ath9k devices, gluon devs request additional
debugging data from the ath9k debugfs [1]. We follow this advice and try to fetch even
more data from the debugfs for ffpb-debug.

[1] https://github.com/freifunk-gluon/gluon/issues/130
parent 88def3bc
No related branches found
No related tags found
1 merge request!2Wifi Blackout Workaround (Extension of ffpb-debug)
#!/bin/sh
ATH9K_DEBUGFS_DIR="/sys/kernel/debug/ieee80211/phy0/ath9k"
local=false
while getopts l opt
do
......@@ -19,6 +21,8 @@ sysinfo() {
uname -n
echo -en "Gluon Release = "
cat /lib/gluon/release
echo -en "Node Model = "
cat /tmp/sysinfo/model
echo -en "Uptime = "
uptime
echo -en "Timestamp = "
......@@ -32,6 +36,13 @@ cmd() {
echo
}
read() {
echo "--- START OF FILE CONTENT ($*) ---"
/bin/cat "$@"
echo "--- END OF FILE CONTENT ($*) ---"
echo
}
cmd sysinfo
cmd ip addr show
cmd ip route show
......@@ -39,6 +50,23 @@ cmd iw phy phy0 info
cmd iw dev wlan0 info
cmd iw dev wlan0 station dump
cmd iw dev wlan0-1 station dump
cmd /usr/bin/iwinfo phy0 scan
cmd /usr/bin/iwinfo wlan0 info
cmd /usr/bin/iwinfo wlan0-1 info
cmd /usr/bin/iwinfo wlan0 assoclist
cmd /usr/bin/iwinfo wlan0-1 assoclist
if [ -d $ATH9K_DEBUGFS_DIR ] ; then
# data required for gluon "wifi blackout" bug-reports as requested in
# https://github.com/freifunk-gluon/gluon/issues/130
for filename in reset queues interrupt ; do
read "${ATH9K_DEBUGFS_DIR}/${filename}"
done
sleep 10 && read "${ATH9K_DEBUGFS_DIR}/interrupt"
# ... and some additional debug data
for filename in ani base_eeprom dma dump_nfcal misc modal_eeprom phy_err recv xmit ; do
read "${ATH9K_DEBUGFS_DIR}/${filename}"
done
fi
cmd batctl gwl
cmd batctl tl
killall -USR1 fastd 2>/dev/null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment