How to Disable WiFi

Shigeru , I'm not clear as what should I do if I want to be able to switch between WiFi enabled and WiFi disabled .

In other words lets say i want the user to send a command from the console, at initialization time, to decide if the connection is going to be by Wireless (WiFi enabled) or Cable (WiFi disabled).

Many thanks in advance for your help.