From 6b50526805690e335acf2ddec77fec2a0a6a4d0c Mon Sep 17 00:00:00 2001 From: Pragaspathi Thilagaraj Date: Tue, 2 Mar 2021 15:25:03 +0530 Subject: [PATCH] qcacld-3.0: Update peer mac address to set NUDGE as active command While parsing the nudge command, the peer mac address is not copied to the params structure passed to sme. So while Nudge active command, since peer mac address is NULL, the driver is not able to get the peer object and set the Nudge active command fails. Copy the peer mac address to set the active command to peer object, so that when nudge command response is received, the response is not dropped due to active command is not nudge. Change-Id: I11b11b3187dff5a79d0f79106c21d60d04edc17b CRs-Fixed: 2888903 --- core/hdd/src/wlan_hdd_twt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_twt.c b/core/hdd/src/wlan_hdd_twt.c index eb0d56cce07d..bdbd63459827 100644 --- a/core/hdd/src/wlan_hdd_twt.c +++ b/core/hdd/src/wlan_hdd_twt.c @@ -2072,6 +2072,10 @@ static int hdd_twt_nudge_session(struct hdd_adapter *adapter, nla_memcpy(params.peer_macaddr, tb[id], QDF_MAC_ADDR_SIZE); hdd_debug("peer mac_addr "QDF_MAC_ADDR_FMT, QDF_MAC_ADDR_REF(params.peer_macaddr)); + } else { + qdf_mem_copy(params.peer_macaddr, + hdd_sta_ctx->conn_info.bssid.bytes, + QDF_MAC_ADDR_SIZE); } id = QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID;