qcacld-3.0: Use roam profile accessor in wlan_hdd_hostapd.c

Update wlan_hdd_hostapd.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: Ieb772ec0b851d9a036f01f5002f35033c628d8db
CRs-Fixed: 2207890
This commit is contained in:
Jeff Johnson 2018-03-14 12:37:14 -07:00 • committed by Nitesh Shrivastav
commit 2b89f8b8bd

View file

@ -6661,13 +6661,9 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
adapter->device_mode);
}
if ((adapter->device_mode == QDF_STA_MODE)
|| (adapter->device_mode == QDF_P2P_CLIENT_MODE)
) {
struct hdd_wext_state *pWextState =
WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
struct csr_roam_profile *roam_profile =
&pWextState->roamProfile;
if ((adapter->device_mode == QDF_STA_MODE) ||
(adapter->device_mode == QDF_P2P_CLIENT_MODE)) {
struct csr_roam_profile *roam_profile;
struct hdd_station_ctx *sta_ctx =
WLAN_HDD_GET_STATION_CTX_PTR(adapter);
@ -6678,6 +6674,7 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
return -EINVAL;
}
roam_profile = hdd_roam_profile(adapter);
num_ch = roam_profile->ChannelInfo.numOfChannels = 1;
sta_ctx->conn_info.operationChannel = channel;
roam_profile->ChannelInfo.ChannelList =