Lines Matching refs:netId

208      * @param netId network to select for connection
211 boolean selectNetwork(int netId) {
212 if (netId == INVALID_NETWORK_ID) return false;
227 config.networkId = netId;
234 enableNetworkWithoutBroadcast(netId, true);
256 int netId = result.getNetworkId();
258 if (newNetwork && netId != INVALID_NETWORK_ID) {
259 mWifiNative.enableNetwork(netId, false);
260 mConfiguredNetworks.get(netId).status = Status.ENABLED;
268 void updateStatus(int netId, DetailedState state) {
269 if (netId != INVALID_NETWORK_ID) {
270 WifiConfiguration config = mConfiguredNetworks.get(netId);
292 * @param netId network to forget
295 boolean forgetNetwork(int netId) {
296 if (mWifiNative.removeNetwork(netId)) {
299 WifiConfiguration config = mConfiguredNetworks.get(netId);
301 target = mConfiguredNetworks.remove(netId);
310 loge("Failed to remove network " + netId);
340 * @param netId network to be removed
343 boolean removeNetwork(int netId) {
344 boolean ret = mWifiNative.removeNetwork(netId);
347 config = mConfiguredNetworks.get(netId);
349 config = mConfiguredNetworks.remove(netId);
365 * @param netId network to be enabled
368 boolean enableNetwork(int netId, boolean disableOthers) {
369 boolean ret = enableNetworkWithoutBroadcast(netId, disableOthers);
375 enabledNetwork = mConfiguredNetworks.get(netId);
386 boolean enableNetworkWithoutBroadcast(int netId, boolean disableOthers) {
387 boolean ret = mWifiNative.enableNetwork(netId, disableOthers);
389 WifiConfiguration config = mConfiguredNetworks.get(netId);
393 markAllNetworksDisabledExcept(netId);
400 * @param netId network to be disabled
403 boolean disableNetwork(int netId) {
404 return disableNetwork(netId, WifiConfiguration.DISABLED_UNKNOWN_REASON);
409 * @param netId network to be disabled
413 boolean disableNetwork(int netId, int reason) {
414 boolean ret = mWifiNative.disableNetwork(netId);
416 WifiConfiguration config = mConfiguredNetworks.get(netId);
498 LinkProperties getLinkProperties(int netId) {
499 WifiConfiguration config = mConfiguredNetworks.get(netId);
512 DhcpInfoInternal getIpConfiguration(int netId) {
514 LinkProperties linkProperties = getLinkProperties(netId);
538 void setIpConfiguration(int netId, DhcpInfoInternal dhcpInfo) {
541 WifiConfiguration config = mConfiguredNetworks.get(netId);
555 void clearIpConfiguration(int netId) {
556 WifiConfiguration config = mConfiguredNetworks.get(netId);
571 ProxyProperties getProxyProperties(int netId) {
572 LinkProperties linkProperties = getLinkProperties(netId);
582 * @return {@code true} if using static ip for netId
584 boolean isUsingStaticIp(int netId) {
585 WifiConfiguration config = mConfiguredNetworks.get(netId);
661 /* Mark all networks except specified netId as disabled */
662 private void markAllNetworksDisabledExcept(int netId) {
664 if(config != null && config.networkId != netId) {
968 int netId = config.networkId;
971 if (netId == INVALID_NETWORK_ID) {
974 netId = savedNetId;
977 netId = mWifiNative.addNetwork();
978 if (netId < 0) {
991 netId,
1000 netId,
1011 netId,
1023 netId,
1035 netId,
1048 netId,
1060 netId,
1072 netId,
1086 netId,
1099 netId,
1108 netId,
1117 netId,
1142 netId,
1156 mWifiNative.removeNetwork(netId);
1157 loge("Failed to set a network variable, removed network: " + netId);
1169 WifiConfiguration currentConfig = mConfiguredNetworks.get(netId);
1172 currentConfig.networkId = netId;
1177 mConfiguredNetworks.put(netId, currentConfig);
1178 mNetworkIds.put(configKey(currentConfig), netId);
1182 result.setNetworkId(netId);
1308 int netId = config.networkId;
1309 if (netId < 0)
1319 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.ssidVarName);
1332 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.bssidVarName);
1339 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.priorityVarName);
1348 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.hiddenSSIDVarName);
1357 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.wepTxKeyIdxVarName);
1367 value = mWifiNative.getNetworkVariable(netId,
1376 value = mWifiNative.getNetworkVariable(netId, WifiConfiguration.pskVarName);
1450 value = mWifiNative.getNetworkVariable(netId,
1460 migrateOldEapTlsIfNecessary(config, netId);
1469 * @param netId the wpa_supplicant's net ID
1472 private void migrateOldEapTlsIfNecessary(WifiConfiguration config, int netId) {
1473 String value = mWifiNative.getNetworkVariable(netId,
1507 mWifiNative.setNetworkVariable(netId, field.varName(), field.value());
1511 mWifiNative.setNetworkVariable(netId, WifiConfiguration.OLD_PRIVATE_KEY_NAME,