mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
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:
parent
20227a9fa2
commit
2b89f8b8bd
1 changed files with 4 additions and 7 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue