summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBala Krishna Bhamidipati <c_bbhami@qti.qualcomm.com>2016-01-22 21:13:07 +0530
committerSteve Kondik <steve@cyngn.com>2016-05-18 14:31:41 -0700
commit3b8ecf9730ad1ccf1248d61dad9cc235f95bc829 (patch)
tree5f2fd89c54c9c1b6903e29c8cd4ed230276e2be2
parent65ccde9d3ed1c6d8558f35b9e7a124d966a34eed (diff)
downloadandroid_frameworks_opt_net_wifi-3b8ecf9730ad1ccf1248d61dad9cc235f95bc829.tar.gz
android_frameworks_opt_net_wifi-3b8ecf9730ad1ccf1248d61dad9cc235f95bc829.tar.bz2
android_frameworks_opt_net_wifi-3b8ecf9730ad1ccf1248d61dad9cc235f95bc829.zip
Wifi: Update the identities only if they are added or modified
Each update of the network configuration to the supplicant (though not updated) results in PMKSA flush though the configurations excluding BSSID / priority remain same. Thus, set the credentials only when they are added for the first time or modified by comparing with the already existing ones Change-Id: I2dc057c229505920e14d3505639b6a4cb39141a1 CRs-Fixed: 965963
-rw-r--r--service/java/com/android/server/wifi/WifiConfigStore.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigStore.java b/service/java/com/android/server/wifi/WifiConfigStore.java
index ad9035a4f..70f3a51ff 100644
--- a/service/java/com/android/server/wifi/WifiConfigStore.java
+++ b/service/java/com/android/server/wifi/WifiConfigStore.java
@@ -3107,7 +3107,9 @@ public class WifiConfigStore extends IpConfigStore {
break setVariables;
}
} else {
- if (!mWifiNative.setNetworkVariable(
+ if (!((newNetwork == false) && (savedValue != null) &&
+ (value != null) && value.equals(savedValue)) &&
+ !mWifiNative.setNetworkVariable(
netId,
key,
value)) {
@@ -3132,7 +3134,9 @@ public class WifiConfigStore extends IpConfigStore {
break setVariables;
}
} else {
- if (!mWifiNative.setNetworkVariable(
+ if (!((newNetwork == false) && (savedValue != null) &&
+ (value != null) && value.equals(savedValue)) &&
+ !mWifiNative.setNetworkVariable(
netId,
key,
value)) {