NiFi support

Use setWirelessMode(WIRELESS_MODE_NIFI) for NiFi, and
setWirelessMode(WIRELESS_MODE_WIFI) for WiFi.