linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Samuel Ortiz <samuel@sortiz.org>
To: Christopher Piggott <cpiggott@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: scanning a specific ssid
Date: Fri, 20 Aug 2010 13:05:03 +0200	[thread overview]
Message-ID: <1282302303.3662.5.camel@sortiz-mobl> (raw)
In-Reply-To: <AANLkTimPjyiJsdgX5j+YGQC_0=9FEfeCQUFWuXgxz7Qh@mail.gmail.com>

Hi Christopher,

On Thu, 2010-08-19 at 16:25 -0400, Christopher Piggott wrote:
> Hi,
> 
> I wrote a small C++ program using libdbus-c++ to scan for access
> points via wpa_supplicant's dbus interface.  It works very well, and I
> can retrieve the list just fine.
> 
> Now I want to cause it to scan for a specific SSID by issuing a probe,
> but the dbus interface fi.epitest.hostap.WPASupplicant.Interface has
> only one scan method, and it does not seem to take arguments.
> (Looking at the source file ctrl_iface_dbus_handlers.c in function
> wpas_dbus_iface_scan() you can see why - it doesn't handle or even
> look at the arguments to the message).
> 
> Is there another way to accomplish this?  
I don't know which version of wpa_supplicant you're using, but the new
D-Bus API (fi.w1.wpa_supplicant1.*) has a much more extended scanning
API. You can pass SSIDs, channels, IEs and the scanning type to it.

Cheers,
Samuel.



  parent reply	other threads:[~2010-08-20 11:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 20:25 scanning a specific ssid Christopher Piggott
2010-08-20  7:45 ` Johannes Berg
2010-08-20 11:05 ` Samuel Ortiz [this message]
2010-08-20 11:13   ` Witold Sowa
2010-08-20 11:31     ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1282302303.3662.5.camel@sortiz-mobl \
    --to=samuel@sortiz.org \
    --cc=cpiggott@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).