diff options
author | Ahmed ElArabawy <arabawy@google.com> | 2018-03-15 08:51:55 -0700 |
---|---|---|
committer | Ahmed ElArabawy <arabawy@google.com> | 2018-03-27 11:11:43 -0700 |
commit | b6a730ce63a9a864adaea6ba1bee827444be52a5 (patch) | |
tree | c7a7736ed2102e6b240d050a6327eda90be2f38c /service/java/com/android/server/wifi/WifiMonitor.java | |
parent | 5b09fc76e4a2e05c5e5a24e96ff29be2fd49ed9f (diff) | |
download | android_frameworks_opt_net_wifi-b6a730ce63a9a864adaea6ba1bee827444be52a5.tar.gz android_frameworks_opt_net_wifi-b6a730ce63a9a864adaea6ba1bee827444be52a5.tar.bz2 android_frameworks_opt_net_wifi-b6a730ce63a9a864adaea6ba1bee827444be52a5.zip |
WiFi: Handle onEapFailure callback
This commit handles a callback from the supplicant for EAP failure.
This status is used by the framework to identify the reason for
authintication failure and act accordingly.
Bug: 64612561
Test: Pass unit test (existing and new test cases)
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I87d94d4fa7f59e595c359cb61d7852e4034906cb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
Diffstat (limited to 'service/java/com/android/server/wifi/WifiMonitor.java')
-rw-r--r-- | service/java/com/android/server/wifi/WifiMonitor.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/service/java/com/android/server/wifi/WifiMonitor.java b/service/java/com/android/server/wifi/WifiMonitor.java index 58f318c4a..8599a5914 100644 --- a/service/java/com/android/server/wifi/WifiMonitor.java +++ b/service/java/com/android/server/wifi/WifiMonitor.java @@ -449,9 +449,11 @@ public class WifiMonitor { * {@link android.net.wifi.WifiManager#ERROR_AUTH_FAILURE_TIMEOUT}, * {@link android.net.wifi.WifiManager#ERROR_AUTH_FAILURE_WRONG_PSWD}, * {@link android.net.wifi.WifiManager#ERROR_AUTH_FAILURE_EAP_FAILURE} + * @param errorCode Error code associated with the authentication failure event. + * A value of -1 is used when no error code is reported. */ - public void broadcastAuthenticationFailureEvent(String iface, int reason) { - sendMessage(iface, AUTHENTICATION_FAILURE_EVENT, 0, reason); + public void broadcastAuthenticationFailureEvent(String iface, int reason, int errorCode) { + sendMessage(iface, AUTHENTICATION_FAILURE_EVENT, reason, errorCode); } /** |