From 6b2be73a335f7f3e635eb85546d4cc69b88f22b9 Mon Sep 17 00:00:00 2001 From: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:06:25 +0200 Subject: [PATCH] fix disabled radio returning 255, overloading tinyint signed (#15917) --- LibreNMS/OS/Vrp.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LibreNMS/OS/Vrp.php b/LibreNMS/OS/Vrp.php index 41e356ecb1..22e1739f2a 100644 --- a/LibreNMS/OS/Vrp.php +++ b/LibreNMS/OS/Vrp.php @@ -184,6 +184,11 @@ class Vrp extends OS implements $numasoclients = $clientPerRadio[$ap_id][$r_id] ?? 0; $radio['hwWlanRadioType'] = $radio['hwWlanRadioType'] ?? 0; + if ($txpow > 127) { + // means the radio is disabled for some reason. + $txpow = 0; + } + $type = 'dot11'; if ($radio['hwWlanRadioType'] & 2) {