Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wifi doesn't connect to protected networks on AOSP14 and AOSP15 #29

Open
KonstaT opened this issue Oct 19, 2023 · 2 comments
Open

Wifi doesn't connect to protected networks on AOSP14 and AOSP15 #29

KonstaT opened this issue Oct 19, 2023 · 2 comments

Comments

@KonstaT
Copy link
Member

KonstaT commented Oct 19, 2023

Connecting to WPA2/WPA3 networks doesn't work on Android 14. Connecting to open networks works as expected. There is nothing apparent in logcat output that would indicate the exact issue. Behavior is similar to inputting a wrong password for the wifi network. There is also no issue with creating a WPA2 protected wifi hotspot on the device.

This would likely indicate some issue with WPA2/WPA3 authentication or wifi keystore that was changed in Android 14.

Connecting to WPA2/WPA3 networks is successful when wpa_supplicant and wifi supplicant HAL from Android 13 are used instead. There's a package with the binaries available here.

@KonstaT
Copy link
Member Author

KonstaT commented Nov 24, 2023

I've included patched AOSP 13 external/wpa_supplicant_8 in android-14.0 branch to workaround this issue.

You might also need following patch on system/libhild for the fancier authentication features (WPA Enterprise, etc):

--- a/vintfdata/manifest.xml
+++ b/vintfdata/manifest.xml
@@ -54,7 +54,7 @@
             <instance>default</instance>
         </interface>
     </hal>
-    <hal format="hidl" max-level="7">
+    <hal format="hidl" max-level="8">
         <name>android.system.wifi.keystore</name>
         <transport>hwbinder</transport>
         <version>1.0</version>

I'll leave this issue open for discussion as I would rather find proper solution for this.

@KonstaT KonstaT changed the title Wifi doesn't connect to protected networks on AOSP14 Wifi doesn't connect to protected networks on AOSP14 and AOSP15 Sep 5, 2024
@KonstaT
Copy link
Member Author

KonstaT commented Sep 5, 2024

Unsurprisingly did not magically fix itself in AOSP15.

Comment above still stands and I've provided patched external/wpa_supplicant_8 in android-15.0 branch to workaround this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant