mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
yang: Lockdown to only allow one station (or scanning) interface per radio
This since this is 99% of the cases wrong config, and crashes on many Wi-Fi chipset.
This commit is contained in:
@@ -99,6 +99,9 @@ submodule infix-if-wifi {
|
||||
must "derived-from-or-self(/iehw:hardware/iehw:component[iehw:name=current()]/iehw:class, 'ih:wifi')" {
|
||||
error-message "Referenced hardware component must be a WiFi radio (class 'ih:wifi')";
|
||||
}
|
||||
must "count(/if:interfaces/if:interface[wifi/radio = current()][not(wifi/access-point)]) <= 1" {
|
||||
error-message "Only one station or scan interface is allowed per radio";
|
||||
}
|
||||
|
||||
description
|
||||
"Reference to parent WiFi radio (PHY).
|
||||
@@ -134,10 +137,6 @@ submodule infix-if-wifi {
|
||||
container station {
|
||||
presence "Configure WiFi station (client) mode";
|
||||
|
||||
must "count(/if:interfaces/if:interface[wifi/radio = current()/../radio][wifi/station]) <= 1" {
|
||||
error-message "Only one station interface is allowed per radio";
|
||||
}
|
||||
|
||||
description
|
||||
"WiFi Station mode configuration.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user