mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 15:40:22 +00:00
14 lines
336 B
PHP
14 lines
336 B
PHP
<?php
|
|
|
|
require '../../includes/csrf.php';
|
|
require '../../src/RaspAP/Parsers/IwParser.php';
|
|
|
|
if (isset($_POST['interface'])) {
|
|
|
|
$iface = escapeshellcmd($_POST['interface']);
|
|
$parser = new \RaspAP\Parsers\IwParser($iface);
|
|
$supportedFrequencies = $parser->parseIwInfo($iface);
|
|
|
|
echo json_encode($supportedFrequencies);
|
|
}
|
|
|