mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Convert legacy channel usage
Modify the following API's code and parameters to make sure it is using frequency instead of channel: csr_roam_call_callback Change-Id: I7dffcae95d8db53dd1d2a05745861681c4b35e13 CRs-Fixed: 2564024
This commit is contained in:
parent
1639cab176
commit
c554e34f1c
1 changed files with 4 additions and 4 deletions
|
|
@ -3805,7 +3805,7 @@ QDF_STATUS csr_roam_call_callback(struct mac_context *mac, uint32_t sessionId,
|
|||
struct csr_roam_session *pSession;
|
||||
tDot11fBeaconIEs *beacon_ies = NULL;
|
||||
uint8_t chan1, chan2;
|
||||
uint8_t chan_id;
|
||||
uint32_t chan_freq;
|
||||
|
||||
if (!CSR_IS_SESSION_VALID(mac, sessionId)) {
|
||||
sme_err("Session ID: %d is not valid", sessionId);
|
||||
|
|
@ -3846,11 +3846,11 @@ QDF_STATUS csr_roam_call_callback(struct mac_context *mac, uint32_t sessionId,
|
|||
roam_info->chan_info.info = 0;
|
||||
}
|
||||
roam_info->chan_info.mhz = roam_info->u.pConnectedProfile->op_freq;
|
||||
chan_id = wlan_reg_freq_to_chan(mac->pdev, roam_info->chan_info.mhz);
|
||||
chan_freq = roam_info->chan_info.mhz;
|
||||
roam_info->chan_info.reg_info_1 =
|
||||
(csr_get_cfg_max_tx_power(mac, chan_id) << 16);
|
||||
(csr_get_cfg_max_tx_power(mac, chan_freq) << 16);
|
||||
roam_info->chan_info.reg_info_2 =
|
||||
(csr_get_cfg_max_tx_power(mac, chan_id) << 8);
|
||||
(csr_get_cfg_max_tx_power(mac, chan_freq) << 8);
|
||||
qdf_mem_free(beacon_ies);
|
||||
} else if ((u1 == eCSR_ROAM_FT_REASSOC_FAILED)
|
||||
&& (pSession->bRefAssocStartCnt)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue