android_kernel_xiaomi_sm8350/core
Jingxiang Ge ace2c3c6a4 qcacld-3.0: Move vdev to DFS CAC state if channel is dfs
After got restart channel rsp from fw, vdev state will change
as: ST-RESTART_PROG->ST-CONN_PROG.

In lim_send_sme_ap_channel_switch_resp, if channel is non-dfs,
vdev state will change to up; if dfs channel, later it will
change to DFS CAC when starting cac timer.

Current issue is if there is ap stop after restart channel rsp,
while processing WLAN_VDEV_SM_EV_DOWN, there is no hanler in
ST-CONN_PROG > ST-DISCONN_PROG.

From design perspective, In SAP, ST_CONN_PROG is a dummy state,
ideally, SAP state should change as below without preemption :
	RESTART_PROGRESS->CONN_PROGRESS->UP
	RESTART_PROGRESS->CONN_PROGRESS->DFS_CAC_WAIT

To fix issue, change vdev state to DFS_CAC_WAIT in
lim_send_sme_ap_channel_switch_resp; So WLAN_VDEV_SM_EV_DOWN will
be handled in DFS_CAC_WAIT state.

At the same time, set DFS_CAC_WAIT when starting SAP, and clear
sap_move_to_cac_wait_state in sap state machine.

Change-Id: Iee89521471e456a553f40577da6d1e69aef3b803
CRs-Fixed: 2501339
2019-08-07 14:30:22 -07:00
..
bmi qcacld-3.0: Send user space about FW CRASHED indication 2019-07-05 23:07:30 -07:00
cds qcacld-3.0: Refactor vdev create code 2019-08-05 10:55:23 -07:00
dp qcacld-3.0: Initialize local variable old_credit before using it 2019-07-30 09:11:36 -07:00
hdd qcacld-3.0: Check TDLS offchannel is supported or not 2019-08-07 04:57:48 -07:00
mac qcacld-3.0: Move vdev to DFS CAC state if channel is dfs 2019-08-07 14:30:22 -07:00
pld qcacld-3.0: Add separate FTM Coldboot Calibration Mode 2019-07-30 20:21:05 -07:00
sap qcacld-3.0: Move vdev to DFS CAC state if channel is dfs 2019-08-07 14:30:22 -07:00
sme qcacld-3.0: Extend force 1x1 ini 2019-08-07 08:41:16 -07:00
wma qcacld-3.0: Fix compilation issue with FW_THERMAL_THROTTLE_SUPPORT enabled 2019-08-06 05:26:20 -07:00