* scanning a specific ssid
@ 2010-08-19 20:25 Christopher Piggott
2010-08-20 7:45 ` Johannes Berg
2010-08-20 11:05 ` Samuel Ortiz
0 siblings, 2 replies; 5+ messages in thread
From: Christopher Piggott @ 2010-08-19 20:25 UTC (permalink / raw)
To: linux-wireless
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 notice that a number of
dbus messages trigger a scan. I don't really want to try to associate
with it, but perhaps that's the only way.
(I guess I could try to trigger the scan via netlink and receive the
results via dbus..... messy).
--Chris
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scanning a specific ssid
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
1 sibling, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2010-08-20 7:45 UTC (permalink / raw)
To: Christopher Piggott; +Cc: linux-wireless
On Thu, 2010-08-19 at 16:25 -0400, Christopher Piggott wrote:
> 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 notice that a number of
> dbus messages trigger a scan. I don't really want to try to associate
> with it, but perhaps that's the only way.
You should probably just extend the dbus API to allow passing in the
information you want? But not all drivers can always support that,
afaik.
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scanning a specific ssid
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
2010-08-20 11:13 ` Witold Sowa
1 sibling, 1 reply; 5+ messages in thread
From: Samuel Ortiz @ 2010-08-20 11:05 UTC (permalink / raw)
To: Christopher Piggott; +Cc: linux-wireless
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scanning a specific ssid
2010-08-20 11:05 ` Samuel Ortiz
@ 2010-08-20 11:13 ` Witold Sowa
2010-08-20 11:31 ` Johannes Berg
0 siblings, 1 reply; 5+ messages in thread
From: Witold Sowa @ 2010-08-20 11:13 UTC (permalink / raw)
To: Samuel Ortiz; +Cc: Christopher Piggott, linux-wireless
Samuel Ortiz pisze:
> 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.
>
The new DBus API is present only in development (0.7.x) branch of
wpa_supplicant. 0.6.10 and earlier support only the old API which,
indeed, has very limited scanning options capabilities.
Witek.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: scanning a specific ssid
2010-08-20 11:13 ` Witold Sowa
@ 2010-08-20 11:31 ` Johannes Berg
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Berg @ 2010-08-20 11:31 UTC (permalink / raw)
To: Witold Sowa; +Cc: Samuel Ortiz, Christopher Piggott, linux-wireless
On Fri, 2010-08-20 at 13:13 +0200, Witold Sowa wrote:
> The new DBus API is present only in development (0.7.x) branch of
> wpa_supplicant. 0.6.10 and earlier support only the old API which,
> indeed, has very limited scanning options capabilities.
0.8.x is the development branch now :)
johannes
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-08-20 11:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-08-20 11:13 ` Witold Sowa
2010-08-20 11:31 ` Johannes Berg
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).