aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBala Krishna Bhamidipati <c_bbhami@qti.qualcomm.com>2014-12-03 12:45:41 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2014-12-03 22:37:52 -0800
commit98be21929a86b9d4d985928dc7a83245b2bb9f9c (patch)
treee27cbaffc5ccb71b9394e9b5fbfdfc659aaf87e5
parent9a66ea033894e3d691c69c120dfc98e4729cd319 (diff)
downloadandroid_external_wpa_supplicant_8-98be21929a86b9d4d985928dc7a83245b2bb9f9c.tar.gz
android_external_wpa_supplicant_8-98be21929a86b9d4d985928dc7a83245b2bb9f9c.tar.bz2
android_external_wpa_supplicant_8-98be21929a86b9d4d985928dc7a83245b2bb9f9c.zip
eap_proxy: Remove extra bytes in EAP-Response/Identity
Adding size_of wpa_buf to the eap response from the modem is reflecting in extra bytes to the identity and some radius servers are unable to map the identity, further causing a failure. This fix will remove the extra length being added to the response frame. Change-Id: Ie3c8db99b4de5d94491c329ff63adfb48527c1aa CRs-Fixed: 765232
-rw-r--r--src/eap_peer/eap_proxy_qmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eap_peer/eap_proxy_qmi.c b/src/eap_peer/eap_proxy_qmi.c
index 8f834b1b..912b252a 100644
--- a/src/eap_peer/eap_proxy_qmi.c
+++ b/src/eap_peer/eap_proxy_qmi.c
@@ -1317,7 +1317,7 @@ struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *eap_proxy)
return NULL;
}
- resp->used = sizeof(struct wpabuf) + len;
+ resp->used = len;
os_memcpy(resp->buf, eap_proxy->qmi_resp_data.eap_send_pkt_resp.resp_data,
len);
/*