qcacld-3.0: Optimize conditions to send CSA or ECSA

Today projects should all support all band channel switch.
SAP option to send CSA or ECSA should not depend on whether operating
on channel 2.4 GHz, but considering if client support Extended Channel
Switch and whether 6 GHz channel involved as currently do.

Enable CONFIG_CHANNEL_HOPPING_ALL_BANDS in default configure and
remove checking 2.4 GHz channel condition.

Change-Id: Ibd73ca2115f8f2183292f3ca82d29be4590951a1
CRs-Fixed: 3642763
Šī revīzija ir iekļauta:
Will Huang
2023-10-18 12:32:19 +05:30
revīziju iesūtīja Ravindra Konda
vecāks cf59788437
revīzija 79c20761dc
3 mainīti faili ar 1 papildinājumiem un 3 dzēšanām

Parādīt failu

@@ -1446,9 +1446,7 @@ ifeq ($(CONFIG_ARCH_MDM9607), y)
CONFIG_TUFELLO_DUAL_FW_SUPPORT := y
endif
ifeq ($(CONFIG_ARCH_MSM8996), y)
CONFIG_CHANNEL_HOPPING_ALL_BANDS := y
endif
ifeq (y, $(filter y, $(CONFIG_ARCH_SDXPRAIRIE) $(CONFIG_ARCH_SA515)))
ifneq ($(CONFIG_SLUB_DEBUG), y)

Parādīt failu

@@ -10040,6 +10040,7 @@ skip_vht:
/* Send ECSA/CSA Action frame after updating the beacon */
if (CHAN_HOP_ALL_BANDS_ENABLE &&
session_entry->lim_non_ecsa_cap_num &&
!WLAN_REG_IS_6GHZ_CHAN_FREQ(target_ch_freq))
lim_send_chan_switch_action_frame
(mac_ctx,

Parādīt failu

@@ -701,7 +701,6 @@ sch_set_fixed_beacon_fields(struct mac_context *mac_ctx, struct pe_session *sess
}
if (session->lim_non_ecsa_cap_num &&
WLAN_REG_IS_24GHZ_CH_FREQ(session->curr_op_freq) &&
!is_6ghz_chsw)
populate_channel_switch_ann(mac_ctx, bcn_2, session);
}