|
@@ -1683,6 +1683,9 @@ wlansap_set_cac_required_for_chan(struct mac_context *mac_ctx,
|
|
|
bool is_ch_dfs = false;
|
|
|
bool cac_required;
|
|
|
uint32_t channel;
|
|
|
+ uint8_t vdev_id_list[MAX_NUMBER_OF_CONC_CONNECTIONS];
|
|
|
+ uint32_t freq_list[MAX_NUMBER_OF_CONC_CONNECTIONS];
|
|
|
+ uint8_t sta_cnt, i;
|
|
|
|
|
|
channel = wlan_reg_freq_to_chan(mac_ctx->pdev, sap_ctx->chan_freq);
|
|
|
|
|
@@ -1712,6 +1715,22 @@ wlansap_set_cac_required_for_chan(struct mac_context *mac_ctx,
|
|
|
else
|
|
|
cac_required = true;
|
|
|
|
|
|
+ if (cac_required) {
|
|
|
+ sta_cnt =
|
|
|
+ policy_mgr_get_mode_specific_conn_info(mac_ctx->psoc,
|
|
|
+ freq_list,
|
|
|
+ vdev_id_list,
|
|
|
+ PM_STA_MODE);
|
|
|
+
|
|
|
+ for (i = 0; i < sta_cnt; i++) {
|
|
|
+ if (sap_ctx->chan_freq == freq_list[i]) {
|
|
|
+ sap_debug("STA vdev id %d exists, ignore CAC",
|
|
|
+ vdev_id_list[i]);
|
|
|
+ cac_required = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
mlme_set_cac_required(sap_ctx->vdev, cac_required);
|
|
|
}
|
|
|
|