Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka
Hi, I didn't want dnsproxy. I already have a DNS service on my device, so I want that the nameserver configured in the final device by DHCP set to the same ip as the default gateway Is that possible? Can you try setting the FallbackNameservers in /etc/connman/main.conf? Tomasz

Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka
Hi, >>Can you try setting the FallbackNameservers in /etc/connman/main.conf? > FallBackNameserver are used only if you don't have any other dns from other connection like 3g. Correct? That's correct, but it is also used by default (if present) as the dns settings when tethering. Have a loo

Re: Configuring DHCP Server

2014-06-18 Thread Tomasz Bursztyka
Hi, FallBackNameserver are used only if you don't have any other dns from >>other connection like 3g. Correct? > > >That's correct, but it is also used by default (if present) as the dns >settings when tethering. >Have a look at src/tethering.c from line 234 to 261 > I was thinking that it's o

Re: [PATCH] service: check service->pending for NULL

2014-06-24 Thread Tomasz Bursztyka
Hi, +++ b/src/service.c @@ -4022,8 +4022,10 @@ static DBusMessage *connect_service(DBusConnection *conn, if (err == -EINPROGRESS) return NULL; - dbus_message_unref(service->pending); - service->pending = NULL; + if (service->pending) { + dbus

Re: [PATCH] service: check service->pending for NULL

2014-06-24 Thread Tomasz Bursztyka
Hi #0 __GI_raise (sig=6) at raise.c:67 #1 __GI_abort () at abort.c:91 #2 _dbus_abort () at dbus-sysdeps.c:94 #3 _dbus_warn_check_failed (format=0x403492c4 "arguments to %s() were incorrect, assertion \"%s\" failed in file %s line %d.\nThis is normally a bug in some application using the D-B

Re: [PATCH] service: cancel agent requests prior to deleting wispr context

2014-06-26 Thread Tomasz Bursztyka
Hi, - connman_agent_cancel(service); >+ __connman_wispr_stop(service); Just adding __connman_wispr_stop() should do the trick here. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman

Re: [PATCH] service: cancel agent requests prior to deleting wispr context

2014-06-26 Thread Tomasz Bursztyka
Hi, - connman_agent_cancel(service); >+__connman_wispr_stop(service); Just adding __connman_wispr_stop() should do the trick here. It could. However, if connman_agent_cancel() must be invoked every time __connman_wispr_stop() is called then it should be impossible to call __connman_

Re: [PATCH] wispr: Handle status codes 505 and 000 by the browser

2014-06-30 Thread Tomasz Bursztyka
Hi Pasi, Minor comments, Sometimes captive portal system might return these status codes when continuing with g_web_request_get after the initial 302 status code. Let the browser handle these cases. 000 is seen with http://www.hotspotsystem.com/ 505 is seen with http://nextmesh.net/ Special t

Re: [PATCH] wispr: Handle status codes 505 and 000 by the browser

2014-07-02 Thread Tomasz Bursztyka
Thanks Pasi, ACK from me. Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman

Re: [PATCH] wispr: Handle status codes 505 and 000 by the browser

2014-07-02 Thread Tomasz Bursztyka
Hi Pasi, + case 505: >>+ DBG("HTTP version not supported, hand over to the browser"); >Anyway, though handling this status 505 like you propose is fine, it >would be great to know what/where/how made this status to fix gweb then >(if there is something to be fixed there). I

[PATCH] doc: Add informations about the experimental P2P Peer services support

2014-07-04 Thread Tomasz Bursztyka
As soon as p2p technology is present, whether it is enabled or not, it will be possible to register and un-register P2P Peer services. These will be served once p2p technology gets enabled. When scanning for Peers is possible, Peer objects will show the proposed services of those if some are pres

Re: [PATCH] doc: Add informations about the experimental P2P Peer services support

2014-07-07 Thread Tomasz Bursztyka
Hi Daniel, Hi Tomasz, On 07/04/2014 03:05 PM, Tomasz Bursztyka wrote: As soon as p2p technology is present, whether it is enabled or not, it will be possible to register and un-register P2P Peer services. These will be served once p2p technology gets enabled. When scanning for Peers is

Re: More detailed wifi service information

2014-07-07 Thread Tomasz Bursztyka
Hi, Hello, found out about connman after having some problems with connecting to a network with wicd, and it's awesome. Since I liked it so much I started working on a Ruby library to interface with the daemon and a bundled fancy CLI. There is already (with newer version of connman) a nice CL

Re: More detailed wifi service information

2014-07-07 Thread Tomasz Bursztyka
Hi, What about hidden SSIDs? Is a single hidden network shown in the list? If not how can a user understand which one is the one he wants to connect to? ConnMan make services based on SSID and security specs (wep, wpa/wpa2, etc...). So if 2 AP shares the same SSID but with different security

Re: [RFC] Exposing network credentials to an application

2014-07-08 Thread Tomasz Bursztyka
Hi, Thanks Grant for the reply. The config option sounds right to me as a general solution. Connman folks, thoughts? I don't think we will ever put this PassPhrase property back again. And we don't do #ifdef here and there for small configurable parts. Too few real use cases, which could be t

Re: [RFC] Exposing network credentials to an application

2014-07-08 Thread Tomasz Bursztyka
Too few real use cases, which could be themselves be solved out of ConnMan. too many "be" in this sentence... ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman

[PATCH] dhcp: Keep the retry timeout nor the ipv4ll task in dhcp_invalidate

2014-07-08 Thread Tomasz Bursztyka
dhcp_invalidate is called it no_lease_cb, which one actually starts the retry callback and the ipv4ll task, thus this is bogus to remove them right after. --- src/dhcp.c | 8 1 file changed, 8 deletions(-) diff --git a/src/dhcp.c b/src/dhcp.c index bc47c8a..3cacb6a 100644 --- a/src/dhcp.

[PATCHi v2] doc: Add informations about the experimental P2P Peer services support

2014-07-08 Thread Tomasz Bursztyka
As soon as p2p technology is present, whether it is enabled or not, it will be possible to register and un-register P2P Peer services. These will be served once p2p technology gets enabled. When scanning for Peers is possible, Peer objects will show the proposed services of those if some are prese

[PATCH 1/2 v2] dhcp: Keep the retry timeout nor the ipv4ll task in dhcp_invalidate

2014-07-08 Thread Tomasz Bursztyka
This patch reverts part of a8e5f414f68defa2e07d5a38d56c283ab3036826. dhcp_invalidate is called by no_lease_cb. This one actually starts the retry callback and the ipv4ll task, thus this is bogus to remove them right after in dhcp_invalidate. --- src/dhcp.c | 8 1 file changed, 8 deletion

Re: [PATCH] wispr: request browser with status_url if redirect_url is not set

2014-07-09 Thread Tomasz Bursztyka
Hi, Nack on that patch, see below. From: Pasi Sjöholm Sometimes captive portal intercepts status_url-query without doing 302-redirect. It makes no sense to request browser with NULL as an url, therefore we need to use the status_url. --- src/wispr.c | 13 +++-- 1 file changed, 11 i

Re: [RFC] Exposing network credentials to an application

2014-07-09 Thread Tomasz Bursztyka
Hi Grant, As for use cases, I believe Drew and I have just presented a very real world and credible use case. This use case, when measured in shipping unit volumes that likely continues to make it one of the largest single (and possibly aggregate) connman implementations, is all the more real

[PATCH 00/32] Basic implementation of P2P Peer's Connect/Disconnect

2014-07-09 Thread Tomasz Bursztyka
ations though I did not get any error while testing. (*: ConnMan sets the go intent to 7 by default, so for testing: make sure the other end as a higher go intent. At least for now.) Tomasz Bursztyka (32): gsupplicant: Use StopFind instead of Flush to detect P2P support gsupplicant: Check w

[PATCH 07/32] gsupplicant: Add PeerJoined and PeerDisconnected group signals handlers

2014-07-09 Thread Tomasz Bursztyka
These signals are sent if only the group is the GO. This will let us know which peer successfully joined our group and thus - later - will help to declare a peer as being connected (even though we did not specifically asked to be connected to it). --- gsupplicant/supplicant.c | 59

[PATCH 02/32] gsupplicant: Check whether or not a peer support WPS PBC

2014-07-09 Thread Tomasz Bursztyka
This will be used to request the proper wps method when connecting to the peer. --- gsupplicant/gsupplicant.h | 4 gsupplicant/supplicant.c | 28 2 files changed, 32 insertions(+) diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 7a3c843.

[PATCH 03/32] gsupplicant: Add a function to set the P2P device name

2014-07-09 Thread Tomasz Bursztyka
The wifi plugin will use this function to specify the P2P device name, and will set it according to the hostname. --- gsupplicant/gsupplicant.h | 2 ++ gsupplicant/supplicant.c | 60 +++ 2 files changed, 62 insertions(+) diff --git a/gsupplicant/gsupp

[PATCH 05/32] gsupplicant: Add P2P group related signal handlers

2014-07-09 Thread Tomasz Bursztyka
These handlers make the link between the requested connection and the interface of the group instanciated in case of a successful group negociation. --- gsupplicant/gsupplicant.h | 5 ++ gsupplicant/supplicant.c | 174 ++ 2 files changed, 179 insertio

[PATCH 06/32] gsupplicant: Add support for peer PropertiesChanged signal

2014-07-09 Thread Tomasz Bursztyka
This is an important signal as it will clearly help to tell to which group this peer belongs, and thus to be able to determine if this peer is connected or not. --- gsupplicant/supplicant.c | 97 1 file changed, 97 insertions(+) diff --git a/gsuppl

[PATCH 04/32] gsupplicant: Always call peer_lost callback when removing a peer

2014-07-09 Thread Tomasz Bursztyka
Wpa_supplicant might stop without signaling the peer to be lost, thus when cleaning up it's up to remove_peer() to call peer_lost callback so the wifi plugin can handle it properly. --- gsupplicant/supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsupplicant/suppl

[PATCH 09/32] gsupplicant: Relate the connecting peer with the newly started group

2014-07-09 Thread Tomasz Bursztyka
This is mandatory for 2 reasons: - to get the current connecting peer's group relationship - this provides also the peer's connection interface: the group interface (if different than the originated connection interface) will help the wifi plugin to set the connection device to the Peer objec

[PATCH 08/32] gsupplicant: Add a callback and helpers to get peer's status

2014-07-09 Thread Tomasz Bursztyka
These will let the wifi plugin know whether the peer could connect, is connected or has disconnected. --- gsupplicant/gsupplicant.h | 12 gsupplicant/supplicant.c | 38 ++ 2 files changed, 50 insertions(+) diff --git a/gsupplicant/gsupplicant.h b/

[PATCH 01/32] gsupplicant: Use StopFind instead of Flush to detect P2P support

2014-07-09 Thread Tomasz Bursztyka
Flush implies a full reset of P2P status on the interface. When this is not a problem on a normal interface, it actually is one on a sub-interface created when connecting to a P2P peer. --- gsupplicant/supplicant.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gsuppli

[PATCH 11/32] gsupplicant: Add function to connect/disconnect a peer

2014-07-09 Thread Tomasz Bursztyka
Connection interface should be the master wifi interface. Disconnection interface should be the p2p wifi interface createn during connection. --- gsupplicant/gsupplicant.h | 20 +- gsupplicant/supplicant.c | 155 +- 2 files changed, 172 insertions(

[PATCH 22/32] peer: Add DBus support for peer's ipconfig object

2014-07-09 Thread Tomasz Bursztyka
Thus it is possible now to get peer's IPv4 ipconfig: - the IP address - the netmask - and the method --- src/peer.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 80120fc..0ff312f 100644 --- a/src/peer.c +++ b/src/peer

[PATCH 21/32] peer: Basic integration of ipconfig within a peer

2014-07-09 Thread Tomasz Bursztyka
Currently, only the peer as a client is supported. As a P2P peer is always in IPv4 via DHCP there is just one ipconfig object, only handled through dhcpv4. --- plugins/wifi.c | 5 ++- src/peer.c | 120 + 2 files changed, 124 insertions(

[PATCH 30/32] wifi: Set the sub-device for the connecting peer

2014-07-09 Thread Tomasz Bursztyka
Thus the peer will use the proper device when running dhcp. --- plugins/wifi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/plugins/wifi.c b/plugins/wifi.c index 0d5d51d..ba4ce66 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2361,6 +2361,21 @@ static void peer_change

[PATCH 10/32] gsupplicant: Provide an accessor for a peer to get it's group interface

2014-07-09 Thread Tomasz Bursztyka
This will be useful on a proper peer_changed() event to finally make the relation of a Peer and the newly instanciated interface, and thus the proper iface index to work with when running dhcp. --- gsupplicant/gsupplicant.h | 1 + gsupplicant/supplicant.c | 8 2 files changed, 9 insertio

[PATCH 13/32] peer: Add a function to get the peer identifier

2014-07-09 Thread Tomasz Bursztyka
This will be useful for the wifi plugin, and then gsupplicant, to retrieve the proper peer wpa_supplicant object path when connecting or disconnecting. --- include/peer.h | 1 + src/peer.c | 8 2 files changed, 9 insertions(+) diff --git a/include/peer.h b/include/peer.h index e069f4

[PATCH 31/32] test: Improve p2p test script to handle Peer's signal plus fixes

2014-07-09 Thread Tomasz Bursztyka
- Peer objects can send a PropertiesChanged signal, thus handling it - Fixing an issues on GroupFinished (my mistake actually) - p2p_peer get the up-to-date properties of the peer object --- test/p2p-on-supplicant | 33 +++-- 1 file changed, 23 insertions(+), 10 deletio

[PATCH 25/32] wifi: Technology driver registration returns 0 on success

2014-07-09 Thread Tomasz Bursztyka
Fixes current return value handling which does the contrary. --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 3c8f26f..9afff4e 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -1897,7 +1897,7 @@ static void p2p_support(

[PATCH 32/32] client: Add suport for connecting and disconnecting a peer

2014-07-09 Thread Tomasz Bursztyka
Use the same command as for service, discinction will be made against object's name: starting with peer_ or service_. --- client/commands.c | 33 ++--- client/dbus_helpers.c | 2 +- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/client/commands.c

[PATCH 15/32] peer: Add a reference counting mechanism for peer objects

2014-07-09 Thread Tomasz Bursztyka
This will be used on asynchronous call. E.g. DBus call Connect() etc... --- include/peer.h | 12 +- plugins/wifi.c | 4 +++- src/peer.c | 71 +- 3 files changed, 65 insertions(+), 22 deletions(-) diff --git a/include/peer.h b/in

[PATCH 14/32] peer: Add the ability to register/unregister a peer driver

2014-07-09 Thread Tomasz Bursztyka
This will be necessary for connecting or disconnecting a peer. --- include/peer.h | 8 src/peer.c | 20 2 files changed, 28 insertions(+) diff --git a/include/peer.h b/include/peer.h index 0304438..5c1d1ec 100644 --- a/include/peer.h +++ b/include/peer.h @@ -43,

[PATCH 26/32] wifi: Set the proper P2P device name if P2P is supported

2014-07-09 Thread Tomasz Bursztyka
Setting it always as the hostname. --- plugins/wifi.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 9afff4e..7efaa33 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -54,6 +54,7 @@ #include #include #include +#inclu

[PATCH 20/32] dhcp: Make possible to provide user data when starting dhcp

2014-07-09 Thread Tomasz Bursztyka
The dhcp callback had already a pointer for such user data, but it could not be set anywhere. Thus adding an extra parameter to __connman_dhcp_start so it is possible to provide such user_data. --- src/connman.h | 5 +++-- src/dhcp.c| 11 --- src/network.c | 5 +++-- 3 files changed,

[PATCH 27/32] wifi: Provide a peer driver to connect/disconnect a peer

2014-07-09 Thread Tomasz Bursztyka
This implement the logic to link the core to gsupplicant against peer connection and disconnection. --- plugins/wifi.c | 83 +- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 7efaa33..03719

[PATCH 29/32] wifi: Support peer's state changed when connecting or being notified

2014-07-09 Thread Tomasz Bursztyka
Apply state changing depending on current status and events. --- plugins/wifi.c | 121 +++-- 1 file changed, 110 insertions(+), 11 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index c1b4cfd..0d5d51d 100644 --- a/plugins/wifi.c +++ b

[PATCH 24/32] peer: Add the notion of sub-device used when connected.

2014-07-09 Thread Tomasz Bursztyka
A peer might get connected through a newly created specific device, thus the ipconfig needs to be aware of its index so it will set the ip address on the right interface. --- include/peer.h | 2 ++ src/peer.c | 17 + 2 files changed, 19 insertions(+) diff --git a/include/peer

[PATCH 17/32] peer: Fix peers list change notification

2014-07-09 Thread Tomasz Bursztyka
Be sure the current peer is registered and not part of removed peers. --- src/peer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 145ab78..a2c8eeb 100644 --- a/src/peer.c +++ b/src/peer.c @@ -126,12 +126,15 @@ static void append_existing_and

[PATCH 18/32] peer: Add the basic logic for peer state handling

2014-07-09 Thread Tomasz Bursztyka
This will permit to change the peer's state relevantly either from the wifi plugin or after configuring the ipconfig which will come later. Currently only connect and disconnect basics are handled. --- include/peer.h | 12 src/peer.c | 87 +

[PATCH 19/32] dhcp: Make dhcp running on ipconfig so network is optional

2014-07-09 Thread Tomasz Bursztyka
Thus dhcp code will be usable in peer, where there is no service nor network objects. --- src/connman.h | 8 +- src/dhcp.c| 364 +- src/network.c | 19 ++- 3 files changed, 203 insertions(+), 188 deletions(-) diff --git a/src/connman.

[PATCH 28/32] wifi: Handle incoming p2p device chicken and egg problem

2014-07-09 Thread Tomasz Bursztyka
When connecting with P2P, a new wifi device will be created and detected by both connman and wpa_supplicant. This last one will automatically create an interface out of it, thus the need to hold connman creating it itself through the DBus API. Instead, the device is put into a pending device list,

[PATCH 16/32] dbus: Factorize pending reply generic functions out of service.c

2014-07-09 Thread Tomasz Bursztyka
This function, not directly related to service, is used for instance in network.c and will be used elsewhere when implementing more peer logic. --- Makefile.am| 5 +++-- include/dbus.h | 3 +++ src/connman.h | 2 -- src/dbus.c | 32 src/network.c | 2

[PATCH 12/32] peer: Make a relation between a peer and a device

2014-07-09 Thread Tomasz Bursztyka
This will be necessary for a connection/disconnection request to work in the relevant wifi plugin. --- include/peer.h | 6 +- plugins/wifi.c | 9 +++-- src/peer.c | 43 --- 3 files changed, 48 insertions(+), 10 deletions(-) diff --git a/includ

[PATCH 23/32] peer: Connect and Disconnect methods implementation

2014-07-09 Thread Tomasz Bursztyka
As for service, it keeps track of pending DBus calls and so on. --- src/peer.c | 118 +++-- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/src/peer.c b/src/peer.c index 0ff312f..0dcb970 100644 --- a/src/peer.c +++ b/src/peer.

Re: [PATCH 02/32] gsupplicant: Check whether or not a peer support WPS PBC

2014-07-10 Thread Tomasz Bursztyka
Hi Daniel, +++ b/gsupplicant/gsupplicant.h @@ -78,6 +78,8 @@ extern "C" { #define G_SUPPLICANT_WPS_PIN(1 << 2) #define G_SUPPLICANT_WPS_REGISTRAR (1 << 3) +#define G_SUPPLICANT_WPS_CONFIG_PBC 0x0080 + Is there a special reason it is not like the defines above (1 << x)?

Re: [PATCH 03/32] gsupplicant: Add a function to set the P2P device name

2014-07-10 Thread Tomasz Bursztyka
Hi Daniel, +static void p2p_device_config_result(const char *error, + DBusMessageIter *iter, void *user_data) +{ + struct supplicant_p2p_dev_config *config = user_data; + + if (error) + SUPPLICANT_DBG("Unable to set P2P Device confi

Re: [PATCH 05/32] gsupplicant: Add P2P group related signal handlers

2014-07-10 Thread Tomasz Bursztyka
Hi Daniel, GSupplicantInterface *interface; char *path; unsigned char device_address[6]; + unsigned char iface_address[6]; I know it is too late but I would prefer a define ETH_ALEN from if_ether.h Not too late no :) I'll change device_address too. +

Re: [PATCH 19/32] dhcp: Make dhcp running on ipconfig so network is optional

2014-07-10 Thread Tomasz Bursztyka
Hi Daniel, +int __connman_dhcp_start(struct connman_ipconfig *ipconfig, >+ struct connman_network *opt_network, dhcp_cb callback); I don't know if we should encode if a parameter is optional. Looks a bit strange. Looks ugly actually yes I'll see for separating network/ipco

[PATCH 00/32 v2] Basic implementation of P2P Peer's Connect/Disconnect

2014-07-10 Thread Tomasz Bursztyka
o it should not generate collateral damage. Only patches 19-20 have some implications though I did not get any error while testing. (*: ConnMan sets the go intent to 7 by default, so for testing: make sure the other end as a higher go intent. At least for now.) Tomasz Bursztyka (32): gsupplican

[PATCH 03/32] gsupplicant: Add a function to set the P2P device name

2014-07-10 Thread Tomasz Bursztyka
The wifi plugin will use this function to specify the P2P device name, and will set it according to the hostname. --- gsupplicant/gsupplicant.h | 2 ++ gsupplicant/supplicant.c | 62 +++ 2 files changed, 64 insertions(+) diff --git a/gsupplicant/gsupp

[PATCH 04/32] gsupplicant: Always call peer_lost callback when removing a peer

2014-07-10 Thread Tomasz Bursztyka
Wpa_supplicant might stop without signaling the peer to be lost, thus when cleaning up it's up to remove_peer() to call peer_lost callback so the wifi plugin can handle it properly. --- gsupplicant/supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsupplicant/suppl

[PATCH 02/32] gsupplicant: Check whether or not a peer support WPS PBC

2014-07-10 Thread Tomasz Bursztyka
This will be used to request the proper wps method when connecting to the peer. --- gsupplicant/gsupplicant.h | 4 gsupplicant/supplicant.c | 28 2 files changed, 32 insertions(+) diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 7a3c843.

[PATCH 01/32] gsupplicant: Use StopFind instead of Flush to detect P2P support

2014-07-10 Thread Tomasz Bursztyka
Flush implies a full reset of P2P status on the interface. When this is not a problem on a normal interface, it actually is one on a sub-interface created when connecting to a P2P peer. --- gsupplicant/supplicant.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gsuppli

[PATCH 06/32] gsupplicant: Add support for peer PropertiesChanged signal

2014-07-10 Thread Tomasz Bursztyka
This is an important signal as it will clearly help to tell to which group this peer belongs, and thus to be able to determine if this peer is connected or not. --- gsupplicant/supplicant.c | 97 1 file changed, 97 insertions(+) diff --git a/gsuppl

[PATCH 11/32] gsupplicant: Add function to connect/disconnect a peer

2014-07-10 Thread Tomasz Bursztyka
Connection interface should be the master wifi interface. Disconnection interface should be the p2p wifi interface createn during connection. --- gsupplicant/gsupplicant.h | 20 +- gsupplicant/supplicant.c | 155 +- 2 files changed, 172 insertions(

[PATCH 09/32] gsupplicant: Relate the connecting peer with the newly started group

2014-07-10 Thread Tomasz Bursztyka
This is mandatory for 2 reasons: - to get the current connecting peer's group relationship - this provides also the peer's connection interface: the group interface (if different than the originated connection interface) will help the wifi plugin to set the connection device to the Peer objec

[PATCH 07/32] gsupplicant: Add PeerJoined and PeerDisconnected group signals handlers

2014-07-10 Thread Tomasz Bursztyka
These signals are sent if only the group is the GO. This will let us know which peer successfully joined our group and thus - later - will help to declare a peer as being connected (even though we did not specifically asked to be connected to it). --- gsupplicant/supplicant.c | 59

[PATCH 05/32] gsupplicant: Add P2P group related signal handlers

2014-07-10 Thread Tomasz Bursztyka
These handlers make the link between the requested connection and the interface of the group instanciated in case of a successful group negociation. --- gsupplicant/gsupplicant.h | 5 ++ gsupplicant/supplicant.c | 166 -- 2 files changed, 167 insertio

[PATCH 12/32] peer: Make a relation between a peer and a device

2014-07-10 Thread Tomasz Bursztyka
This will be necessary for a connection/disconnection request to work in the relevant wifi plugin. --- include/peer.h | 6 +- plugins/wifi.c | 9 +++-- src/peer.c | 43 --- 3 files changed, 48 insertions(+), 10 deletions(-) diff --git a/includ

[PATCH 26/32] wifi: Set the proper P2P device name if P2P is supported

2014-07-10 Thread Tomasz Bursztyka
Setting it always as the hostname. --- plugins/wifi.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 9afff4e..7efaa33 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -54,6 +54,7 @@ #include #include #include +#inclu

[PATCH 28/32] wifi: Handle incoming p2p device chicken and egg problem

2014-07-10 Thread Tomasz Bursztyka
When connecting with P2P, a new wifi device will be created and detected by both connman and wpa_supplicant. This last one will automatically create an interface out of it, thus the need to hold connman creating it itself through the DBus API. Instead, the device is put into a pending device list,

[PATCH 29/32] wifi: Support peer's state changed when connecting or being notified

2014-07-10 Thread Tomasz Bursztyka
Apply state changing depending on current status and events. --- plugins/wifi.c | 121 +++-- 1 file changed, 110 insertions(+), 11 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index c1b4cfd..0d5d51d 100644 --- a/plugins/wifi.c +++ b

[PATCH 25/32] wifi: Technology driver registration returns 0 on success

2014-07-10 Thread Tomasz Bursztyka
Fixes current return value handling which does the contrary. --- plugins/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 3c8f26f..9afff4e 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -1897,7 +1897,7 @@ static void p2p_support(

[PATCH 17/32] peer: Fix peers list change notification

2014-07-10 Thread Tomasz Bursztyka
Be sure the current peer is registered and not part of removed peers. --- src/peer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 145ab78..a2c8eeb 100644 --- a/src/peer.c +++ b/src/peer.c @@ -126,12 +126,15 @@ static void append_existing_and

[PATCH 22/32] peer: Add DBus support for peer's ipconfig object

2014-07-10 Thread Tomasz Bursztyka
Thus it is possible now to get peer's IPv4 ipconfig: - the IP address - the netmask - and the method --- src/peer.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 80120fc..0ff312f 100644 --- a/src/peer.c +++ b/src/peer

[PATCH 20/32] dhcp: Make possible to provide user data when starting dhcp

2014-07-10 Thread Tomasz Bursztyka
The dhcp callback had already a pointer for such user data, but it could not be set anywhere. Thus adding an extra parameter to __connman_dhcp_start so it is possible to provide such user_data. --- src/connman.h | 3 ++- src/dhcp.c| 11 --- src/network.c | 5 +++-- 3 files changed, 1

[PATCH 24/32] peer: Add the notion of sub-device used when connected.

2014-07-10 Thread Tomasz Bursztyka
A peer might get connected through a newly created specific device, thus the ipconfig needs to be aware of its index so it will set the ip address on the right interface. --- include/peer.h | 2 ++ src/peer.c | 17 + 2 files changed, 19 insertions(+) diff --git a/include/peer

[PATCH 31/32] test: Improve p2p test script to handle Peer's signal plus fixes

2014-07-10 Thread Tomasz Bursztyka
- Peer objects can send a PropertiesChanged signal, thus handling it - Fixing an issues on GroupFinished (my mistake actually) - p2p_peer get the up-to-date properties of the peer object --- test/p2p-on-supplicant | 33 +++-- 1 file changed, 23 insertions(+), 10 deletio

[PATCH 13/32] peer: Add a function to get the peer identifier

2014-07-10 Thread Tomasz Bursztyka
This will be useful for the wifi plugin, and then gsupplicant, to retrieve the proper peer wpa_supplicant object path when connecting or disconnecting. --- include/peer.h | 1 + src/peer.c | 8 2 files changed, 9 insertions(+) diff --git a/include/peer.h b/include/peer.h index e069f4

[PATCH 30/32] wifi: Set the sub-device for the connecting peer

2014-07-10 Thread Tomasz Bursztyka
Thus the peer will use the proper device when running dhcp. --- plugins/wifi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/plugins/wifi.c b/plugins/wifi.c index 0d5d51d..ba4ce66 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2361,6 +2361,21 @@ static void peer_change

[PATCH 08/32] gsupplicant: Add a callback and helpers to get peer's status

2014-07-10 Thread Tomasz Bursztyka
These will let the wifi plugin know whether the peer could connect, is connected or has disconnected. --- gsupplicant/gsupplicant.h | 12 +++ gsupplicant/supplicant.c | 54 +++ 2 files changed, 66 insertions(+) diff --git a/gsupplicant/gsupplic

[PATCH 27/32] wifi: Provide a peer driver to connect/disconnect a peer

2014-07-10 Thread Tomasz Bursztyka
This implement the logic to link the core to gsupplicant against peer connection and disconnection. --- plugins/wifi.c | 83 +- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 7efaa33..03719

[PATCH 21/32] peer: Basic integration of ipconfig within a peer

2014-07-10 Thread Tomasz Bursztyka
Currently, only the peer as a client is supported. As a P2P peer is always in IPv4 via DHCP there is just one ipconfig object, only handled through dhcpv4. --- plugins/wifi.c | 5 ++- src/peer.c | 120 + 2 files changed, 124 insertions(

[PATCH 19/32] dhcp: Make dhcp running on ipconfig so network is optional

2014-07-10 Thread Tomasz Bursztyka
Thus dhcp code will be usable in peer, where there is no service nor network objects. --- src/connman.h | 8 +- src/dhcp.c| 368 ++ src/network.c | 19 ++- 3 files changed, 208 insertions(+), 187 deletions(-) diff --git a/src/connman.

[PATCH 23/32] peer: Connect and Disconnect methods implementation

2014-07-10 Thread Tomasz Bursztyka
As for service, it keeps track of pending DBus calls and so on. --- src/peer.c | 118 +++-- 1 file changed, 116 insertions(+), 2 deletions(-) diff --git a/src/peer.c b/src/peer.c index 0ff312f..a532a57 100644 --- a/src/peer.c +++ b/src/peer.

[PATCH 14/32] peer: Add the ability to register/unregister a peer driver

2014-07-10 Thread Tomasz Bursztyka
This will be necessary for connecting or disconnecting a peer. --- include/peer.h | 8 src/peer.c | 20 2 files changed, 28 insertions(+) diff --git a/include/peer.h b/include/peer.h index 0304438..5c1d1ec 100644 --- a/include/peer.h +++ b/include/peer.h @@ -43,

[PATCH 10/32] gsupplicant: Provide an accessor for a peer to get it's group interface

2014-07-10 Thread Tomasz Bursztyka
This will be useful on a proper peer_changed() event to finally make the relation of a Peer and the newly instanciated interface, and thus the proper iface index to work with when running dhcp. --- gsupplicant/gsupplicant.h | 1 + gsupplicant/supplicant.c | 8 2 files changed, 9 insertio

[PATCH 32/32] client: Add suport for connecting and disconnecting a peer

2014-07-10 Thread Tomasz Bursztyka
Use the same command as for service, discinction will be made against object's name: starting with peer_ or service_. --- client/commands.c | 33 ++--- client/dbus_helpers.c | 2 +- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/client/commands.c

[PATCH 16/32] dbus: Factorize pending reply generic functions out of service.c

2014-07-10 Thread Tomasz Bursztyka
This function, not directly related to service, is used for instance in network.c and will be used elsewhere when implementing more peer logic. --- Makefile.am| 5 +++-- include/dbus.h | 3 +++ src/connman.h | 2 -- src/dbus.c | 32 src/network.c | 2

[PATCH 15/32] peer: Add a reference counting mechanism for peer objects

2014-07-10 Thread Tomasz Bursztyka
This will be used on asynchronous call. E.g. DBus call Connect() etc... --- include/peer.h | 12 +- plugins/wifi.c | 4 +++- src/peer.c | 71 +- 3 files changed, 65 insertions(+), 22 deletions(-) diff --git a/include/peer.h b/in

[PATCH 18/32] peer: Add the basic logic for peer state handling

2014-07-10 Thread Tomasz Bursztyka
This will permit to change the peer's state relevantly either from the wifi plugin or after configuring the ipconfig which will come later. Currently only connect and disconnect basics are handled. --- include/peer.h | 12 src/peer.c | 87 +

[PATCH 02/32] gsupplicant: Check whether or not a peer support WPS PBC

2014-07-10 Thread Tomasz Bursztyka
This will be used to request the proper wps method when connecting to the peer. --- gsupplicant/gsupplicant.h | 4 gsupplicant/supplicant.c | 32 2 files changed, 36 insertions(+) diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 7a3c

[PATCH 02/32] gsupplicant: Check whether or not a peer support WPS PBC

2014-07-11 Thread Tomasz Bursztyka
This will be used to request the proper wps method when connecting to the peer. --- gsupplicant/gsupplicant.h | 4 gsupplicant/supplicant.c | 32 2 files changed, 36 insertions(+) diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 7a3c

[PATCH 00/32 v3] Basic implementation of P2P Peer's Connect/Disconnect

2014-07-11 Thread Tomasz Bursztyka
ntent. At least for now.) Tomasz Bursztyka (32): gsupplicant: Use StopFind instead of Flush to detect P2P support gsupplicant: Check whether or not a peer support WPS PBC gsupplicant: Add a function to set the P2P device name gsupplicant: Always call peer_lost callback when removing a pee

[PATCH 04/32] gsupplicant: Always call peer_lost callback when removing a peer

2014-07-11 Thread Tomasz Bursztyka
Wpa_supplicant might stop without signaling the peer to be lost, thus when cleaning up it's up to remove_peer() to call peer_lost callback so the wifi plugin can handle it properly. --- gsupplicant/supplicant.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsupplicant/suppl

[PATCH 01/32] gsupplicant: Use StopFind instead of Flush to detect P2P support

2014-07-11 Thread Tomasz Bursztyka
Flush implies a full reset of P2P status on the interface. When this is not a problem on a normal interface, it actually is one on a sub-interface created when connecting to a P2P peer. --- gsupplicant/supplicant.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gsuppli

[PATCH 17/32] peer: Fix peers list change notification

2014-07-11 Thread Tomasz Bursztyka
Be sure the current peer is registered and not part of removed peers. --- src/peer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/peer.c b/src/peer.c index 145ab78..a2c8eeb 100644 --- a/src/peer.c +++ b/src/peer.c @@ -126,12 +126,15 @@ static void append_existing_and

[PATCH 11/32] gsupplicant: Add function to connect/disconnect a peer

2014-07-11 Thread Tomasz Bursztyka
Connection interface should be the master wifi interface. Disconnection interface should be the p2p wifi interface createn during connection. --- gsupplicant/gsupplicant.h | 20 +- gsupplicant/supplicant.c | 155 +- 2 files changed, 172 insertions(

[PATCH 19/32] dhcp: Make dhcp running on ipconfig so network is optional

2014-07-11 Thread Tomasz Bursztyka
Thus dhcp code will be usable in peer, where there is no service nor network objects. --- src/connman.h | 8 +- src/dhcp.c| 368 ++ src/network.c | 19 ++- 3 files changed, 208 insertions(+), 187 deletions(-) diff --git a/src/connman.

[PATCH 20/32] dhcp: Make possible to provide user data when starting dhcp

2014-07-11 Thread Tomasz Bursztyka
The dhcp callback had already a pointer for such user data, but it could not be set anywhere. Thus adding an extra parameter to __connman_dhcp_start so it is possible to provide such user_data. --- src/connman.h | 3 ++- src/dhcp.c| 11 --- src/network.c | 5 +++-- 3 files changed, 1

<    1   2   3   4   5   6   7   8   9   10   >