mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-12-26 23:26:47 +01:00
Prune unused class method
This commit is contained in:
@@ -465,27 +465,6 @@ class HostapdManager
|
||||
return is_array($configs) ? count($configs) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets capabilities for a given IEEE 802.11 mode
|
||||
*
|
||||
* @param string $mode
|
||||
* @return array
|
||||
*/
|
||||
public function getModeCapabilities(string $mode): array
|
||||
{
|
||||
$capabilities = [
|
||||
'a' => ['bands' => ['5'], 'max_width' => 20],
|
||||
'b' => ['bands' => ['2.4'], 'max_width' => 22],
|
||||
'g' => ['bands' => ['2.4'], 'max_width' => 20],
|
||||
'n' => ['bands' => ['2.4', '5'], 'max_width' => 40],
|
||||
'ac' => ['bands' => ['5'], 'max_width' => 160],
|
||||
'ax' => ['bands' => ['2.4', '5', '6'], 'max_width' => 160],
|
||||
'be' => ['bands' => ['2.4', '5', '6'], 'max_width' => 320]
|
||||
];
|
||||
|
||||
return $capabilities[$mode] ?? $capabilities['g'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts channel width from mode settings
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user