diff --git a/wmi/src/wmi_unified_interop_issues_ap_tlv.c b/wmi/src/wmi_unified_interop_issues_ap_tlv.c index 2f38cf0e947a..c60ffda4954b 100644 --- a/wmi/src/wmi_unified_interop_issues_ap_tlv.c +++ b/wmi/src/wmi_unified_interop_issues_ap_tlv.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2019-2020 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 @@ -96,7 +96,7 @@ send_set_rap_ps_cmd_tlv(wmi_unified_t wmi_handle, WMI_HOST_PDEV_ID_SOC); cmd->type = WMI_ROGUE_AP_ON_STA_PS; - if (count) + if (rap->detect_enable) cmd->sta_ps_detection_enabled = 1; else cmd->sta_ps_detection_enabled = 0;