Hi, I'm trying to add an open WifiConfiguration, but everytime I try to add one via my code the configuration either is WAP or WEP, I just want to create an open configuration. Does someone knows how to do this?
This is a part of my code. WifiConfiguration THOMSON = new WifiConfiguration(); // THOMSON.BSSID = sr.BSSID; THOMSON.SSID = "\"TestConfig\""; THOMSON.priority = 67; // sr. THOMSON.status = 1; BitSet allowedAuthAlgorithms = new BitSet(); // allowedAuthAlgorithms.set(0, 3, true); THOMSON.allowedAuthAlgorithms = allowedAuthAlgorithms; BitSet allowedGroupCiphers = new BitSet(); allowedGroupCiphers.set(0, 3, true); THOMSON.allowedGroupCiphers = allowedGroupCiphers; BitSet allowedKeyManagement = new BitSet(); allowedKeyManagement.set(0, true); THOMSON.allowedKeyManagement = allowedKeyManagement; BitSet allowedPairwiseCiphers = new BitSet(); allowedPairwiseCiphers.set(1, 2, true); THOMSON.allowedPairwiseCiphers = allowedPairwiseCiphers; BitSet allowedProtocols = new BitSet(); allowedProtocols.set(0, 1, true); THOMSON.allowedProtocols = allowedProtocols; THOMSON.preSharedKey = null; int THOMSONnetid = mainWifi.addNetwork(THOMSON); boolean THOMSONresult = mainWifi.enableNetwork(THOMSONnetid, true); mainText.setText("Adding Manual:" + THOMSONnetid + " result: " + THOMSONresult + "\n\nSaving:" + mainWifi.saveConfiguration()); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---