From 9c01ec4ae588a33883f2825985f083aec9e674c7 Mon Sep 17 00:00:00 2001 From: Wu Gao Date: Wed, 13 Dec 2017 21:45:44 +0800 Subject: [PATCH] qcacld-3.0: Update channel width and set channel for SAP It does not set channel width and set channel for HT40 mode SAP, which causes SAP start at HT20 mode by default. Change-Id: Ia29c44d897384569249149bccf8d3e0516cce0ce CRs-Fixed: 2158079 --- core/hdd/src/wlan_hdd_hostapd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 99b13e503559..61ff04c90a63 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -7365,11 +7365,12 @@ static int wlan_hdd_sap_p2p_11ac_overrides(struct hdd_adapter *ap_adapter) sap_cfg->ch_width_orig = eHT_CHANNEL_WIDTH_20MHZ; } - sap_cfg->ch_params.ch_width = sap_cfg->ch_width_orig; - wlan_reg_set_channel_params(hdd_ctx->hdd_pdev, sap_cfg->channel, - sap_cfg->sec_ch, &sap_cfg->ch_params); } + sap_cfg->ch_params.ch_width = sap_cfg->ch_width_orig; + wlan_reg_set_channel_params(hdd_ctx->hdd_pdev, sap_cfg->channel, + sap_cfg->sec_ch, &sap_cfg->ch_params); + return 0; }