Browse Source

qcacld-3.0: Fix override chan issue

When override sap channel, call wlan_reg_set_channel_params
to update ch_params.

Change-Id: I4086ec8fea0d68547a1080b0ef455a0e9f64c0b7
CRs-Fixed: 2333666
Liangwei Dong 6 years ago
parent
commit
ab3dcd4033
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/sap/src/sap_fsm.c

+ 5 - 1
core/sap/src/sap_fsm.c

@@ -2207,8 +2207,12 @@ sap_goto_starting(struct sap_context *sap_ctx,
 		uint16_t con_ch;
 
 		con_ch = sme_get_concurrent_operation_channel(hal);
-		if (con_ch && wlan_reg_is_dfs_ch(mac_ctx->pdev, con_ch))
+		if (con_ch && wlan_reg_is_dfs_ch(mac_ctx->pdev, con_ch)) {
 			sap_ctx->channel = con_ch;
+			wlan_reg_set_channel_params(mac_ctx->pdev,
+						    sap_ctx->channel, 0,
+						    &sap_ctx->ch_params);
+		}
 	}
 
 	/*