Fix typo when checking for multiple antennas

This check can fail if the rssi manager is started early but the daemon will
be restarted.
This commit is contained in:
Tim Wilkinson 2022-02-23 15:33:45 -08:00 committed by Joe AE6XE
parent 149b698d31
commit 2d3e9a86b3
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ end
local wifiiface = get_ifname("wifi") local wifiiface = get_ifname("wifi")
local multiple_ant = false local multiple_ant = false
if read_all("sys/kernel/debug/ieee80211/" .. iwinfo.nl80211.phyname(wifiiface) .. "/ath9k/tx_chainmask"):chomp() ~= "1" then if read_all("/sys/kernel/debug/ieee80211/" .. iwinfo.nl80211.phyname(wifiiface) .. "/ath9k/tx_chainmask"):chomp() ~= "1" then
multiple_ant = true multiple_ant = true
end end