summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Kondabattini <ganeshk@qti.qualcomm.com>2014-01-08 09:29:13 +0530
committerPrakash Dhavali <pdhavali@codeaurora.org>2014-01-18 02:43:12 -0800
commit01bde0170d8ab7a610cf2c5e274286b255ac3cda (patch)
treea0885d1bc3b88250fe326d16c7fa2d4e20afc825
parent18e71012778f42d0bb1cc8e642dcb79a0c92b000 (diff)
CLD-P2P: Use additional IE from scan_info struct
After 8-way handshake supplicant should give the scan command in that it update the additional IEs, But because of scan enhancements, the supplicant is not issuing the scan command now. So the unicast frames which are sent from the host are not having the additional IEs. If it is P2P CLIENT and there is no additional IE present in roamProfile, then use the addtional IE form scan_info. Change-Id: I935622ddf668f85309dd0f27532b8a2ea4b3d142 CRs-Fixed: 596322
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 6da05ee07274..acdfd9a8ceaf 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5503,6 +5503,21 @@ int wlan_hdd_cfg80211_connect_start( hdd_adapter_t *pAdapter,
hdd_connSetConnectionState(WLAN_HDD_GET_STATION_CTX_PTR(pAdapter),
eConnectionState_Connecting);
+ /* After 8-way handshake supplicant should give the scan command
+ * in that it update the additional IEs, But because of scan
+ * enhancements, the supplicant is not issuing the scan command now.
+ * So the unicast frames which are sent from the host are not having
+ * the additional IEs. If it is P2P CLIENT and there is no additional
+ * IE present in roamProfile, then use the addtional IE form scan_info
+ */
+
+ if ((pAdapter->device_mode == WLAN_HDD_P2P_CLIENT) &&
+ (!pRoamProfile->pAddIEScan))
+ {
+ pRoamProfile->pAddIEScan = &pAdapter->scan_info.scanAddIE.addIEdata[0];
+ pRoamProfile->nAddIEScanLength = pAdapter->scan_info.scanAddIE.length;
+ }
+
status = sme_RoamConnect( WLAN_HDD_GET_HAL_CTX(pAdapter),
pAdapter->sessionId, pRoamProfile, &roamId);