wlan: sap: populate the wmmie from cfg80211
The WMMIE from cfg80211_beacon_data->tail is not added into the
beacon template buffer.
Append the cfg80211_beacon WMMIE to WNI_CFG_PROBE_RSP_BCN_ADDNIE_DATA
and update the WMMIE to peSession so that schBeaconGen will take care
when generate the beacon template.
Change-Id: I424e3d366d20f24201f7dbff676279716b43d890
CRs-Fixed: 675159
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 1a44de5..a13a4e9 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -2759,6 +2759,14 @@
goto done;
}
+ if (0 != wlan_hdd_add_ie(pHostapdAdapter, genie,
+ &total_ielen, WMM_OUI_TYPE, WMM_OUI_TYPE_SIZE))
+ {
+ hddLog(LOGE, FL("Adding WMM IE failed"));
+ ret = -EINVAL;
+ goto done;
+ }
+
if (WLAN_HDD_SOFTAP == pHostapdAdapter->device_mode)
{
wlan_hdd_add_hostapd_conf_vsie(pHostapdAdapter, genie, &total_ielen);