I want to do iwinfo xxx scan on all radios, and iwinfo yyy assoclist for all my wifi networks.
Is there a recommended best place to find the names for the radios (xxx) and wlan interfaces (yyy)? Ideally something general which will work on 21.xx routers and current releases.
M
root@newB:~# wifi status | fgrep -w ifname | sort -u
"ifname": "phy0-ap0",
"ifname": "phy0-ap1",
"ifname": "phy1-ap0",
root@newB:~# iwinfo | awk '/PHY name/{print $6}' | sort -u
phy0
phy1
root@newB:~#