diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c index 4f05662eb1..1301081a2c 100644 --- a/core/mac/src/pe/lim/lim_utils.c +++ b/core/mac/src/pe/lim/lim_utils.c @@ -11168,10 +11168,8 @@ bool lim_update_channel_width(struct mac_context *mac_ctx, * Do not update the channel bonding mode if channel bonding * mode is disabled in INI. */ - if (cb_mode == WNI_CFG_CHANNEL_BONDING_MODE_DISABLE) { - pe_debug("channel bonding disabled"); + if (cb_mode == WNI_CFG_CHANNEL_BONDING_MODE_DISABLE) return false; - } if (sta_ptr->htSupportedChannelWidthSet) { if (sta_ptr->vhtSupportedChannelWidthSet > diff --git a/core/mac/src/pe/sch/sch_beacon_process.c b/core/mac/src/pe/sch/sch_beacon_process.c index 09af51afa0..01ae8ea240 100644 --- a/core/mac/src/pe/sch/sch_beacon_process.c +++ b/core/mac/src/pe/sch/sch_beacon_process.c @@ -468,8 +468,8 @@ sch_bcn_update_opmode_change(struct mac_context *mac_ctx, tpDphHashNode sta_ds, (vht_op && vht_op->present && vht_caps))) return; - is_40 = bcn->HTCaps.present ? - bcn->HTCaps.supportedChannelWidthSet : false; + is_40 = bcn->HTInfo.present ? + bcn->HTInfo.recommendedTxWidthSet : false; if (bcn->OperatingMode.present) { pe_debug("OMN IE is present in the beacon, update NSS/Ch width");