Return-path: Received: from na3sys009aog107.obsmtp.com ([74.125.149.197]:50245 "EHLO na3sys009aog107.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751593Ab1HIJmh (ORCPT ); Tue, 9 Aug 2011 05:42:37 -0400 Received: by mail-ey0-f169.google.com with SMTP id 22so3565347eye.28 for ; Tue, 09 Aug 2011 02:42:36 -0700 (PDT) Subject: Re: Making sense of cfg80211_scan_request.n_ssids From: Luciano Coelho To: Johannes Berg Cc: Daniel Drake , Pavel Roskin , linux-wireless In-Reply-To: <1312882809.4109.4.camel@jlt3.sipsolutions.net> References: <4E3875BE.9070504@gnu.org> (sfid-20110803_001012_532868_0AAF0D7E) <1312792639.4372.7.camel@jlt3.sipsolutions.net> <1312882560.2407.139.camel@cumari> <1312882809.4109.4.camel@jlt3.sipsolutions.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 09 Aug 2011 12:42:33 +0300 Message-ID: <1312882953.2407.140.camel@cumari> (sfid-20110809_114240_466852_21F9A7AC) Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Tue, 2011-08-09 at 11:40 +0200, Johannes Berg wrote: > On Tue, 2011-08-09 at 12:36 +0300, Luciano Coelho wrote: > > > > Yeah. "iw dev eth0 scan passive" will cause n_ssids to be 0. > > > > I think the question was slightly different. As I understand, Daniel > > wants to know why the n_ssids is 1 even if no SSID is passed from user > > space. > > Well, actually, in the iw scan/iwlist scan case an SSID _is_ passed from > userspace: the zero-length wildcard SSID. I made iw do that because an > active scan is more useful :-) Yep, I can't agree more. :) -- Cheers, Luca.