How to Disable WiFi

Shigeru's patch is good for disabling wifi in countries where we still lack proper certification and make the patch resist a factory reset. It's not a general approach for disabling wifi.

If you want to control wifi status, take a look at this post for instructions on how to disable/re-enable it: Arduino Yun, power draw - #6 by federicofissore - Arduino Yún - Arduino Forum