qcacld-3.0: Switch channel when radar is found in dfs channel
When radar is found, the current channel is put in NOL list and the state is set as CHANNEL_STATE_DISABLE. Currently if channel state is not CHANNEL_STATE_DFS, it will not do channel change. This is not correct. Do channel change when radar is found in dfs channel Change-Id: Iabc8ef5ee92e9d2dc83a95d8fce36a2271ca056c CRs-Fixed: 2155835
此提交包含在:
@@ -3261,7 +3261,8 @@ static QDF_STATUS sap_fsm_state_dfs_cac_wait(struct sap_context *sap_ctx,
|
||||
t_sap_ctx != NULL &&
|
||||
t_sap_ctx->sapsMachine != eSAP_DISCONNECTED) {
|
||||
profile = &t_sap_ctx->csr_roamProfile;
|
||||
if (!wlan_reg_is_dfs_ch(mac_ctx->pdev,
|
||||
if (!wlan_reg_is_passive_or_disable_ch(
|
||||
mac_ctx->pdev,
|
||||
profile->operationChannel))
|
||||
continue;
|
||||
/* SAP to be moved to DISCONNECTING state */
|
||||
@@ -3274,10 +3275,6 @@ static QDF_STATUS sap_fsm_state_dfs_cac_wait(struct sap_context *sap_ctx,
|
||||
* Send the Channel change message to SME/PE.
|
||||
* sap_radar_found_status is set to 1
|
||||
*/
|
||||
sap_signal_hdd_event(t_sap_ctx, NULL,
|
||||
eSAP_DFS_RADAR_DETECT,
|
||||
(void *)eSAP_STATUS_SUCCESS);
|
||||
|
||||
wlansap_channel_change_request(
|
||||
t_sap_ctx,
|
||||
mac_ctx->sap.SapDfsInfo.target_channel);
|
||||
@@ -3490,7 +3487,8 @@ static QDF_STATUS sap_fsm_state_started(struct sap_context *sap_ctx,
|
||||
* no need to move them
|
||||
*/
|
||||
profile = &temp_sap_ctx->csr_roamProfile;
|
||||
if (!wlan_reg_is_dfs_ch(mac_ctx->pdev,
|
||||
if (!wlan_reg_is_passive_or_disable_ch(
|
||||
mac_ctx->pdev,
|
||||
profile->operationChannel))
|
||||
continue;
|
||||
QDF_TRACE(QDF_MODULE_ID_SAP,
|
||||
|
新增問題並參考
封鎖使用者