On linux you have iw
(show/manipulate wireless devices and their configuration) and when used with the dev
command:
Commands:
dev
List all network interfaces for wireless hardware.
that is
iw dev
you'll get something like:
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr 00:12:32:e4:18:24
type managed
phy#1
Interface wlan1
ifindex 4
wdev 0x2
addr 00:12:22:c6:b2:0a
type managed
If you want to extract only interfaces names you can always process the output e.g.
iw dev | awk '$1=="Interface"{print $2}'
just keep in mind the help page clearly states:
Do NOT screenscrape this tool, we don't consider its output stable.