MAC command line to view the current WiFi network device name
1 2 | Networksetup-listallhardwareports//or use Ifconfig to find the Wifi device name |
My results are as follows: You can see that my Wifi device name is en0 after the command requires the device name.
1 2 3 4 5 6 7 8 9 10 11 12 13 14-15 16 | Eagle's MacBook ~ networksetup-listallhardwareports hardware port:bluetooth DUN device:bluetooth-modem Ethern ET address:n/A hardware Port:wi-fi device:en0 Ethernet address:20:c9:d0:84:d4:e3 Port: Bluetooth PAN Device:en3 Ethernet address:20:c9 |