qcacmn: Prevent link down for SAP on non DFS channel

In SAP on non DFS channel, there are double votes for PCIe
link down and later if there is PCIe link up, this counter
sends D3 WoW case instead of D0 WoW case to firmware.

To fix this, In vdev restart case, if SAP is on non DFS
channel and previously it was on DFS channel then vote
for PCIe link down and if SAP is on DFS channel and
previously it was on non DFS channel then vote for PCIe
link up. Also, the PCIe link down should be needed if
vdev stop response is for DFS channel.

Change-Id: I817ffceb482091b8d9c5441d80abb43b7d0f866b
CRs-Fixed: 2849706
这个提交包含在:
Deeksha Gupta
2021-01-07 10:51:44 +05:30
提交者 snandini
父节点 7ae06586a2
当前提交 21ce9cf146
修改 3 个文件,包含 69 行新增20 行删除

查看文件

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -487,7 +487,7 @@ static QDF_STATUS target_if_vdev_mgr_start_send(
START_RESPONSE_BIT);
} else {
target_if_vdev_start_link_handler(vdev,
param->channel.dfs_set);
param->is_restart);
}
return status;
}