]> git.ipfire.org Git - thirdparty/hostap.git/commit
mesh: Show peer connected time in the wpa_cli STA cmd output for Mesh mode
authorGokul Sivakumar <gokulkumar792@gmail.com>
Wed, 4 Aug 2021 18:42:10 +0000 (00:12 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2021 09:26:25 +0000 (12:26 +0300)
commit3cdc6d381aa713703a1118e3cd935c2692668e03
treefc67d1bf3dac4fa45cb530aa042738c26f794c46
parenteddcd27534c0cca167ef27fe07faecd803780dc4
mesh: Show peer connected time in the wpa_cli STA cmd output for Mesh mode

When a Mesh interface is managed by wpa_supplicant, include the peer
link connected time (secs) in the output of "sta <addr>", "all_sta"
wpa_cli cmds for each peer. This will be helpful to find when the peer
link connection got established. The NL80211_STA_INFO_CONNECTED_TIME
netlink attribute data is used for this purpose if available.

$ wpa_cli -i mesh0 all_sta
02:00:00:00:02:00
flags=[ASSOC][WMM][HT]
aid=1
capability=0x0
listen_interval=0
supported_rates=82 84 8b 96 8c 12 98 24 b0 48 60 6c
timeout_next=NULLFUNC POLL
rx_packets=77
tx_packets=3
rx_bytes=8510
tx_bytes=284
inactive_msec=104
signal=-30
rx_rate_info=65 mcs 0
tx_rate_info=65 mcs 0
ht_mcs_bitmask=ffff0000000000000000
connected_time=24
ht_caps_info=0x103c

The connected_time field in the output of "hostapd_cli -i ap0 all_sta"
cmd is not affected and it will continue to show the connected time
maintained by hostapd for each STA.

Signed-off-by: Gokul Sivakumar <gokulkumar792@gmail.com>
src/ap/ctrl_iface_ap.c
src/drivers/driver.h
src/drivers/driver_nl80211.c