diff --git a/target_if/p2p/src/target_if_p2p.c b/target_if/p2p/src/target_if_p2p.c index 5f03401c38..000a917586 100644 --- a/target_if/p2p/src/target_if_p2p.c +++ b/target_if/p2p/src/target_if_p2p.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 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 @@ -260,9 +260,6 @@ QDF_STATUS target_if_p2p_set_ps(struct wlan_objmgr_psoc *psoc, QDF_STATUS status; wmi_unified_t wmi_handle = target_if_get_wmi_handle(psoc); - target_if_debug("psoc:%pK, vdev_id:%d, opp_ps:%d", psoc, - ps_config->vdev_id, ps_config->opp_ps); - if (!wmi_handle) { target_if_err("Invalid wmi handle"); return QDF_STATUS_E_INVAL; @@ -273,6 +270,9 @@ QDF_STATUS target_if_p2p_set_ps(struct wlan_objmgr_psoc *psoc, return QDF_STATUS_E_INVAL; } + target_if_debug("psoc:%pK, vdev_id:%d, opp_ps:%d", psoc, + ps_config->vdev_id, ps_config->opp_ps); + cmd.opp_ps = ps_config->opp_ps; cmd.ctwindow = ps_config->ct_window; cmd.count = ps_config->count; @@ -301,8 +301,6 @@ QDF_STATUS target_if_p2p_lo_start(struct wlan_objmgr_psoc *psoc, { wmi_unified_t wmi_handle = target_if_get_wmi_handle(psoc); - target_if_debug("psoc:%pK, vdev_id:%d", psoc, lo_start->vdev_id); - if (!wmi_handle) { target_if_err("Invalid wmi handle"); return QDF_STATUS_E_INVAL; @@ -312,6 +310,7 @@ QDF_STATUS target_if_p2p_lo_start(struct wlan_objmgr_psoc *psoc, target_if_err("lo start parameters is null"); return QDF_STATUS_E_INVAL; } + target_if_debug("psoc:%pK, vdev_id:%d", psoc, lo_start->vdev_id); return wmi_unified_p2p_lo_start_cmd(wmi_handle, lo_start); } diff --git a/umac/p2p/core/src/wlan_p2p_off_chan_tx.c b/umac/p2p/core/src/wlan_p2p_off_chan_tx.c index 51c57f796e..2a7bf48a9d 100644 --- a/umac/p2p/core/src/wlan_p2p_off_chan_tx.c +++ b/umac/p2p/core/src/wlan_p2p_off_chan_tx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018 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 @@ -142,7 +142,7 @@ static const uint8_t *p2p_get_p2pie_from_probe_rsp( { const uint8_t *ie; const uint8_t *p2p_ie; - const uint8_t *tmp_p2p_ie; + const uint8_t *tmp_p2p_ie = NULL; uint16_t ie_len; if (tx_ctx->buf_len <= PROBE_RSP_IE_OFFSET) {