This commit is contained in:
Albert Stefanov 2023-10-28 19:38:39 +03:00
parent 2783f9995b
commit c3a6bf4d8d
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ do
# The noise is represented as an unsigned byte, we need a signed one. Thus, we subtract 2**7.
noise="$(expr $(echo "$output" | awk -F ': ' '/noise:/{ print $2 }') - 256)"
client_count="$(iw dev $interface station dump | wc -l)"
phy="$(echo "$interface" | awk -F '-' '//{print $1 }')"
client_count="$(ls /sys/kernel/debug/ieee80211/$phy/netdev:$interface/stations/ | wc -l)"
# We calculate the deltas to use for alarms locally; fields are u64
delta_ch_time=$(expr $(expr $ch_time - $ch_time_old) % 18446744073709551616)