qcacld-3.0: Convert SME code legacy channel ID usage
Modify the following 2 APIs' code and parameters to use frequency instead of channel ID: sme_get_operation_channel wlan_hdd_update_survey_info Change-Id: I90f05cc7fedd061bf08b47299d2fb6530c470136 CRs-Fixed: 2554149
This commit is contained in:
parent
c136369dc0
commit
bc841052ca
@ -4907,13 +4907,12 @@ static bool wlan_hdd_update_survey_info(struct wiphy *wiphy,
|
||||
{
|
||||
bool filled = false;
|
||||
int i, j = 0;
|
||||
uint32_t channel = 0, opfreq; /* Initialization Required */
|
||||
uint32_t opfreq = 0; /* Initialization Required */
|
||||
struct hdd_context *hdd_ctx;
|
||||
|
||||
hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
sme_get_operation_channel(hdd_ctx->mac_handle, &channel,
|
||||
sme_get_operation_channel(hdd_ctx->mac_handle, &opfreq,
|
||||
adapter->vdev_id);
|
||||
opfreq = wlan_reg_chan_to_freq(hdd_ctx->pdev, channel);
|
||||
|
||||
mutex_lock(&hdd_ctx->chan_info_lock);
|
||||
|
||||
|
@ -737,7 +737,7 @@ QDF_STATUS sme_set_host_offload(mac_handle_t mac_handle, uint8_t sessionId,
|
||||
QDF_STATUS sme_set_keep_alive(mac_handle_t mac_handle, uint8_t sessionId,
|
||||
struct keep_alive_req *pRequest);
|
||||
QDF_STATUS sme_get_operation_channel(mac_handle_t mac_handle,
|
||||
uint32_t *pChannel,
|
||||
uint32_t *chan_freq,
|
||||
uint8_t sessionId);
|
||||
QDF_STATUS sme_register_mgmt_frame(mac_handle_t mac_handle, uint8_t sessionId,
|
||||
uint16_t frameType, uint8_t *matchData,
|
||||
|
@ -4701,7 +4701,7 @@ QDF_STATUS sme_set_keep_alive(mac_handle_t mac_handle, uint8_t session_id,
|
||||
* QDF_STATUS_E_FAILURE
|
||||
*/
|
||||
QDF_STATUS sme_get_operation_channel(mac_handle_t mac_handle,
|
||||
uint32_t *pChannel,
|
||||
uint32_t *chan_freq,
|
||||
uint8_t sessionId)
|
||||
{
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
@ -4718,9 +4718,7 @@ QDF_STATUS sme_get_operation_channel(mac_handle_t mac_handle,
|
||||
eCSR_BSS_TYPE_INFRA_AP)
|
||||
|| (pSession->connectedProfile.BSSType ==
|
||||
eCSR_BSS_TYPE_START_IBSS)) {
|
||||
*pChannel = wlan_reg_freq_to_chan(
|
||||
mac->pdev,
|
||||
pSession->connectedProfile.op_freq);
|
||||
*chan_freq = pSession->connectedProfile.op_freq;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user