|
@@ -481,7 +481,7 @@ static void lim_copy_ml_partner_info(struct cm_vdev_join_rsp *rsp,
|
|
|
int i;
|
|
|
struct mlo_partner_info *partner_info;
|
|
|
struct mlo_partner_info *rsp_partner_info;
|
|
|
- uint8_t chan, op_class, link_id;
|
|
|
+ uint8_t chan = 0, op_class, link_id;
|
|
|
|
|
|
partner_info = &pe_session->ml_partner_info;
|
|
|
rsp_partner_info = &rsp->connect_rsp.ml_parnter_info;
|
|
@@ -495,9 +495,16 @@ static void lim_copy_ml_partner_info(struct cm_vdev_join_rsp *rsp,
|
|
|
&rsp_partner_info->partner_link_info[i].link_addr,
|
|
|
&partner_info->partner_link_info[i].link_addr);
|
|
|
|
|
|
- wlan_get_chan_by_link_id_from_rnr(pe_session->vdev,
|
|
|
- pe_session->cm_id,
|
|
|
- link_id, &chan, &op_class);
|
|
|
+ wlan_get_chan_by_bssid_from_rnr(
|
|
|
+ pe_session->vdev,
|
|
|
+ pe_session->cm_id,
|
|
|
+ &partner_info->partner_link_info[i].link_addr,
|
|
|
+ &chan, &op_class);
|
|
|
+ if (!chan)
|
|
|
+ wlan_get_chan_by_link_id_from_rnr(
|
|
|
+ pe_session->vdev,
|
|
|
+ pe_session->cm_id,
|
|
|
+ link_id, &chan, &op_class);
|
|
|
if (chan) {
|
|
|
rsp_partner_info->partner_link_info[i].chan_freq =
|
|
|
wlan_reg_chan_opclass_to_freq_auto(chan,
|