Hi,

Hi Raghavendra,
>   Which API, I should use for specific ssid scanning?
>
>   RequestScan() and ProposeScan() are for normal scan operation, there is
no
> way where I can send ssid/ap name as an argument in these APIs.
>
>
>   Please let me know which API I should use for ssid based scanning.
there is no such API since it is not needed.

[Raghu]: I am confused here. Without me passing which ssid to scan, how
connman will know, which ap/ssid to be scannned?

In my testing I had hidden my ap having ssid "test123". Then request scan to
connman using "RequestScan" method.

 I am  requesting scan and getting scanresult through following method.
dbus-send --system --print-reply --dest=org.moblin.connman /
org.moblin.connman.Manager.RequestScan string:"wifi"
dbus-send --system --print-reply --dest=org.moblin.connman /
org.moblin.connman.Manager.GetServices


In scan result my hidden ap "test123" is not shown.

Is there other way by which I can see my "test123" ap in the scan result?



Regards
Marcel





On Sat, Sep 25, 2010 at 4:00 AM, <[email protected]> wrote:

> Send connman mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.connman.net/listinfo/connman
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of connman digest..."
>
>
> Today's Topics:
>
>   1. [PATCH] rtnl: support isimodem GPRS connections
>      ([email protected])
>   2. Re: [PATCH] rtnl: support isimodem GPRS connections
>      (Marcel Holtmann)
>   3. API for ssid based scanning (Raghavendra. S)
>   4. Re: API for ssid based scanning (Marcel Holtmann)
>   5. Re: connman and cmcc: howto check if connman is started
>      (Stephan Raue)
>   6. Re: RFC: Advanced session handling for applications (Patrik Flykt)
>   7. Re: [PATCH] rtnl: support isimodem GPRS connections (Pekka Pessi)
>   8. Re: connman and cmcc: howto check if connman is started
>      (Pekka Pessi)
>   9. [PATCH] Support -p and -P options with list of plugins
>      ([email protected])
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 23 Sep 2010 22:44:09 +0300
> From: [email protected]
> To: [email protected]
> Cc: Pekka Pessi <[email protected]>
> Subject: [PATCH] rtnl: support isimodem GPRS connections
> Message-ID: <[email protected]>
>
> From: Pekka Pessi <[email protected]>
>
> The isimodem GPRS connections (PHONET_PIPEs) have ARP header type 821.
> ---
>  src/rtnl.c |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/rtnl.c b/src/rtnl.c
> index 83f7952..ec9a5a7 100644
> --- a/src/rtnl.c
> +++ b/src/rtnl.c
> @@ -38,6 +38,10 @@
>
>  #include "connman.h"
>
> +#ifndef ARPHDR_PHONET_PIPE
> +#define ARPHDR_PHONET_PIPE (821)
> +#endif
> +
>  #define print(arg...) do { } while (0)
>  //#define print(arg...) connman_info(arg)
>
> @@ -398,6 +402,7 @@ static void process_newlink(unsigned short type, int
> index, unsigned flags,
>        switch (type) {
>        case ARPHRD_ETHER:
>        case ARPHRD_LOOPBACK:
> +       case ARPHDR_PHONET_PIPE:
>        case ARPHRD_NONE:
>                __connman_ipconfig_newlink(index, type, flags,
>                                                        str, mtu, &stats);
> --
> 1.7.0.4
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 24 Sep 2010 10:02:58 +0900
> From: Marcel Holtmann <[email protected]>
> To: [email protected]
> Cc: Pekka Pessi <[email protected]>
> Subject: Re: [PATCH] rtnl: support isimodem GPRS connections
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi Pekka,
>
> > The isimodem GPRS connections (PHONET_PIPEs) have ARP header type 821.
> > ---
> >  src/rtnl.c |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/src/rtnl.c b/src/rtnl.c
> > index 83f7952..ec9a5a7 100644
> > --- a/src/rtnl.c
> > +++ b/src/rtnl.c
> > @@ -38,6 +38,10 @@
> >
> >  #include "connman.h"
> >
> > +#ifndef ARPHDR_PHONET_PIPE
> > +#define ARPHDR_PHONET_PIPE (821)
> > +#endif
> > +
> >  #define print(arg...) do { } while (0)
> >  //#define print(arg...) connman_info(arg)
> >
> > @@ -398,6 +402,7 @@ static void process_newlink(unsigned short type, int
> index, unsigned flags,
> >       switch (type) {
> >       case ARPHRD_ETHER:
> >       case ARPHRD_LOOPBACK:
> > +     case ARPHDR_PHONET_PIPE:
> >       case ARPHRD_NONE:
> >               __connman_ipconfig_newlink(index, type, flags,
> >                                                       str, mtu, &stats);
>
> we don't really need this since we are detecting ISI GPRS connections
> via oFono actually. Do you want this for the statistics counting? If so,
> then yes, I forgot to think about that part. Even PPP and HSO might be
> affected here. Unless both are actually using ARPHRD_NONE which I have
> to double-check.
>
> Does this have any side effect that we might have not thought about when
> it comes to device detection.
>
> In the end I wanted to remove the udev based detection from ConnMan and
> do everything via RTNL. udev is not really needed by ConnMan at all
> anymore since all 3G and Bluetooth detection is done via oFono and BlueZ
> these days. And only oFono needs udev since it deals with TTYs.
>
> Regards
>
> Marcel
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 24 Sep 2010 12:41:00 +0900
> From: "Raghavendra. S" <[email protected]>
> To: [email protected]
> Subject: API for ssid based scanning
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi,
>
>  Which API, I should use for specific ssid scanning?
>
>  RequestScan() and ProposeScan() are for normal scan operation, there is no
> way where I can send ssid/ap name as an argument in these APIs.
>
>
>  Please let me know which API I should use for ssid based scanning.
>
>
> --
> Regards & Thanks
> Raghavendra. S
> 9880329621
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 24 Sep 2010 17:12:48 +0900
> From: Marcel Holtmann <[email protected]>
> To: [email protected]
> Subject: Re: API for ssid based scanning
> Message-ID: <1285315968.30701.0.ca...@aeonflux>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi Raghavendra,
>
> >   Which API, I should use for specific ssid scanning?
> >
> >   RequestScan() and ProposeScan() are for normal scan operation, there is
> no
> > way where I can send ssid/ap name as an argument in these APIs.
> >
> >
> >   Please let me know which API I should use for ssid based scanning.
>
> there is no such API since it is not needed.
>
> Regards
>
> Marcel
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 24 Sep 2010 10:52:16 +0200
> From: Stephan Raue <[email protected]>
> To: [email protected]
> Subject: Re: connman and cmcc: howto check if connman is started
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Kalle,
>
> Am 23.09.2010 14:34, schrieb Kalle Valo:
> > Stephan Raue<[email protected]>  writes:
> >
> >
> >> i use connman and on top of this cmcc from indicator-network package
> >> to setup connman.
> >>
> > Ok, so these are ubuntu packages.
> >
> >
> >> connman will be started from init script
> >>
> > I assume you are using recent connman ubuntu packages which use upstart
> > (ie. you have a file /etc/init/connman.conf).
> >
> >
> >> and will be setup with the same init script via cmcc.
> >>
> > Sorry, I don't understand this sentence. Can you elaborate, please?
> >
> > And why do you want to run cmcc on boot? That doesn't sound right to me.
> >
> >
> >> after connman is started cmcc fails because connman is not up. is it
> >> possible in any way (in an shell init script) to check if connman is
> >> ready with starting to setup connman? i dont want use sleep or
> >> anything
> >>
> > In principle upstart supports this with the "start on" stanza:
> >
> > http://upstart.ubuntu.com/wiki/Stanzas
> >
> > But first I would like to go backwards a bit and understand the real
> > problem you are trying to solve. Most probably there is a better way
> > than running than cmcc after connmand has started.
> >
> >
> yes but i dont use ubuntu. to explain a bit more, i have created an
> small embedded distribution and want use connman for networking. now i
> need an solution to setup connman from my shell based init scripts for
> static and wlan config (the config is stored in an config file). i have
> found your cmcc script inside the indicator-network package and it works
> great (this time only for wired networks).
>
> to see how i want use this look here:
> for the initial configfile:
>
> http://openelec.git.sourceforge.net/git/gitweb.cgi?p=openelec/openelec;a=blob;f=packages/network/connman/config/network.conf
> for the init script:
>
> http://openelec.git.sourceforge.net/git/gitweb.cgi?p=openelec/openelec;a=blob;f=packages/network/connman/init.d/13_network
>
> now the problem is, that cmcc will be run directly after starting
> connman, and this fails, because connman is not ready with startup so i
> must use an sleep or usleep.
>
> Stephan
>
> --
>               ### OpenELEC.tv ###
> The free and open Mediacenter Distribution 4 you
>              http://www.openelec.tv
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 24 Sep 2010 12:33:49 +0300
> From: Patrik Flykt <[email protected]>
> To: "[email protected]" <[email protected]>
> Subject: Re: RFC: Advanced session handling for applications
> Message-ID: <1285320829.3230.36.ca...@headland2>
> Content-Type: text/plain; charset="UTF-8"
>
>
>        Hi,
>
> I'm wondering how to express varying importance levels on network
> connections with ConnMan. I would like to have ConnMan notifying
> application sessions based on their "importance" where the notification
> decision can be made based on roaming status, remaining network download
> quota, etc.
>
> Is this the purpose of the proposed 'Priority' setting? I'm wondering
> about the proposal text that says "...In general application are not
> allowed to make themselves more important than others..." That doesn't
> exclude applications setting themselves *less* important than others, I
> hope? Would ConnMan in cases with 'Priority=false' be able to look at
> device state and network reachability, etc. and be able to choose not to
> serve these appliacations in certain situations?
>
>
> Cheers,
>
>        Patrik
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 24 Sep 2010 15:11:56 +0300
> From: Pekka Pessi <[email protected]>
> To: [email protected]
> Subject: Re: [PATCH] rtnl: support isimodem GPRS connections
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Marcel,
>
> 2010/9/24 Marcel Holtmann <[email protected]>:
> >> The isimodem GPRS connections (PHONET_PIPEs) have ARP header type 821.
> > we don't really need this since we are detecting ISI GPRS connections
> > via oFono actually. Do you want this for the statistics counting?
>
> I should have mentioned it in the commit message, but I want it for
> the DNS proxy. As it happens, the DNS proxy is not configured if we
> don't have the ipconfig created via rtnl.
>
> > Does this have any side effect that we might have not thought about when
> > it comes to device detection.
>
> That is the problem.
>
> --Pekka
>
>
> --
> Pekka.Pessi mail at nokia.com
>
>
> ------------------------------
>
> Message: 8
> Date: Fri, 24 Sep 2010 15:14:35 +0300
> From: Pekka Pessi <[email protected]>
> To: [email protected]
> Subject: Re: connman and cmcc: howto check if connman is started
> Message-ID:
>        <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Stephan,
>
> 2010/9/24 Stephan Raue <[email protected]>:
> > yes but i dont use ubuntu. to explain a bit more, i have created an small
> > embedded distribution and want use connman for networking. now i need an
> > solution to setup connman from my shell based init scripts for static and
> > wlan config (the config is stored in an config file). i have found your
> cmcc
> > script inside the indicator-network package and it works great (this time
> > only for wired networks).
>
> You could create a simple program that waits until a certain bus name
> is visible in system or session bus. I believe that would be very
> useful for Ubuntu, too. (They might even have one already).
>
> --
> Pekka.Pessi mail at nokia.com
>
>
> ------------------------------
>
> Message: 9
> Date: Fri, 24 Sep 2010 17:22:54 +0300
> From: [email protected]
> To: [email protected]
> Cc: Pekka Pessi <[email protected]>
> Subject: [PATCH] Support -p and -P options with list of plugins
> Message-ID: <[email protected]>
>
> From: Pekka Pessi <[email protected]>
>
> ---
>  src/main.c   |    4 ++--
>  src/plugin.c |   38 +++++++++++++++++++++++++++-----------
>  2 files changed, 29 insertions(+), 13 deletions(-)
>
> diff --git a/src/main.c b/src/main.c
> index dd7084b..8be8451 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -87,9 +87,9 @@ static GOptionEntry options[] = {
>        { "nodevice", 'I', 0, G_OPTION_ARG_STRING, &option_nodevice,
>                        "Specify networking interface to ignore", "DEV" },
>        { "plugin", 'p', 0, G_OPTION_ARG_STRING, &option_plugin,
> -                               "Specify plugins to load", "NAME" },
> +                               "Specify plugins to load", "NAME,..." },
>        { "noplugin", 'P', 0, G_OPTION_ARG_STRING, &option_noplugin,
> -                               "Specify plugins not to load", "NAME" },
> +                               "Specify plugins not to load", "NAME,..."
> },
>        { "wifi", 'W', 0, G_OPTION_ARG_STRING, &option_wifi,
>                                "Specify driver for WiFi/Supplicant", "NAME"
> },
>        { "nodaemon", 'n', G_OPTION_FLAG_REVERSE,
> diff --git a/src/plugin.c b/src/plugin.c
> index 286ad39..6aa8278 100644
> --- a/src/plugin.c
> +++ b/src/plugin.c
> @@ -86,18 +86,26 @@ static gboolean add_plugin(void *handle, struct
> connman_plugin_desc *desc)
>  }
>
>  static gboolean check_plugin(struct connman_plugin_desc *desc,
> -                               const char *pattern, const char *exclude)
> +                               char **patterns, char **excludes)
>  {
> -       if (exclude != NULL &&
> -                       g_pattern_match_simple(exclude, desc->name) ==
> TRUE) {
> -               connman_info("Excluding %s", desc->description);
> -               return FALSE;
> +       if (excludes) {
> +               for (; *excludes; excludes++)
> +                       if (g_pattern_match_simple(*excludes, desc->name))
> +                               break;
> +               if (*excludes) {
> +                       connman_info("Excluding %s", desc->description);
> +                       return FALSE;
> +               }
>        }
>
> -       if (pattern != NULL &&
> -                       g_pattern_match_simple(pattern, desc->name) ==
> FALSE) {
> -               connman_info("Ignoring %s", desc->description);
> -               return FALSE;
> +       if (patterns) {
> +               for (; *patterns; patterns++)
> +                       if (g_pattern_match_simple(*patterns, desc->name))
> +                               break;
> +               if (!*patterns) {
> +                       connman_info("Ignoring %s", desc->description);
> +                       return FALSE;
> +               }
>        }
>
>        return TRUE;
> @@ -107,6 +115,8 @@ static gboolean check_plugin(struct connman_plugin_desc
> *desc,
>
>  int __connman_plugin_init(const char *pattern, const char *exclude)
>  {
> +       gchar **patterns = NULL;
> +       gchar **excludes = NULL;
>        GSList *list;
>        GDir *dir;
>        const gchar *file;
> @@ -115,9 +125,15 @@ int __connman_plugin_init(const char *pattern, const
> char *exclude)
>
>        DBG("");
>
> +       if (pattern)
> +               patterns = g_strsplit_set(pattern, ", ", -1);
> +
> +       if (exclude)
> +               excludes = g_strsplit_set(exclude, ", ", -1);
> +
>        for (i = 0; __connman_builtin[i]; i++) {
>                if (check_plugin(__connman_builtin[i],
> -                                               pattern, exclude) == FALSE)
> +                                               patterns, excludes) ==
> FALSE)
>                        continue;
>
>                add_plugin(NULL, __connman_builtin[i]);
> @@ -153,7 +169,7 @@ int __connman_plugin_init(const char *pattern, const
> char *exclude)
>                                continue;
>                        }
>
> -                       if (check_plugin(desc, pattern, exclude) == FALSE)
> {
> +                       if (check_plugin(desc, patterns, excludes) ==
> FALSE) {
>                                dlclose(handle);
>                                continue;
>                        }
> --
> 1.7.0.4
>
>
>
> ------------------------------
>
> _______________________________________________
> connman mailing list
> [email protected]
> http://lists.connman.net/listinfo/connman
>
> End of connman Digest, Vol 20, Issue 42
> ***************************************
>



-- 
Regards & Thanks
Raghavendra. S
9880329621
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to