summaryrefslogtreecommitdiff
path: root/interface-definitions/interfaces_wireless.xml.in
blob: fdcb79b19b3813cd73c9358f3394b00b9c3def22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="interfaces">
    <children>
      <tagNode name="wireless" owner="${vyos_conf_scripts_dir}/interfaces_wireless.py">
        <properties>
          <help>Wireless (WiFi/WLAN) Network Interface</help>
          <priority>318</priority>
          <completionHelp>
            <script>cd /sys/class/net; if compgen -G "wlan*" > /dev/null; then ls -d wlan*; fi</script>
          </completionHelp>
          <constraint>
            <regex>wlan[0-9]+</regex>
          </constraint>
          <constraintErrorMessage>Wireless interface must be named wlanN</constraintErrorMessage>
          <valueHelp>
            <format>wlanN</format>
            <description>Wireless (WiFi/WLAN) interface name</description>
          </valueHelp>
        </properties>
        <children>
          #include <include/interface/address-ipv4-ipv6-dhcp.xml.i>
          <node name="capabilities">
            <properties>
              <help>HT and VHT capabilities for your card</help>
            </properties>
            <children>
              <node name="ht">
                <properties>
                  <help>High Throughput (HT) settings</help>
                </properties>
                <children>
                  <leafNode name="40mhz-incapable">
                    <properties>
                      <help>40MHz intolerance, use 20MHz only!</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="auto-powersave">
                    <properties>
                      <help>Enable WMM-PS unscheduled automatic power save delivery [U-APSD]</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="channel-set-width">
                    <properties>
                      <help>Supported channel set width</help>
                      <completionHelp>
                        <list>ht20 ht40+ ht40-</list>
                      </completionHelp>
                      <valueHelp>
                        <format>ht20</format>
                        <description>Supported channel set width both 20 MHz only</description>
                      </valueHelp>
                      <valueHelp>
                        <format>ht40+</format>
                        <description>Supported channel set width both 20 MHz and 40 MHz with secondary channel above primary channel</description>
                      </valueHelp>
                      <valueHelp>
                        <format>ht40-</format>
                        <description>Supported channel set width both 20 MHz and 40 MHz with secondary channel below primary channel</description>
                      </valueHelp>
                      <constraint>
                        <regex>(ht20|ht40\+|ht40-)</regex>
                      </constraint>
                      <multi/>
                    </properties>
                  </leafNode>
                  <leafNode name="delayed-block-ack">
                    <properties>
                      <help>Enable HT-delayed block ack</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="dsss-cck-40">
                    <properties>
                      <help>Enable DSSS_CCK-40</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="greenfield">
                    <properties>
                      <help>Enable HT-greenfield</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="ldpc">
                    <properties>
                      <help>Enable LDPC coding capability</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="lsig-protection">
                    <properties>
                      <help>Enable L-SIG TXOP protection capability</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="max-amsdu">
                    <properties>
                      <help>Set maximum A-MSDU length</help>
                      <completionHelp>
                        <list>3839 7935</list>
                      </completionHelp>
                      <valueHelp>
                        <format>3839</format>
                        <description>Set maximum A-MSDU length to 3839 octets</description>
                      </valueHelp>
                      <valueHelp>
                        <format>7935</format>
                        <description>Set maximum A-MSDU length to 7935 octets</description>
                      </valueHelp>
                      <constraint>
                        <regex>(3839|7935)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="short-gi">
                    <properties>
                      <help>Short GI capabilities</help>
                      <completionHelp>
                        <list>20 40</list>
                      </completionHelp>
                      <valueHelp>
                        <format>20</format>
                        <description>Short GI for 20 MHz</description>
                      </valueHelp>
                      <valueHelp>
                        <format>40</format>
                        <description>Short GI for 40 MHz</description>
                      </valueHelp>
                      <constraint>
                        <regex>(20|40)</regex>
                      </constraint>
                      <multi/>
                    </properties>
                  </leafNode>
                  <leafNode name="smps">
                    <properties>
                      <help>Spatial Multiplexing Power Save (SMPS) settings</help>
                      <completionHelp>
                        <list>static dynamic</list>
                      </completionHelp>
                      <valueHelp>
                        <format>static</format>
                        <description>STATIC Spatial Multiplexing (SM) Power Save</description>
                      </valueHelp>
                      <valueHelp>
                        <format>dynamic</format>
                        <description>DYNAMIC Spatial Multiplexing (SM) Power Save</description>
                      </valueHelp>
                      <constraint>
                        <regex>(static|dynamic)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                  <node name="stbc">
                    <properties>
                      <help>Support for sending and receiving PPDU using STBC (Space Time Block Coding)</help>
                    </properties>
                    <children>
                      <leafNode name="rx">
                        <properties>
                          <help>Enable receiving PPDU using STBC (Space Time Block Coding)</help>
                          <valueHelp>
                            <format>[1-3]+</format>
                            <description>Number of spacial streams that can use RX STBC</description>
                          </valueHelp>
                          <constraint>
                            <regex>[1-3]+</regex>
                          </constraint>
                          <constraintErrorMessage>Invalid capability item</constraintErrorMessage>
                        </properties>
                      </leafNode>
                      <leafNode name="tx">
                        <properties>
                          <help>Enable sending PPDU using STBC (Space Time Block Coding)</help>
                          <valueless/>
                        </properties>
                      </leafNode>
                    </children>
                  </node>
                </children>
              </node>
              <leafNode name="require-ht">
                <properties>
                  <help>Require stations to support HT PHY</help>
                  <valueless/>
                </properties>
              </leafNode>
              <node name="vht">
                <properties>
                  <help>Very High Throughput (VHT) settings</help>
                </properties>
                <children>
                  <leafNode name="antenna-count">
                    <properties>
                      <help>Number of antennas on this card</help>
                      <valueHelp>
                        <format>u32:1-8</format>
                        <description>Number of antennas for this card</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 1-8"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="antenna-pattern-fixed">
                    <properties>
                      <help>Set if antenna pattern does not change during the lifetime of an association</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="beamform">
                    <properties>
                      <help>VHT beamforming capabilities</help>
                      <completionHelp>
                        <list>single-user-beamformer single-user-beamformee multi-user-beamformer multi-user-beamformee</list>
                      </completionHelp>
                      <valueHelp>
                        <format>single-user-beamformer</format>
                        <description>Support for operation as single user beamformer</description>
                      </valueHelp>
                      <valueHelp>
                        <format>single-user-beamformee</format>
                        <description>Support for operation as single user beamformee</description>
                      </valueHelp>
                      <valueHelp>
                        <format>multi-user-beamformer</format>
                        <description>Support for operation as multi user beamformer</description>
                      </valueHelp>
                      <valueHelp>
                        <format>multi-user-beamformee</format>
                        <description>Support for operation as multi user beamformee</description>
                      </valueHelp>
                      <constraint>
                        <regex>(single-user-beamformer|single-user-beamformee|multi-user-beamformer|multi-user-beamformee)</regex>
                      </constraint>
                      <multi/>
                    </properties>
                  </leafNode>
                  <node name="center-channel-freq">
                    <properties>
                      <help>VHT operating channel center frequency</help>
                    </properties>
                    <children>
                      <leafNode name="freq-1">
                        <properties>
                          <help>VHT operating channel center frequency - center freq 1 (for use with 80, 80+80 and 160 modes)</help>
                          <valueHelp>
                            <format>u32:34-173</format>
                            <description>5Ghz (802.11 a/h/j/n/ac) center channel index (use 42 for primary 80MHz channel 36)</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 34-173"/>
                          </constraint>
                          <constraintErrorMessage>Channel center value must be between 34 and 173</constraintErrorMessage>
                        </properties>
                      </leafNode>
                      <leafNode name="freq-2">
                        <properties>
                          <help>VHT operating channel center frequency - center freq 2 (for use with the 80+80 mode)</help>
                          <valueHelp>
                            <format>u32:34-173</format>
                            <description>5Ghz (802.11 ac) center channel index (use 58 for secondary 80MHz channel 52)</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 34-173"/>
                          </constraint>
                          <constraintErrorMessage>Channel center value must be between 34 and 173</constraintErrorMessage>
                        </properties>
                      </leafNode>
                    </children>
                  </node>
                  <leafNode name="channel-set-width">
                    <properties>
                      <help>VHT operating Channel width</help>
                      <completionHelp>
                        <list>0 1 2 3</list>
                      </completionHelp>
                      <valueHelp>
                        <format>0</format>
                        <description>20 or 40 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>1</format>
                        <description>80 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>2</format>
                        <description>160 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>3</format>
                        <description>80+80 MHz channel width</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 0-3"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="ldpc">
                    <properties>
                      <help>Enable LDPC (Low Density Parity Check) coding capability</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="link-adaptation">
                    <properties>
                      <help>VHT link adaptation capabilities</help>
                      <completionHelp>
                        <list>unsolicited both</list>
                      </completionHelp>
                      <valueHelp>
                        <format>unsolicited</format>
                        <description>Station provides only unsolicited VHT MFB</description>
                      </valueHelp>
                      <valueHelp>
                        <format>both</format>
                        <description>Station can provide VHT MFB in response to VHT MRQ and unsolicited VHT MFB</description>
                      </valueHelp>
                      <constraint>
                        <regex>(unsolicited|both)</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid capability item</constraintErrorMessage>
                    </properties>
                  </leafNode>
                  <leafNode name="max-mpdu-exp">
                    <properties>
                      <help>Set the maximum length of A-MPDU pre-EOF padding that the station can receive</help>
                      <valueHelp>
                        <format>u32:0-7</format>
                        <description>Maximum length of A-MPDU pre-EOF padding = 2 pow(13 + x) -1 octets</description>
                      </valueHelp>
                      <constraint>
                        <validator name="numeric" argument="--range 0-7"/>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="max-mpdu">
                    <properties>
                      <help>Increase Maximum MPDU length to 7991 or 11454 octets (otherwise: 3895 octets)</help>
                      <completionHelp>
                        <list>7991 11454</list>
                      </completionHelp>
                      <valueHelp>
                        <format>7991</format>
                        <description>ncrease Maximum MPDU length to 7991 octets</description>
                      </valueHelp>
                      <valueHelp>
                        <format>11454</format>
                        <description>ncrease Maximum MPDU length to 11454 octets</description>
                      </valueHelp>
                      <constraint>
                        <regex>(7991|11454)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                  <leafNode name="short-gi">
                    <properties>
                      <help>Short GI capabilities</help>
                      <completionHelp>
                        <list>80 160</list>
                      </completionHelp>
                      <valueHelp>
                        <format>80</format>
                        <description>Short GI for 80 MHz</description>
                      </valueHelp>
                      <valueHelp>
                        <format>160</format>
                        <description>Short GI for 160 MHz</description>
                      </valueHelp>
                      <constraint>
                        <regex>(80|160)</regex>
                      </constraint>
                      <multi/>
                    </properties>
                  </leafNode>
                  <node name="stbc">
                    <properties>
                      <help>Support for sending and receiving PPDU using STBC (Space Time Block Coding)</help>
                    </properties>
                    <children>
                      <leafNode name="rx">
                        <properties>
                          <help>Enable receiving PPDU using STBC (Space Time Block Coding)</help>
                          <valueHelp>
                            <format>[1-4]+</format>
                            <description>Number of spacial streams that can use RX STBC</description>
                          </valueHelp>
                          <constraint>
                            <regex>[1-4]+</regex>
                          </constraint>
                          <constraintErrorMessage>Invalid capability item</constraintErrorMessage>
                        </properties>
                      </leafNode>
                      <leafNode name="tx">
                        <properties>
                          <help>Enable sending PPDU using STBC (Space Time Block Coding)</help>
                          <valueless/>
                        </properties>
                      </leafNode>
                    </children>
                  </node>
                  <leafNode name="tx-powersave">
                    <properties>
                      <help>Enable VHT TXOP Power Save Mode</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <leafNode name="vht-cf">
                    <properties>
                      <help>Station supports receiving VHT variant HT Control field</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                </children>
              </node>
              <leafNode name="require-vht">
                <properties>
                  <help>Require stations to support VHT PHY</help>
                  <valueless/>
                </properties>
              </leafNode>
              <node name="he">
                <properties>
                  <help>High Efficiency (HE) settings</help>
                </properties>
                <children>
                  <leafNode name="channel-set-width">
                    <properties>
                      <help>HE operating channel width</help>
                      <completionHelp>
                        <!--
                          op_modes drawn from:
                          https://w1.fi/cgit/hostap/tree/src/common/ieee802_11_common.c?id=195cc3d919503fb0d699d9a56a58a72602b25f51#n1525
                          802.11ax (WiFi-6e - HE) can use up to 160MHz bandwidth channels
                        -->
                        <list>131 132 133 134 135</list>
                      </completionHelp>
                      <valueHelp>
                        <format>131</format>
                        <description>20 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>132</format>
                        <description>40 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>133</format>
                        <description>80 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>134</format>
                        <description>160 MHz channel width</description>
                      </valueHelp>
                      <valueHelp>
                        <format>135</format>
                        <description>80+80 MHz channel width</description>
                      </valueHelp>
                      <constraint>
                        <regex>(131|132|133|134|135)</regex>
                      </constraint>
                    </properties>
                  </leafNode>
                  <node name="center-channel-freq">
                    <properties>
                      <help>HE operating channel center frequency</help>
                    </properties>
                    <children>
                      <leafNode name="freq-1">
                        <properties>
                          <help>HE operating channel center frequency - center freq 1 (for use with 80, 80+80 and 160 modes)</help>
                          <valueHelp>
                            <format>u32:1-233</format>
                            <description>6Ghz (802.11 ax) center channel index (use 3 (at 40MHz), 7 (at 80MHz) or 15 (at 160MHz) for primary channel 1)</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 1-233"/>
                          </constraint>
                          <constraintErrorMessage>Channel center value must be between 1 and 233</constraintErrorMessage>
                        </properties>
                      </leafNode>
                      <leafNode name="freq-2">
                        <properties>
                          <help>HE operating channel center frequency - center freq 2 (for use with the 80+80 mode)</help>
                          <valueHelp>
                            <format>u32:1-233</format>
                            <description>6Ghz (802.11 ax) center channel index (use 23 (at 80MHz) for secondary channel 17)</description>
                          </valueHelp>
                          <constraint>
                            <validator name="numeric" argument="--range 1-233"/>
                          </constraint>
                          <constraintErrorMessage>Channel center value must be between 1 and 233</constraintErrorMessage>
                        </properties>
                      </leafNode>
                    </children>
                  </node>
                  <leafNode name="antenna-pattern-fixed">
                    <properties>
                      <help>Tell the AP that antenna positions are fixed and will not change during the lifetime of an association</help>
                      <valueless/>
                    </properties>
                  </leafNode>
                  <node name="beamform">
                    <properties>
                      <help>HE beamforming capabilities</help>
                    </properties>
                    <children>
                      <leafNode name="single-user-beamformer">
                        <properties>
                          <help>Support for operation as single user beamformer</help>
                          <valueless/>
                        </properties>
                      </leafNode>
                      <leafNode name="single-user-beamformee">
                        <properties>
                          <help>Support for operation as single user beamformee</help>
                          <valueless/>
                        </properties>
                      </leafNode>
                      <leafNode name="multi-user-beamformer">
                        <properties>
                          <help>Support for operation as multi user beamformer</help>
                          <valueless/>
                        </properties>
                      </leafNode>
                    </children>
                  </node>
                  <leafNode name="bss-color">
                    <properties>
                      <help>BSS coloring helps to prevent channel jamming when multiple APs use the same channels</help>
                      <constraint>
                        <validator name="numeric" argument="--range 1-63"/>
                      </constraint>
                    </properties>
                  </leafNode>
                </children>
              </node>
              <leafNode name="require-he">
                <properties>
                  <help>Require stations to support HE PHY</help>
                  <valueless/>
                </properties>
              </leafNode>
            </children>
          </node>
          <leafNode name="channel">
            <properties>
              <help>Wireless radio channel</help>
              <valueHelp>
                <format>0</format>
                <description>Automatic Channel Selection (ACS)</description>
              </valueHelp>
              <valueHelp>
                <format>u32:1-14</format>
                <description>2.4Ghz (802.11 b/g/n) Channel</description>
              </valueHelp>
              <valueHelp>
                <format>u32:34-173</format>
                <description>5Ghz (802.11 a/h/j/n/ac) Channel</description>
              </valueHelp>
              <valueHelp>
                <format>u32:1-233</format>
                <description>6Ghz (802.11 ax) Channel</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 0-0 --range 1-14 --range 34-173 --range 1-233"/>
              </constraint>
            </properties>
            <defaultValue>0</defaultValue>
          </leafNode>
          #include <include/generic-description.xml.i>
          #include <include/interface/dhcp-options.xml.i>
          #include <include/interface/dhcpv6-options.xml.i>
          <leafNode name="disable-broadcast-ssid">
            <properties>
              <help>Disable broadcast of SSID from access-point</help>
              <valueless/>
            </properties>
          </leafNode>
          #include <include/interface/disable-link-detect.xml.i>
          #include <include/interface/disable.xml.i>
          #include <include/interface/vrf.xml.i>
          <leafNode name="expunge-failing-stations">
            <properties>
              <help>Disassociate stations based on excessive transmission failures</help>
              <valueless/>
            </properties>
          </leafNode>
          #include <include/interface/ipv4-options.xml.i>
          #include <include/interface/ipv6-options.xml.i>
          #include <include/interface/hw-id.xml.i>
          <leafNode name="isolate-stations">
            <properties>
              <help>Isolate stations on the AP so they cannot see each other</help>
              <valueless/>
            </properties>
          </leafNode>
          #include <include/interface/mac.xml.i>
          <leafNode name="max-stations">
            <properties>
              <help>Maximum number of wireless radio stations. Excess stations will be rejected upon authentication request.</help>
              <valueHelp>
                <format>u32:1-2007</format>
                <description>Number of allowed stations</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 1-2007"/>
              </constraint>
              <constraintErrorMessage>Number of stations must be between 1 and 2007</constraintErrorMessage>
            </properties>
          </leafNode>
          <leafNode name="stationary-ap">
            <properties>
              <help>Stationary AP config indicates that the AP doesn't move.</help>
              <valueless/>
            </properties>
          </leafNode>
          <leafNode name="mgmt-frame-protection">
            <properties>
              <help>Management Frame Protection (MFP) according to IEEE 802.11w</help>
              <completionHelp>
                <list>disabled optional required</list>
              </completionHelp>
              <valueHelp>
                <format>disabled</format>
                <description>no MFP</description>
              </valueHelp>
              <valueHelp>
                <format>optional</format>
                <description>MFP optional</description>
              </valueHelp>
              <valueHelp>
                <format>required</format>
                <description>MFP enforced (mandatory for WPA3)</description>
              </valueHelp>
              <constraint>
                <regex>(disabled|optional|required)</regex>
              </constraint>
            </properties>
            <defaultValue>disabled</defaultValue>
          </leafNode>
          <leafNode name="enable-bf-protection">
            <properties>
              <help>Beacon Protection: management frame protection for Beacon frames, requires Management Frame Protection (MFP)</help>
              <valueless/>
            </properties>
            <defaultValue>disabled</defaultValue>
          </leafNode>
          <leafNode name="mode">
            <properties>
              <help>Wireless radio mode</help>
              <completionHelp>
                <list>a b g n ac ax</list>
              </completionHelp>
              <valueHelp>
                <format>a</format>
                <description>802.11a - 54 Mbits/sec</description>
              </valueHelp>
              <valueHelp>
                <format>b</format>
                <description>802.11b - 11 Mbits/sec</description>
              </valueHelp>
              <valueHelp>
                <format>g</format>
                <description>802.11g - 54 Mbits/sec</description>
              </valueHelp>
              <valueHelp>
                <format>n</format>
                <description>802.11n - 600 Mbits/sec</description>
              </valueHelp>
              <valueHelp>
                <format>ac</format>
                <description>802.11ac - 1300 Mbits/sec</description>
              </valueHelp>
              <valueHelp>
                <format>ax</format>
                <description>802.11ax (6GHz only for now)</description>
              </valueHelp>
              <constraint>
                <regex>(a|b|g|n|ac|ax)</regex>
              </constraint>
            </properties>
            <defaultValue>g</defaultValue>
          </leafNode>
          <!-- background_radar_detection not yet supported by VyOS's hostapd
          <leafNode name="background-radar-detection">
            <properties>
              <help>Enabling background radar detection feature allows CAC to be run on dedicated radio RF chains while the radio(s) are otherwise running normal AP activities on other channels.</help>
              <valueless/>
            </properties>
          </leafNode>
          -->
          #include <include/interface/mirror.xml.i>
          <leafNode name="physical-device">
            <properties>
              <help>Wireless physical device</help>
              <completionHelp>
                <script>${vyos_completion_dir}/list_wireless_phys.sh</script>
              </completionHelp>
              <constraint>
                <validator name="wireless-phy"/>
              </constraint>
            </properties>
            <defaultValue>phy0</defaultValue>
          </leafNode>
          <leafNode name="reduce-transmit-power">
            <properties>
              <help>Transmission power reduction in dBm</help>
              <valueHelp>
                <format>u32:0-255</format>
                <description>TX power reduction in dBm</description>
              </valueHelp>
              <constraint>
                <validator name="numeric" argument="--range 0-255"/>
              </constraint>
              <constraintErrorMessage>dBm value must be between 0 and 255</constraintErrorMessage>
            </properties>
          </leafNode>
          <node name="security">
            <properties>
              <help>Wireless security settings</help>
            </properties>
            <children>
              <node name="station-address">
                <properties>
                  <help>Station MAC address based authentication</help>
                </properties>
                <children>
                  <leafNode name="mode">
                    <properties>
                      <help>Select security operation mode</help>
                      <completionHelp>
                        <list>accept deny</list>
                      </completionHelp>
                      <valueHelp>
                        <format>accept</format>
                        <description>Accept all clients unless found in deny list</description>
                      </valueHelp>
                      <valueHelp>
                        <format>deny</format>
                        <description>Deny all clients unless found in accept list</description>
                      </valueHelp>
                      <constraint>
                        <regex>(accept|deny)</regex>
                      </constraint>
                    </properties>
                    <defaultValue>accept</defaultValue>
                  </leafNode>
                  <node name="accept">
                    <properties>
                      <help>Accept station MAC address</help>
                    </properties>
                    <children>
                      #include <include/interface/mac-multi.xml.i>
                    </children>
                  </node>
                  <node name="deny">
                    <properties>
                      <help>Deny station MAC address</help>
                    </properties>
                    <children>
                      #include <include/interface/mac-multi.xml.i>
                    </children>
                  </node>
                </children>
              </node>
              <node name="wep">
                <properties>
                  <help>Wired Equivalent Privacy (WEP) parameters</help>
                </properties>
                <children>
                  <leafNode name="key">
                    <properties>
                      <help>WEP encryption key</help>
                      <valueHelp>
                        <format>txt</format>
                        <description>Wired Equivalent Privacy key</description>
                      </valueHelp>
                      <constraint>
                        <regex>([a-fA-F0-9]{10}|[a-fA-F0-9]{26}|[a-fA-F0-9]{32})</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid WEP key</constraintErrorMessage>
                      <multi/>
                    </properties>
                  </leafNode>
                </children>
              </node>
              <node name="wpa">
                <properties>
                  <help>Wifi Protected Access (WPA) parameters</help>
                </properties>
                <children>
                  <leafNode name="cipher">
                    <properties>
                      <help>Cipher suite for WPA unicast packets</help>
                      <completionHelp>
                        <list>GCMP-256 GCMP CCMP-256 CCMP TKIP</list>
                      </completionHelp>
                      <valueHelp>
                        <format>GCMP-256</format>
                        <description>AES in Galois/counter mode with 256-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>GCMP</format>
                        <description>AES in Galois/counter mode with 128-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>CCMP-256</format>
                        <description>AES in Counter mode with CBC-MAC with 256-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>CCMP</format>
                        <description>AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0] (supported on all WPA2 APs)</description>
                      </valueHelp>
                      <valueHelp>
                        <format>TKIP</format>
                        <description>Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]</description>
                      </valueHelp>
                      <constraint>
                        <regex>(GCMP-256|GCMP|CCMP-256|CCMP|TKIP)</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid cipher selection</constraintErrorMessage>
                      <multi/>
                    </properties>
                  </leafNode>
                  <leafNode name="group-cipher">
                    <properties>
                      <help>Cipher suite for WPA multicast and broadcast packets</help>
                      <completionHelp>
                        <list>GCMP-256 GCMP CCMP-256 CCMP TKIP</list>
                      </completionHelp>
                      <valueHelp>
                        <format>GCMP-256</format>
                        <description>AES in Galois/counter mode with 256-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>GCMP</format>
                        <description>AES in Galois/counter mode with 128-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>CCMP-256</format>
                        <description>AES in Counter mode with CBC-MAC with 256-bit key</description>
                      </valueHelp>
                      <valueHelp>
                        <format>CCMP</format>
                        <description>AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0] (supported on all WPA2 APs)</description>
                      </valueHelp>
                      <valueHelp>
                        <format>TKIP</format>
                        <description>Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]</description>
                      </valueHelp>
                      <constraint>
                        <regex>(GCMP-256|GCMP|CCMP-256|CCMP|TKIP)</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid group cipher selection</constraintErrorMessage>
                    </properties>
                  </leafNode>
                  <leafNode name="group-mgmt-cipher">
                    <properties>
                      <help>Group management cipher suite. All the stations connecting to the BSS will also need to support the selected cipher</help>
                      <completionHelp>
                        <list>AES-128-CMAC BIP-CMAC-256 BIP-GMAC-128 BIP-GMAC-256</list>
                      </completionHelp>
                      <constraint>
                        <regex>(AES-128-CMAC|BIP-CMAC-256|BIP-GMAC-128|BIP-GMAC-256)</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid group management cipher selection</constraintErrorMessage>
                    </properties>
                    <defaultValue>AES-128-CMAC</defaultValue>
                  </leafNode>
                  <leafNode name="mode">
                    <properties>
                      <help>WPA mode</help>
                      <completionHelp>
                        <list>wpa wpa2 wpa+wpa2 wpa3</list>
                      </completionHelp>
                      <valueHelp>
                        <format>wpa</format>
                        <description>WPA (IEEE 802.11i/D3.0)</description>
                      </valueHelp>
                      <valueHelp>
                        <format>wpa2</format>
                        <description>WPA2 (full IEEE 802.11i/RSN)</description>
                      </valueHelp>
                      <valueHelp>
                        <format>wpa+wpa2</format>
                        <description>Allow both WPA and WPA2</description>
                      </valueHelp>
                      <valueHelp>
                        <format>wpa3</format>
                        <description>WPA3 (required for 802.11ax, you must also set mgmt-frame-protection as required)</description>
                      </valueHelp>
                      <constraint>
                        <regex>(wpa|wpa2|wpa\+wpa2|wpa3)</regex>
                      </constraint>
                      <constraintErrorMessage>Unknown WPA mode</constraintErrorMessage>
                    </properties>
                    <defaultValue>wpa+wpa2</defaultValue>
                  </leafNode>
                  #include <include/generic-username.xml.i>
                  <leafNode name="passphrase">
                    <properties>
                      <help>WPA passphrase. If you are using special characters in the WPA passphrase then single quotes are required.</help>
                      <valueHelp>
                        <format>txt</format>
                        <description>Passphrase of at least 8 but not more than 63 printable characters for WPA-Personal and any passphrase for WPA-Enterprise</description>
                      </valueHelp>
                      <constraint>
                        <regex>[[:ascii:]]{1,256}</regex>
                      </constraint>
                      <constraintErrorMessage>Invalid WPA pass phrase, must be 8 to 63 printable characters!</constraintErrorMessage>
                    </properties>
                  </leafNode>
                  #include <include/radius-auth-server-ipv4.xml.i>
                  <node name="radius">
                    <children>
                      <tagNode name="server">
                        <children>
                          <leafNode name="accounting">
                            <properties>
                              <help>Enable RADIUS server to receive accounting info</help>
                              <valueless/>
                            </properties>
                          </leafNode>
                        </children>
                      </tagNode>
                    </children>
                  </node>
                </children>
              </node>
            </children>
          </node>
          <leafNode name="ssid">
            <properties>
              <help>Wireless access-point service set identifier (SSID)</help>
              <constraint>
                <regex>.{1,32}</regex>
              </constraint>
              <constraintErrorMessage>Invalid SSID</constraintErrorMessage>
            </properties>
          </leafNode>
          <leafNode name="bssid">
            <properties>
              <help>Basic Service Set Identifier (BSSID) - currently station mode only</help>
              <valueHelp>
                <format>macaddr</format>
                <description>BSSID (MAC) address</description>
              </valueHelp>
              <constraint>
                <validator name="mac-address"/>
              </constraint>
              <constraintErrorMessage>Invalid BSSID</constraintErrorMessage>
            </properties>
          </leafNode>
          <leafNode name="type">
            <properties>
              <help>Wireless device type for this interface</help>
              <completionHelp>
                <list>access-point station monitor</list>
              </completionHelp>
              <valueHelp>
                <format>access-point</format>
                <description>Access-point forwards packets between other nodes</description>
              </valueHelp>
              <valueHelp>
                <format>station</format>
                <description>Connects to another access point</description>
              </valueHelp>
              <valueHelp>
                <format>monitor</format>
                <description>Passively monitor all packets on the frequency/channel</description>
              </valueHelp>
              <constraint>
                <regex>(access-point|station|monitor)</regex>
              </constraint>
              <constraintErrorMessage>Type must be access-point, station or monitor</constraintErrorMessage>
            </properties>
            <defaultValue>monitor</defaultValue>
          </leafNode>
          #include <include/interface/per-client-thread.xml.i>
          #include <include/interface/redirect.xml.i>
          #include <include/interface/vif.xml.i>
          #include <include/interface/vif-s.xml.i>
        </children>
      </tagNode>
    </children>
  </node>
</interfaceDefinition>