mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Amend allowed frequencies condition for < 5500 MHz
This commit is contained in:
parent
2abe94b796
commit
0751fc7ba4
@ -60,12 +60,13 @@ class IwParser
|
|||||||
$allowed = [100, 108, 116, 124, 132, 140, 149, 157, 184, 192];
|
$allowed = [100, 108, 116, 124, 132, 140, 149, 157, 184, 192];
|
||||||
|
|
||||||
foreach ($matches as $match) {
|
foreach ($matches as $match) {
|
||||||
if ( (int)$match[1] >= 5500 && in_array((int)$match[2],$allowed) ) {
|
$frequency = [
|
||||||
$frequency = [
|
'MHz' => (int)$match[1],
|
||||||
'MHz' => (int)$match[1],
|
'Channel' => (int)$match[2],
|
||||||
'Channel' => (int)$match[2],
|
'dBm' => (float)$match[3],
|
||||||
'dBm' => (float)$match[3],
|
];
|
||||||
];
|
if ( ($frequency['MHz'] >= 5500 && in_array($frequency['Channel'], $allowed))
|
||||||
|
|| $frequency['MHz'] < 5500 ) {
|
||||||
$supportedFrequencies[] = $frequency;
|
$supportedFrequencies[] = $frequency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user