Return-path: Received: from he.sipsolutions.net ([78.46.109.217]:44175 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751267Ab0HUJVv (ORCPT ); Sat, 21 Aug 2010 05:21:51 -0400 Subject: Re: Fwd: nl80211 scanning from userspace From: Johannes Berg To: Christopher Piggott Cc: linux-wireless@vger.kernel.org In-Reply-To: References: <1281986025.3683.31.camel@jlt3.sipsolutions.net> <1281987696.3683.32.camel@jlt3.sipsolutions.net> <1281995025.3683.34.camel@jlt3.sipsolutions.net> <1282035102.3747.0.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Sat, 21 Aug 2010 11:21:48 +0200 Message-ID: <1282382508.3759.0.camel@jlt3.sipsolutions.net> Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Fri, 2010-08-20 at 19:42 -0400, Christopher Piggott wrote: > So here's the question: in my NL_CB_VALID listener, how do I > distinguish the response to the NL80211_CMD_TRIGGER_SCAN (the one that > indicates scan complete) from the response to the CMD_GET_SCAN (fetch > the results) message? One will be unicast to you, and the event is multicast to everybody. You should be able to tell the difference. johannes