From 0a1aea6d44b6f6d03fc9013955d149b57fa2899d Mon Sep 17 00:00:00 2001 From: Nachiket Kukade Date: Thu, 3 Jan 2019 17:10:32 +0530 Subject: [PATCH] qcacld-3.0: Forward NDP Indication event for NDP initiator Driver only forwards NDP Indication event to upper layers after it receives the event WMI_NDP_INDICATION_EVENTID as an NDP Responder. But while as an NDP Initiator, if the NDP Peer sends App info through NDP Response instead of NDP Confirm, driver receives the same event. But it does not forward it to upper layers. As a result App info is dropped and upper layers miss out on it. Forward NDP Indication event to upper layers through vendor event subtype QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND regardless of the NDP role of the device. Change-Id: I63349b92426b6090e024957e70fd7f9ef97cf314 CRs-Fixed: 2375741 --- components/nan/core/src/nan_main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/components/nan/core/src/nan_main.c b/components/nan/core/src/nan_main.c index 9cdfb84259b3..04159f53afec 100644 --- a/components/nan/core/src/nan_main.c +++ b/components/nan/core/src/nan_main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2019 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 @@ -393,11 +393,10 @@ static QDF_STATUS nan_handle_ndp_ind( return status; } } - if (NAN_DATAPATH_ROLE_RESPONDER == ndp_ind->role) - psoc_nan_obj->cb_obj.os_if_ndp_event_handler(psoc, - ndp_ind->vdev, - NDP_INDICATION, - ndp_ind); + psoc_nan_obj->cb_obj.os_if_ndp_event_handler(psoc, + ndp_ind->vdev, + NDP_INDICATION, + ndp_ind); return status; }