WLAN:Add missing support for SHA256 akm suites
In the current host driver support for wpa-psk-sha256 is present
this gerrit adds support for wpa-8021x-sha256
Change-Id: I759af93cf93af1757e8412ca140a5df80383eb3b
CRs-fixed: 732878
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 04c3806..fe49f30 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -97,6 +97,8 @@
#endif /* FEATURE_WLAN_ESE */
#ifdef WLAN_FEATURE_11W
v_U8_t ccpRSNOui07[ HDD_RSN_OUI_SIZE ] = { 0x00, 0x0F, 0xAC, 0x06 }; // RSN-PSK-SHA256
+/* RSN-8021X-SHA256 */
+v_U8_t ccpRSNOui08[ HDD_RSN_OUI_SIZE ] = { 0x00, 0x0F, 0xAC, 0x05 };
#endif
#if defined(WLAN_FEATURE_VOWIFI_11R)
@@ -3057,6 +3059,10 @@
{
auth_type = eCSR_AUTH_TYPE_RSN_PSK_SHA256;
} else
+ if (memcmp(auth_suite , ccpRSNOui08, 4) == 0)
+ {
+ auth_type = eCSR_AUTH_TYPE_RSN_8021X_SHA256;
+ } else
#endif
{
auth_type = eCSR_AUTH_TYPE_UNKNOWN;
@@ -3456,6 +3462,10 @@
if (RSNAuthType == eCSR_AUTH_TYPE_RSN_PSK_SHA256) {
pRoamProfile->AuthType.authType[0] = eCSR_AUTH_TYPE_RSN_PSK_SHA256;
} else
+ if (RSNAuthType == eCSR_AUTH_TYPE_RSN_8021X_SHA256) {
+ pRoamProfile->AuthType.authType[0] =
+ eCSR_AUTH_TYPE_RSN_8021X_SHA256;
+ } else
#endif
if( (pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
@@ -3992,6 +4002,7 @@
case eCSR_AUTH_TYPE_RSN_PSK:
#ifdef WLAN_FEATURE_11W
case eCSR_AUTH_TYPE_RSN_PSK_SHA256:
+ case eCSR_AUTH_TYPE_RSN_8021X_SHA256:
#endif
hddLog(LOG1,"%s called with RSN PSK auth type", __func__);
wrqu->param.value = IW_AUTH_ALG_OPEN_SYSTEM;