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
This commit is contained in:
Jeff Johnson 2018-03-16 11:12:19 -07:00 • committed by Nitesh Shrivastav
commit eb21475834

View file

@ -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;
}