qcacld-3.0: Replace channel ID with frequency (bss_description 4)

Remove channelId from struct bss_description, and remove the
code where value assignment to channelId take place.

Change-Id: If37aca5f3e2211a73d546444aad2e5f9a4bada0a
CRs-Fixed: 2497438
此提交包含在:
Will Huang
2019-07-25 13:35:22 +08:00
提交者 nshrivas
父節點 e8507828be
當前提交 cac7e09e7d
共有 6 個檔案被更改,包括 3 行新增18 行删除

查看文件

@@ -658,8 +658,7 @@ struct bss_description {
int8_t rssi; int8_t rssi;
int8_t rssi_raw; int8_t rssi_raw;
int8_t sinr; int8_t sinr;
/* channelId what peer sent in beacon/probersp. */ /* channel frequency what peer sent in beacon/probersp. */
uint8_t channelId;
uint32_t chan_freq; uint32_t chan_freq;
/* Based on system time, not a relative time. */ /* Based on system time, not a relative time. */
uint64_t received_time; uint64_t received_time;

查看文件

@@ -2178,12 +2178,10 @@ lim_roam_fill_bss_descr(struct mac_context *mac,
/* Copy Timestamp */ /* Copy Timestamp */
bss_desc_ptr->scansystimensec = qdf_get_monotonic_boottime_ns(); bss_desc_ptr->scansystimensec = qdf_get_monotonic_boottime_ns();
if (parsed_frm_ptr->dsParamsPresent) { if (parsed_frm_ptr->dsParamsPresent) {
bss_desc_ptr->channelId = parsed_frm_ptr->channelNumber;
bss_desc_ptr->chan_freq = bss_desc_ptr->chan_freq =
wlan_reg_chan_to_freq(mac->pdev, wlan_reg_chan_to_freq(mac->pdev,
parsed_frm_ptr->channelNumber); parsed_frm_ptr->channelNumber);
} else if (parsed_frm_ptr->HTInfo.present) { } else if (parsed_frm_ptr->HTInfo.present) {
bss_desc_ptr->channelId = parsed_frm_ptr->HTInfo.primaryChannel;
bss_desc_ptr->chan_freq = bss_desc_ptr->chan_freq =
wlan_reg_chan_to_freq(mac->pdev, wlan_reg_chan_to_freq(mac->pdev,
parsed_frm_ptr->HTInfo. parsed_frm_ptr->HTInfo.
@@ -2193,8 +2191,6 @@ lim_roam_fill_bss_descr(struct mac_context *mac,
* If DS Params or HTIE is not present in the probe resp or * If DS Params or HTIE is not present in the probe resp or
* beacon, then use the channel frequency provided by firmware * beacon, then use the channel frequency provided by firmware
* to fill the channel in the BSS descriptor.*/ * to fill the channel in the BSS descriptor.*/
bss_desc_ptr->channelId =
cds_freq_to_chan(roam_synch_ind_ptr->chan_freq);
bss_desc_ptr->chan_freq = roam_synch_ind_ptr->chan_freq; bss_desc_ptr->chan_freq = roam_synch_ind_ptr->chan_freq;
} }

查看文件

@@ -133,7 +133,6 @@ lim_collect_bss_description(struct mac_context *mac,
* So The problem of incorrect channel reporting in 5Ghz will still remain for 11a devices. * So The problem of incorrect channel reporting in 5Ghz will still remain for 11a devices.
*/ */
channel_num = lim_get_channel_from_beacon(mac, pBPR); channel_num = lim_get_channel_from_beacon(mac, pBPR);
pBssDescr->channelId = channel_num;
pBssDescr->chan_freq = wlan_reg_chan_to_freq(mac->pdev, channel_num); pBssDescr->chan_freq = wlan_reg_chan_to_freq(mac->pdev, channel_num);
/* set the network type in bss description */ /* set the network type in bss description */
@@ -192,7 +191,7 @@ lim_collect_bss_description(struct mac_context *mac,
pBody + SIR_MAC_B_PR_SSID_OFFSET, ieLen); pBody + SIR_MAC_B_PR_SSID_OFFSET, ieLen);
/*set channel number in beacon in case it is not present */ /*set channel number in beacon in case it is not present */
pBPR->channelNumber = pBssDescr->channelId; pBPR->channelNumber = channel_num;
mac->lim.beacon_probe_rsp_cnt_per_scan++; mac->lim.beacon_probe_rsp_cnt_per_scan++;
return; return;

查看文件

@@ -547,9 +547,6 @@ void lim_send_sme_start_bss_rsp(struct mac_context *mac,
(uint32_t *) &pSirSmeRsp->bssDescription. (uint32_t *) &pSirSmeRsp->bssDescription.
nwType, pe_session); nwType, pe_session);
pSirSmeRsp->bssDescription.channelId =
wlan_reg_freq_to_chan(
mac->pdev, pe_session->curr_op_freq);
pSirSmeRsp->bssDescription.chan_freq = pSirSmeRsp->bssDescription.chan_freq =
pe_session->curr_op_freq; pe_session->curr_op_freq;

查看文件

@@ -11675,9 +11675,6 @@ csr_roam_chk_lnk_swt_ch_ind(struct mac_context *mac_ctx, tSirSmeRsp *msg_ptr)
} }
session->connectedProfile.op_freq = pSwitchChnInd->freq; session->connectedProfile.op_freq = pSwitchChnInd->freq;
if (session->pConnectBssDesc) { if (session->pConnectBssDesc) {
session->pConnectBssDesc->channelId =
wlan_reg_freq_to_chan(mac_ctx->pdev,
pSwitchChnInd->freq);
session->pConnectBssDesc->chan_freq = pSwitchChnInd->freq; session->pConnectBssDesc->chan_freq = pSwitchChnInd->freq;
ie_len = csr_get_ielen_from_bss_description( ie_len = csr_get_ielen_from_bss_description(

查看文件

@@ -1784,7 +1784,6 @@ QDF_STATUS csr_scan_create_entry_in_scan_cache(struct mac_context *mac,
/* change the BSSID & channel as passed */ /* change the BSSID & channel as passed */
qdf_mem_copy(pNewBssDescriptor->bssId, bssid.bytes, qdf_mem_copy(pNewBssDescriptor->bssId, bssid.bytes,
sizeof(tSirMacAddr)); sizeof(tSirMacAddr));
pNewBssDescriptor->channelId = channel;
pNewBssDescriptor->chan_freq = wlan_reg_chan_to_freq(mac->pdev, pNewBssDescriptor->chan_freq = wlan_reg_chan_to_freq(mac->pdev,
channel); channel);
if (!csr_scan_append_bss_description(mac, pNewBssDescriptor)) { if (!csr_scan_append_bss_description(mac, pNewBssDescriptor)) {
@@ -2628,9 +2627,7 @@ static QDF_STATUS csr_fill_bss_from_scan_entry(struct mac_context *mac_ctx,
bss_desc->rssi = scan_entry->rssi_raw; bss_desc->rssi = scan_entry->rssi_raw;
bss_desc->rssi_raw = scan_entry->rssi_raw; bss_desc->rssi_raw = scan_entry->rssi_raw;
/* channelId what peer sent in beacon/probersp. */ /* channel frequency what peer sent in beacon/probersp. */
bss_desc->channelId =
scan_entry->channel.chan_idx;
bss_desc->chan_freq = bss_desc->chan_freq =
wlan_reg_chan_to_freq(mac_ctx->pdev, wlan_reg_chan_to_freq(mac_ctx->pdev,
scan_entry->channel.chan_idx); scan_entry->channel.chan_idx);