[wpa_supplicant] Enable RCOI selection for Passpoint
Enable the flow of adding RCOI selection IE in the (re)association
frames. Android does not use the native HS 2.0 support in
wpa_supplicant, so added logic to skip this check in Android
builds.
Bug: 210879633
Test: Verify function is called, succesful connection to Passpoint
network with RCOI match.
Change-Id: Id22ce9db65933abda7af69bb85308b34e923d374
diff --git a/wpa_supplicant/sme.c b/wpa_supplicant/sme.c
index 36f4d3c..5a771e8 100644
--- a/wpa_supplicant/sme.c
+++ b/wpa_supplicant/sme.c
@@ -663,7 +663,11 @@
}
#ifdef CONFIG_HS20
- if (is_hs20_config(wpa_s) && is_hs20_network(wpa_s, ssid, bss)) {
+ if (is_hs20_network(wpa_s, ssid, bss)
+#ifndef ANDROID /* Android does not use the native HS 2.0 config */
+ && is_hs20_config(wpa_s)
+#endif /* ANDROID */
+ ) {
struct wpabuf *hs20;
hs20 = wpabuf_alloc(20 + MAX_ROAMING_CONS_OI_LEN);