file "data"
by wangfe-nestlabs
Hi,
In the /var/lib/connman/wifi_xxxx directory, there is a file “data”. Does anybody know what it is for? And which part of code create it?
Thanks,
Feng
4 years, 8 months
Use connmanctrl to test Wifi P2P feature failed
by Gu, Chao Jie
Hi all,
We use connmanctl to test Wifi P2P feature in Ostro OS on 2 Galileo board(wifi chip intel-7260).
Our test software environment is : ConnMan version 1.32, wpa_supplicant version 2.5, kernel version 4.4.10
On Both side we use connmanctl to enable wifi, enable p2p and agent on.
Then on one side, my command as below:
connmanctl> scan p2p
Scan completed for p2p
connmanctl> peers
Push2TV C8E65B-PTV3000 idle peer_8086f2276bae_2ac68ec8e65b
connmanctl> connect peer_8086f2276bae_2ac68ec8e65b
Agent RequestPeerAuthorization peer_8086f2276bae_2ac68ec8e65b
WPS = [ Type=wpspin, Requirement=mandatory ]
WPS PIN (empty line for pushbutton)? yes
Error /net/connman/peer/peer_8086f2276bae_2ac68ec8e65b: Input/output error
connmanctl>
connmanctl> connect peer_8086f2276bae_2ac68ec8e65b
Agent RequestPeerAuthorization peer_8086f2276bae_2ac68ec8e65b
WPS = [ Type=wpspin, Requirement=mandatory ]
WPS PIN (empty line for pushbutton)?
connmanctl> IPv6: ADDRCONF(NETDEV_UP): p2p-wlp1s0-1: link is not ready
IPv6: ADDRCONF(NETDEV_UP): p2p-wlp1s0-1: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): p2p-wlp1s0-1: link becomes ready
Agent ReportPeerError peer_8086f2276bae_2ac68ec8e65b
connect-failed
Agent request cancelled by ConnMan
Error /net/connman/peer/peer_8086f2276bae_2ac68ec8e65b: Input/output error
For another side , connmanctl agent has no any response for the remote connection.
So why we cannot connect p2p successfully ? And anyone can correct me to which step is wrong to make connection failed.
Best Regards
Chaojie Gu
4 years, 8 months
[PATCH] Remove old ip/gateway address if different addresses are assigned during DHCP renewal to avoid two ip addresses added to the interface.
by Feng Wang
---
src/dhcp.c | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/dhcp.c b/src/dhcp.c
index 1d2cd48..54d98db 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -435,7 +435,7 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
char *address, *netmask = NULL, *gateway = NULL;
const char *c_address, *c_gateway;
unsigned char prefixlen, c_prefixlen;
- bool ip_change;
+ bool ip_change = false;
DBG("Lease available");
@@ -467,14 +467,21 @@ static void lease_available_cb(GDHCPClient *dhcp_client, gpointer user_data)
DBG("c_address %s", c_address);
- if (g_strcmp0(address, c_address))
+ if (g_strcmp0(address, c_address)) {
ip_change = true;
- else if (g_strcmp0(gateway, c_gateway))
+ if (c_address) {
+ /* Remove old ip address */
+ __connman_ipconfig_address_remove(dhcp->ipconfig);
+ }
+ }
+ if (g_strcmp0(gateway, c_gateway)) {
ip_change = true;
- else if (prefixlen != c_prefixlen)
+ if (c_gateway) {
+ /* Remove gateway ip address */
+ __connman_ipconfig_gateway_remove(dhcp->ipconfig);
+ }
+ } else if (prefixlen != c_prefixlen)
ip_change = true;
- else
- ip_change = false;
__connman_ipconfig_set_method(dhcp->ipconfig,
CONNMAN_IPCONFIG_METHOD_DHCP);
--
2.8.0.rc3.226.g39d4020
4 years, 8 months
[PATCH] peer: Update Connected Propererty of P2P Technology
by Jose Blanquicet
Currently the property Connected is not used for P2P Technology thus it
always remains False. This patch aims to keep it updated in order to
make easier for the UI to show if P2P technology has an active P2P
connection or not.
This implementation has a limitation in cases of complex systems where
multiple P2P interfaces are present and can be connected simultaneously.
It is because the disconnection of one of those interfaces
will cause that the property becomes False even if there is another
interface still connected. But let say that such a complex systems are
not very common.
---
doc/technology-api.txt | 3 +++
src/peer.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/technology-api.txt b/doc/technology-api.txt
index f3703c0..ec84059 100644
--- a/doc/technology-api.txt
+++ b/doc/technology-api.txt
@@ -62,6 +62,9 @@ Properties boolean Powered [readwrite]
If this property is True it means that at least one
service of this technology is in ready state.
+
+ In case of P2P technology, this property indicates
+ if the peer is fully connected to another peer.
string Name [readonly]
diff --git a/src/peer.c b/src/peer.c
index 8a380c9..ad4e445 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -905,6 +905,7 @@ int connman_peer_set_state(struct connman_peer *peer,
break;
case CONNMAN_PEER_STATE_READY:
reply_pending(peer, 0);
+ __connman_technology_set_connected(CONNMAN_SERVICE_TYPE_P2P, true);
break;
case CONNMAN_PEER_STATE_DISCONNECT:
if (peer->connection_master)
@@ -913,7 +914,7 @@ int connman_peer_set_state(struct connman_peer *peer,
__connman_dhcp_stop(peer->ipconfig);
peer->connection_master = false;
peer->sub_device = NULL;
-
+ __connman_technology_set_connected(CONNMAN_SERVICE_TYPE_P2P, false);
break;
case CONNMAN_PEER_STATE_FAILURE:
if (manage_peer_error(peer) == 0)
--
1.9.1
4 years, 8 months
[PATCH] README: Update mailing list information
by Saurav Babu
---
README | 1 +
1 file changed, 1 insertion(+)
diff --git a/README b/README
index 531f396..fae5d38 100644
--- a/README
+++ b/README
@@ -391,6 +391,7 @@ Information
Mailing list:
connman(a)connman.net
+ connman(a)lists.01.org
For additional information about the project visit ConnMan web site:
https://01.org/connman
--
1.9.1
4 years, 8 months
Hooks for service connect and disconnect
by Martin Chaplet
Hi,
I have issues using a new QMI modem with ofono.
Although QMI standard tools (libqmi) are working very well, I can't use
ofono to make a data connection.
I'm so wondering if there is a way to add some "hooks" for connman to
implement service.connect and disconnect functions.
The idea is to use external tools to bring up/down interface and then
let Connman handle DHCP and more generally all IP and routing features.
Does it seem technically feasible ?
Thanks,
Martin
<http://www.kerlink.com>
4 years, 9 months
802.1x on Ethernet
by Peter Meerwald-Stadler
Hello,
what is the connman's status w.r.t. 802.1x (port authentication) on
Ethernet?
802.1x / EAP seems to be only supported on WiFi currently with
wpa-supplicant doing the heavy lifting
I think a similar route could be taken to add 802.1x support for ethernet;
are you aware of work or patches in that direction?
would patches be acceptable?
thanks, regards, p.
--
Peter Meerwald-Stadler
+43-664-2444418 (mobile)
4 years, 9 months
tether wifi
by 郑大利
Hello, Patrik,
i'm using connman to manage my wifi.
When in tethering mode,
connmanctl > tether wifi on myNet 12345678,
my cellphone can connect the SSID named myNet,
The question is : How connman knows who has connect the net?
Please have a look at the attachment.
In android device,as wifi hotspot,it can see the device who has connected this hostspot,and also can see some infomation about the device,like name,mac address,and can disconnect the device.
In version 1.32,Can connman provide these functions?
Thanh you.
--
Cheers,
Dali
4 years, 9 months