From 3f047763bb572d4734875074694f88a41fe96400 Mon Sep 17 00:00:00 2001 From: sushant Date: Mon, 17 May 2021 17:12:56 +0530 Subject: [PATCH] Added uss-bss-transition and disable-twt added example on how to use flags Signed-off-by: sushant --- lf_associate_ap.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lf_associate_ap.pl b/lf_associate_ap.pl index 2294a6b5..c3135058 100755 --- a/lf_associate_ap.pl +++ b/lf_associate_ap.pl @@ -141,6 +141,8 @@ our %sec_options = ( "no-supp-op-class-ie" => 0x4000000000, # Do not include supported-oper-class-IE in assoc requests. May work around AP bugs. "txo-enable" => 0x8000000000, # Enable/disable tx-offloads, typically managed by set_wifi_txo command "wpa3" => 0x10000000000, # Enable WPA-3 (SAE Personal) mode. + "use-bss-transition" => 0x80000000000, # Enable BSS transition. + "disable-twt" => 0x100000000000, # Disable TWT mode ); our %ieee80211w_options = ( "disabled" => 0, @@ -231,7 +233,7 @@ my $usage = qq($0 [--mgr {host-name | IP}] [--ssid {ssid}] # e.g. jedtest [--bssid {aa:bb:cc:00:11:22, or DEFAULT} # AP BSSID to connect to [--security {open|wep|wpa|wpa2|wpa3}] # station authentication type, Default is open - [--xsec {comma,separated,list} ] # dot1x, 11u, other features, read script + [--xsec {comma,separated,list} ] # dot1x, 11u, other features, read script {to set flags same as in add_sta} [--passphrase {...}] # Set security too if you want to enable security [--wifi_mode {$mode_list}] [--ieee80211w {disabled,optional,required}] # protected management frames (wpa2-ent/wpa3) also { NA, 0, 1, 2 } @@ -345,6 +347,10 @@ $0 --mgr 192.168.100.1 --radio wiphy0 \\ $0 --mgr ben-ota-1 --resource 2 --action del_all_phy --port_del wiphy0 +## Create a station and set Flags + + $0 --mgr localhost --radio wiphy1 --ssid sushant-AP --action add --num_stations 1 \\ + --xsec use-bss-transition --first_ip DHCP ); my $shelf_num = 1;