From eb21475834bfecfa2e85029b9132cd34b1d10e88 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 16 Mar 2018 11:12:19 -0700 Subject: [PATCH] qcacld-3.0: Use roam profile accessor in wlan_hdd_scan.c Update wlan_hdd_scan.c to use the recently introduced roam profile accessor function hdd_roam_profile(). Change-Id: I0aec410024263a2f44b79cbcb5f49b3347a5b46f CRs-Fixed: 2207895 --- core/hdd/src/wlan_hdd_scan.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_scan.c b/core/hdd/src/wlan_hdd_scan.c index 06d262d8b487..f517d7981dc3 100644 --- a/core/hdd/src/wlan_hdd_scan.c +++ b/core/hdd/src/wlan_hdd_scan.c @@ -424,7 +424,6 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, struct hdd_scan_info *scan_info = NULL; struct hdd_adapter *con_sap_adapter; uint16_t con_dfs_ch; - struct hdd_wext_state *pwextBuf = WLAN_HDD_GET_WEXT_STATE_PTR(adapter); uint8_t curr_session_id; enum scan_reject_states curr_reason; static uint32_t scan_ebusy_cnt; @@ -618,9 +617,12 @@ static int __wlan_hdd_cfg80211_scan(struct wiphy *wiphy, if ((QDF_STA_MODE == adapter->device_mode) || (QDF_P2P_CLIENT_MODE == adapter->device_mode) || (QDF_P2P_DEVICE_MODE == adapter->device_mode)) { - pwextBuf->roamProfile.pAddIEScan = + struct csr_roam_profile *roam_profile = + hdd_roam_profile(adapter); + + roam_profile->pAddIEScan = scan_info->scan_add_ie.addIEdata; - pwextBuf->roamProfile.nAddIEScanLength = + roam_profile->nAddIEScanLength = scan_info->scan_add_ie.length; }