aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/eap_peer/eap_proxy_qmi.c4
-rw-r--r--wpa_supplicant/eap_proxy_qmi.mak11
2 files changed, 13 insertions, 2 deletions
diff --git a/src/eap_peer/eap_proxy_qmi.c b/src/eap_peer/eap_proxy_qmi.c
index bf3bb6af..f8c9cbda 100644
--- a/src/eap_peer/eap_proxy_qmi.c
+++ b/src/eap_peer/eap_proxy_qmi.c
@@ -1795,6 +1795,10 @@ static Boolean eap_proxy_build_identity(struct eap_proxy_sm *eap_proxy, u8 id, s
wpa_printf(MSG_ERROR, " QMI-ERROR Unable to start the EAP session;"
" error_ret=%d; qmi_err=%d\n", qmiRetCode,
eap_auth_start_resp.resp.error);
+ if(eap_auth_start.eap_method_mask == QMI_AUTH_EAP_METHOD_MASK_AKA_PRIME_V01 &&
+ eap_auth_start_resp.resp.error == QMI_ERR_INVALID_ARG_V01)
+ wpa_printf(MSG_ERROR, "QMI-ERROR AKA' not supported\n");
+
return FALSE;
}
eap_proxy->eap_auth_session_flag[sim_num] = TRUE;
diff --git a/wpa_supplicant/eap_proxy_qmi.mak b/wpa_supplicant/eap_proxy_qmi.mak
index 0ed7957b..0a046f62 100644
--- a/wpa_supplicant/eap_proxy_qmi.mak
+++ b/wpa_supplicant/eap_proxy_qmi.mak
@@ -1,12 +1,19 @@
CFLAGS += -DSIM_AKA_IDENTITY_IMSI
CFLAGS += -DSIM_AKA_IMSI_RAW_ENABLED
-CFLAGS += $(shell $(PKG_CONFIG) --cflags qmi)
+CFLAGS += $(shell $(PKG_CONFIG) --cflags qmi qmi-framework)
-LIBS += $(shell $(PKG_CONFIG) --libs qmi)
+LIBS += $(shell $(PKG_CONFIG) --libs qmi qmi-framework) -lpthread
# EAP-AKA' (enable CONFIG_PCSC, if EAP-AKA' is used).
# This requires CONFIG_EAP_AKA to be enabled, too.
# This is supported only in B Family devices.
CONFIG_EAP_AKA_PRIME=y
+ifdef CONFIG_EAP_PROXY_AKA_PRIME
+CFLAGS += -DCONFIG_EAP_PROXY_AKA_PRIME
+endif
+
+ifdef CONFIG_EAP_PROXY_DUAL_SIM
+CFLAGS += -DCONFIG_EAP_PROXY_DUAL_SIM
+endif