Does macOS provide any command line control over external wifi antennas connected through USB as 11ac adapters?
I know that I can connect to any wifi network from command line using the command line utility `/usr/sbin/networksetup` like this:
/usr/sbin/networksetup -setairportnetwork en0 <SSID> <PASSWORD>
Above works perfectly well. I can also switch wifi off and on using `/usr/sbin/networksetup` from command line. This is great.
There is another utility that is `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport` to do similar things as I figured out.
But, I have a external wifi antenna connected to my macOS machine through USB C port. It lists itself as a 11ac adapter under System Preferences > Network. Under `ifconfig`, it enlists as below
en10: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 78:32:1b:05:eb:11
inet6 fe80::86d:55fc:c8ae:f9e1%en10 prefixlen 64 secured scopeid 0x9
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
It works just like the built in wifi antenna and it enlists the SSIDs like default macOS Network Preferences SSIDs list. But `/usr/sbin/networksetup -setairportnetwork en0 <SSID> <PASSWORD>` does not make the antenna connect to the desired SSID.
How can I programatically make this external antenna connect to a specific SSID? Is it possible? Does macOS give any command line control over wifi antennas connected as 11ac adapters?