I am doing a WiFi authentication by below code:
String networkPass = Constants.Password;
WifiConfiguration conf = new WifiConfiguration();
conf.SSID = "\"" + MYSSIDNAME + "\"";
conf.preSharedKey = "\""+ networkPass +"\"";
wifi.addNetwork(conf);
List<WifiConfiguration> list = wifi.getConfiguredNetworks();
wifi.disconnect();
for( WifiConfiguration i : list ) {
if(i.SSID != null && i.SSID.equals("\"" + MYSSIDNAME + "\"")) {
wifi.enableNetwork(i.networkId, true);
break;
}
}
wifi.reconnect();
It is working fine and no issue with HTC and MOTOROLA but when i am trying to authenticate any NEXUS(MOTOROLA NEXUS 6 & 7),its not working. Any idea will be really appreciated.Thank you :)