diff options
author | Hai Shalom <haishalom@google.com> | 2019-08-02 13:32:40 -0700 |
---|---|---|
committer | Hai Shalom <haishalom@google.com> | 2019-08-02 22:39:00 +0000 |
commit | b7de92f5a3cf0113ff4e892c7e536e5b58c2e4f8 (patch) | |
tree | aadf69d61f95d1c8523550bb6a4e8c299b98bae9 /service | |
parent | e2921b824d04071ae5dcea6d594986b3eeda0752 (diff) |
[WPA3] Add error logs for WifiConfiguration validation failures
Add informative error logs for WPA3-Personal, WPA3-Enterprise and OWE
validiation checks, specifically missing PMF.
Bug: 138771111
Test: atest WifiConfigurationUtilTest
Change-Id: Ib437afbbad135bede36bb5415db6a17e3cd190b5
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiConfigurationUtil.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiConfigurationUtil.java b/service/java/com/android/server/wifi/WifiConfigurationUtil.java index a99253463..59d3eb3f4 100644 --- a/service/java/com/android/server/wifi/WifiConfigurationUtil.java +++ b/service/java/com/android/server/wifi/WifiConfigurationUtil.java @@ -602,12 +602,14 @@ public class WifiConfigurationUtil { if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.OWE)) { // PMF mandatory for OWE networks if (!config.requirePMF) { + Log.e(TAG, "PMF must be enabled for OWE networks"); return false; } } if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SAE)) { // PMF mandatory for WPA3-Personal networks if (!config.requirePMF) { + Log.e(TAG, "PMF must be enabled for SAE networks"); return false; } if (!validatePassword(config.preSharedKey, isAdd, true)) { @@ -617,6 +619,7 @@ public class WifiConfigurationUtil { if (config.allowedKeyManagement.get(WifiConfiguration.KeyMgmt.SUITE_B_192)) { // PMF mandatory for WPA3-Enterprise networks if (!config.requirePMF) { + Log.e(TAG, "PMF must be enabled for Suite-B 192-bit networks"); return false; } } |