Add permission to access WiFi device.

Added method to check if Wifi is On or Off.