find out name of your wlan-adapter:
networksetup -listnetworkserviceorder
turn it on/off:
networksetup -setairportpower en1 on [off]
find out name of your wlan-adapter:
networksetup -listnetworkserviceorder
turn it on/off:
networksetup -setairportpower en1 on [off]