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
This commit is contained in:
@@ -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 != NULL &&
|
||||||
t_sap_ctx->sapsMachine != eSAP_DISCONNECTED) {
|
t_sap_ctx->sapsMachine != eSAP_DISCONNECTED) {
|
||||||
profile = &t_sap_ctx->csr_roamProfile;
|
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))
|
profile->operationChannel))
|
||||||
continue;
|
continue;
|
||||||
/* SAP to be moved to DISCONNECTING state */
|
/* 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.
|
* Send the Channel change message to SME/PE.
|
||||||
* sap_radar_found_status is set to 1
|
* 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(
|
wlansap_channel_change_request(
|
||||||
t_sap_ctx,
|
t_sap_ctx,
|
||||||
mac_ctx->sap.SapDfsInfo.target_channel);
|
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
|
* no need to move them
|
||||||
*/
|
*/
|
||||||
profile = &temp_sap_ctx->csr_roamProfile;
|
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))
|
profile->operationChannel))
|
||||||
continue;
|
continue;
|
||||||
QDF_TRACE(QDF_MODULE_ID_SAP,
|
QDF_TRACE(QDF_MODULE_ID_SAP,
|
||||||
|
Reference in New Issue
Block a user