mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 03:37:55 +00:00
Adding functionality to use flags when modifying and creating stations, DUTs, and VAPs
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -2,6 +2,22 @@
|
||||
from enum import Enum
|
||||
from collections import namedtuple
|
||||
|
||||
add_dut_flags = {
|
||||
'STA_MODE' : 0x1, # (1) DUT acts as Station.,
|
||||
'AP_MODE' : 0x2, # (2) DUT acts as AP.
|
||||
'INACTIVE' : 0x4, # (3) Ignore this in ChamberView, etc
|
||||
'WEP' : 0x8, # Use WEP encryption on all ssids, deprecated, see add_dut_ssid.
|
||||
'WPA' : 0x10, # Use WPA encryption on all ssids, deprecated, see add_dut_ssid.
|
||||
'WPA2' : 0x20, # Use WPA2 encryption on all ssids, deprecated, see add_dut_ssid.
|
||||
'DHCPD-LAN' : 0x40, # Provides DHCP server on LAN port
|
||||
'DHCPD-WAN' : 0x80, # Provides DHCP server on WAN port
|
||||
'WPA3' : 0x100, # Use WPA3 encryption on all ssids, deprecated, see add_dut_extras.
|
||||
'11r' : 0x200, # Use .11r connection logic on all ssids, deprecated, see add_dut_ssid.
|
||||
'EAP-TTLS' : 0x400, # Use EAP-TTLS connection logic on all ssids, deprecated, see add_dut_ssid.
|
||||
'EAP-PEAP' : 0x800, # Use EAP-PEAP connection logic on all ssids, deprecated, see add_dut_ssid.
|
||||
'NOT-DHCPCD' : 0x1000, # Station/edge device that is NOT using DHCP.
|
||||
# Otherwise, automation logic assumes it is using dhcp client.'
|
||||
}
|
||||
class dut_params(namedtuple("dut_params", "key maxlen"), Enum):
|
||||
name = "name", 48
|
||||
flags = "flags", 256
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# flags relating to adding a monitor
|
||||
flags = {
|
||||
"disable_ht40" : 0x800,
|
||||
"disable_ht80" : 0x8000000,
|
||||
"ht160_enable" : 0x100000000,
|
||||
"disable_ht40": 0x800,
|
||||
"disable_ht80": 0x8000000,
|
||||
"ht160_enable": 0x100000000,
|
||||
}
|
||||
default_flags_mask = 0xFFFFFFFFFFFF
|
||||
|
||||
Reference in New Issue
Block a user