mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacmn: Remove subchannel marking fail prints in PO
The cfg tool command to enable/disable subchannel marking called a WMI to be sent to FW without checking if dfs is offloaded to FW. This added fail prints in log for partial offload and direct attach even if subchannel marking was set. Fix the cfg command to send a WMI to FW only if dfs is offloaded. Change-Id: Ifae574ed6aeb49c4058d89374fdcc81b8d43a5bc CRs-Fixed: 2334258
This commit is contained in:
parent
16816ae8d0
commit
6eeb76ce92
1 changed files with 4 additions and 3 deletions
|
|
@ -123,7 +123,7 @@
|
|||
int dfs_set_nol_subchannel_marking(struct wlan_dfs *dfs,
|
||||
bool nol_subchannel_marking)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
if (!dfs)
|
||||
return -EIO;
|
||||
|
|
@ -131,8 +131,9 @@ int dfs_set_nol_subchannel_marking(struct wlan_dfs *dfs,
|
|||
dfs->dfs_use_nol_subchannel_marking = nol_subchannel_marking;
|
||||
dfs_info(dfs, WLAN_DEBUG_DFS_ALWAYS, "NOL subchannel marking is %s ",
|
||||
(nol_subchannel_marking) ? "set" : "disabled");
|
||||
status = tgt_dfs_send_subchan_marking(dfs->dfs_pdev_obj,
|
||||
nol_subchannel_marking);
|
||||
if (dfs->dfs_is_offload_enabled)
|
||||
status = tgt_dfs_send_subchan_marking(dfs->dfs_pdev_obj,
|
||||
nol_subchannel_marking);
|
||||
|
||||
return qdf_status_to_os_return(status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue