wlan: IBSS: Only add the WPA IE in the beacon additional IE.
Added the check to avoid adding of IE other than WPA
in beacon additional IE.
CRs-Fixed: 851663
Change-Id: I28324f43df07f150511db1f344c8dea34086ea68
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index f068292..a575e1e 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -11601,7 +11601,9 @@
pWextState->roamProfile.nAddIEAssocLength = pWextState->assocAddIE.length;
}
- if (WLAN_HDD_IBSS == pAdapter->device_mode) {
+ /* Update only for WPA IE */
+ if (!memcmp(genie, WPA_OUI_TYPE, WPA_OUI_TYPE_SIZE) &&
+ (WLAN_HDD_IBSS == pAdapter->device_mode)) {
/* populating as ADDIE in beacon frames */
if (ccmCfgSetStr(WLAN_HDD_GET_HAL_CTX(pAdapter),