qcacld-3.0: Correct CSA reason for N79 case

When N79 enabled and disable 5G and 6G band, 5G SAP will swith to 2G
band with CSA. CSA reason should be CSA_REASON_BAND_RESTRICTED.

Change-Id: Icd6cf62ee1f58834a97663f784b50f925782a3ef
CRs-Fixed: 3165067
This commit is contained in:
Wu Gao
2022-04-06 15:01:59 +08:00
gecommit door Madan Koyyalamudi
bovenliggende 1a73e4b0ab
commit 17fc92fd16

Bestand weergeven

@@ -3274,6 +3274,7 @@ qdf_freq_t wlansap_get_chan_band_restrict(struct sap_context *sap_ctx,
sap_debug("set 40M when switch SAP to 2G");
restart_ch_width = CH_WIDTH_40MHZ;
}
*csa_reason = CSA_REASON_BAND_RESTRICTED;
} else if (sap_band == REG_BAND_2G && (band & BIT(REG_BAND_5G)) &&
sap_ctx->chan_freq_before_switch_band &&
wlan_reg_is_enable_in_secondary_list_for_freq(mac->pdev,