fix disabled radio returning 255, overloading tinyint signed (#15917)

This commit is contained in:
PipoCanaja
2024-04-02 14:06:25 +02:00
committed by GitHub
parent 84e11bcdfe
commit 6b2be73a33

View File

@@ -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) {