mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Restart SAP with CSA/ECSA when gWlanMccToSccSwitchMod=3
Restart SAP with CSA/ECSA when ini variable gWlanMccToSccSwitchMod=3. Currently ini variable setting gWlanMccToSccSwitchMod=2 was causing SAP to restart with CSA. Change-Id: I9a4b68cd154fa63325d146510832c2410f2dc244 CRs-Fixed: 2058154
This commit is contained in:
parent
edd1957723
commit
9b0ebdb769
2 changed files with 6 additions and 10 deletions
|
|
@ -2389,7 +2389,7 @@ void sap_restart_chan_switch_cb (struct wlan_objmgr_psoc *psoc,
|
|||
QDF_STATUS wlan_hdd_get_channel_for_sap_restart(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, uint8_t *channel,
|
||||
uint8_t *sec_ch, bool restart_sap)
|
||||
uint8_t *sec_ch)
|
||||
{
|
||||
tHalHandle *hal_handle;
|
||||
hdd_ap_ctx_t *hdd_ap_ctx;
|
||||
|
|
@ -2439,13 +2439,10 @@ QDF_STATUS wlan_hdd_get_channel_for_sap_restart(
|
|||
*channel = hdd_ap_ctx->sapConfig.channel;
|
||||
*sec_ch = hdd_ap_ctx->sapConfig.sec_ch;
|
||||
|
||||
if (restart_sap) {
|
||||
hdd_info("Restart SAP as a part of channel switch");
|
||||
sap_restart_chan_switch_cb(psoc, vdev_id,
|
||||
hdd_ap_ctx->sapConfig.channel,
|
||||
hdd_ap_ctx->sapConfig.ch_params.ch_width);
|
||||
|
||||
}
|
||||
hdd_info("SAP channel change with CSA/ECSA");
|
||||
sap_restart_chan_switch_cb(psoc, vdev_id,
|
||||
hdd_ap_ctx->sapConfig.channel,
|
||||
hdd_ap_ctx->sapConfig.ch_params.ch_width);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ void sap_restart_chan_switch_cb (struct wlan_objmgr_psoc *psoc,
|
|||
* @vdev_id: vdev id
|
||||
* @channel: channel to be returned
|
||||
* @sec_ch: secondary channel to be returned
|
||||
* @restart_sap: restsart SAP as a part of channel switch
|
||||
*
|
||||
* This function gets the channel parameters to restart SAP
|
||||
*
|
||||
|
|
@ -99,7 +98,7 @@ void sap_restart_chan_switch_cb (struct wlan_objmgr_psoc *psoc,
|
|||
QDF_STATUS wlan_hdd_get_channel_for_sap_restart(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id, uint8_t *channel,
|
||||
uint8_t *sec_ch, bool restart_sap);
|
||||
uint8_t *sec_ch);
|
||||
#endif
|
||||
|
||||
eCsrEncryptionType
|
||||
|
|
|
|||
Loading…
Reference in a new issue