network-interfaces: use enum
This commit is contained in:
parent
4a600b0437
commit
0ebc5ec7cb
@ -782,13 +782,12 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
type = mkOption {
|
type = mkOption {
|
||||||
type = types.string;
|
type = types.enum [ "managed" "ibss" "monitor" "mesh" "wds" ];
|
||||||
default = "managed";
|
default = "managed";
|
||||||
example = "ibss";
|
example = "ibss";
|
||||||
description = ''
|
description = ''
|
||||||
The type of the WLAN interface. The type has to be either <literal>managed</literal>,
|
The type of the WLAN interface.
|
||||||
<literal>ibss</literal>, <literal>monitor</literal>, <literal>mesh</literal> or <literal>wds</literal>.
|
The type has to be supported by the underlying hardware of the device.
|
||||||
Also, the type has to be supported by the underlying hardware of the device.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -799,17 +798,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
flags = mkOption {
|
flags = mkOption {
|
||||||
type = types.nullOr types.string;
|
type = with types; nullOr (enum [ "none" "fcsfail" "control" "otherbss" "cook" "active" ]);
|
||||||
default = null;
|
default = null;
|
||||||
example = "control";
|
example = "control";
|
||||||
description = ''
|
description = ''
|
||||||
Flags for interface of type <literal>monitor</literal>. The valid flags are:
|
Flags for interface of type <literal>monitor</literal>.
|
||||||
none: no special flags
|
|
||||||
fcsfail: show frames with FCS errors
|
|
||||||
control: show control frames
|
|
||||||
otherbss: show frames from other BSSes
|
|
||||||
cook: use cooked mode
|
|
||||||
active: use active mode (ACK incoming unicast packets)
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user