Skip to content

Commit 3f04776

Browse files
Added uss-bss-transition and disable-twt
added example on how to use flags Signed-off-by: sushant <[email protected]>
1 parent b0aba6f commit 3f04776

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lf_associate_ap.pl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ sub altsleep {
141141
"no-supp-op-class-ie" => 0x4000000000, # Do not include supported-oper-class-IE in assoc requests. May work around AP bugs.
142142
"txo-enable" => 0x8000000000, # Enable/disable tx-offloads, typically managed by set_wifi_txo command
143143
"wpa3" => 0x10000000000, # Enable WPA-3 (SAE Personal) mode.
144+
"use-bss-transition" => 0x80000000000, # Enable BSS transition.
145+
"disable-twt" => 0x100000000000, # Disable TWT mode
144146
);
145147
our %ieee80211w_options = (
146148
"disabled" => 0,
@@ -231,7 +233,7 @@ sub altsleep {
231233
[--ssid {ssid}] # e.g. jedtest
232234
[--bssid {aa:bb:cc:00:11:22, or DEFAULT} # AP BSSID to connect to
233235
[--security {open|wep|wpa|wpa2|wpa3}] # station authentication type, Default is open
234-
[--xsec {comma,separated,list} ] # dot1x, 11u, other features, read script
236+
[--xsec {comma,separated,list} ] # dot1x, 11u, other features, read script {to set flags same as in add_sta}
235237
[--passphrase {...}] # Set security too if you want to enable security
236238
[--wifi_mode {$mode_list}]
237239
[--ieee80211w {disabled,optional,required}] # protected management frames (wpa2-ent/wpa3) also { NA, 0, 1, 2 }
@@ -345,6 +347,10 @@ sub altsleep {
345347
346348
$0 --mgr ben-ota-1 --resource 2 --action del_all_phy --port_del wiphy0
347349
350+
## Create a station and set Flags
351+
352+
$0 --mgr localhost --radio wiphy1 --ssid sushant-AP --action add --num_stations 1 \\
353+
--xsec use-bss-transition --first_ip DHCP
348354
);
349355

350356
my $shelf_num = 1;

0 commit comments

Comments
 (0)