how to get lists of STAs that connected to hostapd.

Alex Vorona alex at vorona.com.ua
Wed May 23 04:42:46 EDT 2012


23.05.2012 07:54, Jouni Malinen wrote:
> hostapd_cli all_sta
How to get stations from MBSSID interfaces?

mail ~ # hostapd_cli all_sta
Selected interface 'wlan0'
f0:7b:cb:a0:f9:8f
dot11RSNAStatsSTAAddress=f0:7b:cb:a0:f9:8f
dot11RSNAStatsVersion=1
dot11RSNAStatsSelectedPairwiseCipher=00-0f-ac-4
dot11RSNAStatsTKIPLocalMICFailures=0
dot11RSNAStatsTKIPRemoveMICFailures=0
hostapdWPAPTKState=11
hostapdWPAPTKGroupState=0
mail ~ # hostapd_cli -i wlan0_0 all_sta
Failed to connect to hostapd - wpa_ctrl_open: No such file or directory
mail ~ # iw wlan0 station dump
Station f0:7b:cb:a0:f9:8f (on wlan0)
[...]
mail ~ # iw wlan0_0 station dump
Station 00:1c:26:ac:89:f1 (on wlan0_0)
[...]
mail ~ #
mail ~ # ls /var/run/hostapd/
wlan0
mail ~ #


More information about the HostAP mailing list