mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix disabled radio returning 255, overloading tinyint signed (#15917)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user