qcacmn: Update the correct bit index for ML IE

Update the correct bit index for ML IE control field

Change-Id: I8b2dcf70fd2ee83ae24eeba8359798499c0b7c74
This commit is contained in:
Himanshu Batra
2021-08-02 12:08:02 +05:30
committed by Madan Koyyalamudi
父節點 c182e1e3e9
當前提交 9406f72b3d
共有 5 個文件被更改,包括 28 次插入42 次删除

查看文件

@@ -1412,7 +1412,7 @@ static int8_t cm_get_joint_rssi(struct scan_cache_entry *entry,
uint8_t alpha = weight_config->joint_rssi_alpha;
if (entry->channel.chan_freq <
entry->ml_info->link_info[link_idx].freq) {
entry->ml_info.link_info[link_idx].freq) {
low_band_rssi = entry->rssi_raw;
high_band_rssi = cm_get_partner_link_rssi(entry, link_idx);
} else {
@@ -1473,12 +1473,12 @@ static int cm_calculate_eht_score(struct scan_cache_entry *entry,
joint_esp_score, joint_oce_score, wlm_indication_score,
mlsr_score, emlsr_score);
entry->ml_info->ml_bss_score = eht_caps_score + mlo_score +
entry->ml_info.ml_bss_score = eht_caps_score + mlo_score +
joint_rssi_score + joint_esp_score +
joint_oce_score + wlm_indication_score +
mlsr_score + emlsr_score;
return entry->ml_info->ml_bss_score;
return entry->ml_info.ml_bss_score;
}
static int32_t

查看文件

@@ -447,11 +447,11 @@ void cm_set_vdev_link_id(struct cnx_mgr *cm_ctx,
uint8_t link_id;
uint8_t i;
for (i = 0; i < req->cur_candidate->entry->ml_info->num_links; i++) {
if (qdf_mem_cmp(req->cur_candidate->entry->ml_info->link_info[i].link_addr.bytes,
for (i = 0; i < req->cur_candidate->entry->ml_info.num_links; i++) {
if (qdf_mem_cmp(req->cur_candidate->entry->ml_info.link_info[i].link_addr.bytes,
req->cur_candidate->entry->mac_addr.bytes, QDF_MAC_ADDR_SIZE))
continue;
link_id = req->cur_candidate->entry->ml_info->link_info[i].link_id;
link_id = req->cur_candidate->entry->ml_info.link_info[i].link_id;
if (cm_ctx->vdev) {
mlme_debug("setting link ID to %d", link_id);
wlan_vdev_set_link_id(cm_ctx->vdev, link_id);
@@ -493,9 +493,8 @@ static void cm_update_vdev_mlme_macaddr(struct cnx_mgr *cm_ctx,
*/
static struct qdf_mac_addr *cm_get_bss_peer_mld_addr(struct cm_connect_req *req)
{
if (req && req->cur_candidate && req->cur_candidate->entry &&
req->cur_candidate->entry->ml_info)
return &req->cur_candidate->entry->ml_info->mld_mac_addr;
if (req && req->cur_candidate && req->cur_candidate->entry)
return &req->cur_candidate->entry->ml_info.mld_mac_addr;
else
return NULL;
}