What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

WL assoclist Command with two SSIDs

habnix

New Around Here
Question: I have two SSIDs "SSID_2.4G" and "SSID_5G".
The command "wl assoclist" gives me a list of connected clients' MAC addresses which I can then query using wl sta_info MAC_ADDRESS
However the WL command only shows me clients connected via the "SSID_2.4G" not clients connected via the "SSID_5G".
I tried "wl -a wl0 assoclist" and "wl -a wl1 assoclist" but all I get is "wl: wl driver adapter not found"
How can I fix this and get a list of *all* wireless clients connected to *any* SSID. Thanks for your help!
 
Last edited:
You might try including the interface, like "wl -i eth1 assoclist". On my RT-N66U "eth1" is the 2.4Ghz spectrum and "eth2" is the 5Ghz.
 
@Nullity is correct.....for Broadcom hardware

wl -i eth1 assoclist (for 2.4Ghz)
wl -i eth2 assoclist (for 5GHz)

And if you have an 87U it's different for the 5GHz band because of the different hardware....

qcsapi_sockrpc get_count_assoc wifi0

This will tell you how many clients are associated. After that, you have to query the router for every client. So if you have a count of 2 clients:

qcsapi_sockrpc get_station_mac_addr wifi0 0
qcsapi_sockrpc get_station_mac_addr wifi0 1

This will return the MAC of associated clients 0 and 1 (the index starts at 0).
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top