Return-path: Received: from arroyo.ext.ti.com ([192.94.94.40]:35925 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091Ab1LLQkj convert rfc822-to-8bit (ORCPT ); Mon, 12 Dec 2011 11:40:39 -0500 From: "Elias, Ilan" To: Samuel Ortiz CC: "lauro.venancio@openbossa.org" , "aloisio.almeida@openbossa.org" , "linux-wireless@vger.kernel.org" Subject: RE: [RFC] NFC: Add num of targets to TARGETS_FOUND event Date: Mon, 12 Dec 2011 16:40:22 +0000 Message-ID: (sfid-20111212_174042_410125_646CAD48) References: <1323687584.13722.4.camel@sortiz-mobl> In-Reply-To: <1323687584.13722.4.camel@sortiz-mobl> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: Hi Samuel, > > I suggest we add a new attribute NFC_ATTR_NUM_TARGETS_FOUND > to the event NFC_EVENT_TARGETS_FOUND. > > Otherwise, the user would have to wait until a timeut > expires in order to decide that no more targets will arrive. > You mean a timeout from NFC_CMD_GET_TARGET ? You could guess > the number > of targets from the dumped message size, couldn't you ? As you said (in the NFC IRC room), the last dump message should be marked with NLMSG_DONE. I'll check it out. Thanks & BR, Ilan