Facing issues with connMan
Hi, I faced issue with connmanctl while scaning for wifi devices, can any one help me?? *connmanctl> scan wifi * *Error /net/connman/technology/wifi: No carrier * *connmanctl> * *With Best Regards,* Sukanya Ch VVDN Technologies Pvt Ltd *Cell : *+91 9551955031 | *Skype :* sukanya.chinthamreddy ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Facing issues with connMan
Hi, Is your wifi card un-rfkilled? (a hardware switch maybe present if it's a laptop). What about wpa_supplicant: is it running, and if so: with what options? Br, Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
RE: Facing issues with connMan
Hi Sukanya, Make sure you have only one Network Manager running on your system. If you are running a Ubuntu. Then try mv /usr/sbin/NetworkManager /usr/sbin/NetworkManger-sys(That is to some other name) Kill the existing NetworkManager - Like killall NetworkManager or through rc scripts. Then run connman daemon. Scan wifi should work. If does not try restarting the system and then run connman. Abhijit From: connman [connman-boun...@connman.net] on behalf of Tomasz Bursztyka [tomasz.burszt...@linux.intel.com] Sent: Friday, May 29, 2015 3:27 PM To: connman@connman.net Subject: Re: Facing issues with connMan Hi, Is your wifi card un-rfkilled? (a hardware switch maybe present if it's a laptop). What about wpa_supplicant: is it running, and if so: with what options? Br, Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
[PATCH] peer: stop dhcp client when switching to CONNMAN_PEER_STATE_DISCONNECT state
Otherwise __connman_dhcp_stop() is never called when the disconnect is triggered by the peer. peer_disconnect() already handles this correctly for locally triggered disconnects. --- src/peer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peer.c b/src/peer.c index 206b799b2a18..8a380c96d2a4 100644 --- a/src/peer.c +++ b/src/peer.c @@ -909,6 +909,8 @@ int connman_peer_set_state(struct connman_peer *peer, case CONNMAN_PEER_STATE_DISCONNECT: if (peer->connection_master) stop_dhcp_server(peer); + else + __connman_dhcp_stop(peer->ipconfig); peer->connection_master = false; peer->sub_device = NULL; -- 2.1.4 ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
[PATCH] gsupplicant: fix finding matching group
g_slist_find_custom() expects a function that return 0 when the arguments are equal. g_str_equal() returns TRUE, so any not matching group is found. --- gsupplicant/supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 81fcadc639bd..8c49c1ee8c99 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -2678,7 +2678,7 @@ static void peer_groups_relation(DBusMessageIter *iter, void *user_data) if (!group) return; - elem = g_slist_find_custom(data->old_groups, str, g_str_equal); + elem = g_slist_find_custom(data->old_groups, str, (GCompareFunc)g_strcmp0); if (elem) { data->old_groups = g_slist_remove_link(data->old_groups, elem); peer->groups = g_slist_concat(elem, peer->groups); -- 2.1.4 ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: [PATCH] peer: stop dhcp client when switching to CONNMAN_PEER_STATE_DISCONNECT state
Hi Michael, ACK from me. Tomasz Otherwise __connman_dhcp_stop() is never called when the disconnect is triggered by the peer. peer_disconnect() already handles this correctly for locally triggered disconnects. --- src/peer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/peer.c b/src/peer.c index 206b799b2a18..8a380c96d2a4 100644 --- a/src/peer.c +++ b/src/peer.c @@ -909,6 +909,8 @@ int connman_peer_set_state(struct connman_peer *peer, case CONNMAN_PEER_STATE_DISCONNECT: if (peer->connection_master) stop_dhcp_server(peer); + else + __connman_dhcp_stop(peer->ipconfig); peer->connection_master = false; peer->sub_device = NULL; ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: [PATCH] gsupplicant: fix finding matching group
Hi Michael, ACK from me. Tomasz g_slist_find_custom() expects a function that return 0 when the arguments are equal. g_str_equal() returns TRUE, so any not matching group is found. --- gsupplicant/supplicant.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index 81fcadc639bd..8c49c1ee8c99 100755 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -2678,7 +2678,7 @@ static void peer_groups_relation(DBusMessageIter *iter, void *user_data) if (!group) return; - elem = g_slist_find_custom(data->old_groups, str, g_str_equal); + elem = g_slist_find_custom(data->old_groups, str, (GCompareFunc)g_strcmp0); if (elem) { data->old_groups = g_slist_remove_link(data->old_groups, elem); peer->groups = g_slist_concat(elem, peer->groups); ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Facing issue with connmanctl in ARM platform
Hi, I got this error, while I am trying to use connmanctl in ARM platform " *connmanctl>Error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory*". Can any one help me?? *With Best Regards,* Sukanya Ch VVDN Technologies Pvt Ltd *Cell : *+91 9551955031 | *Skype :* sukanya.chinthamreddy ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
[PATCH] wifi: fix device type category/sub_category endianess
category and sub_category must be big-endian in the device-type string. --- I could not find a explicit endianess for this in the spec, however wpa_supplicant (see wps_dev_type_str2bin()), wireshark and various devices all use big-endian here, so I'm pretty sure that this is correct. plugins/wifi.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 1f90a311a2a1..8246c45f974b 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2446,24 +2446,24 @@ static void interface_removed(GSupplicantInterface *interface) static void set_device_type(const char *type, char dev_type[17]) { const char *oui = "0050F204"; - const char *category = "0100"; + const char *category = "0001"; const char *sub_category = ""; if (!g_strcmp0(type, "handset")) { - category = "0A00"; - sub_category = "0500"; + category = "000A"; + sub_category = "0005"; } else if (!g_strcmp0(type, "vm") || !g_strcmp0(type, "container")) - sub_category = "0100"; + sub_category = "0001"; else if (!g_strcmp0(type, "server")) - sub_category = "0200"; + sub_category = "0002"; else if (!g_strcmp0(type, "laptop")) - sub_category = "0500"; + sub_category = "0005"; else if (!g_strcmp0(type, "desktop")) - sub_category = "0600"; + sub_category = "0006"; else if (!g_strcmp0(type, "tablet")) - sub_category = "0900"; + sub_category = "0009"; else if (!g_strcmp0(type, "watch")) - category = "FF00"; + category = "00FF"; snprintf(dev_type, 17, "%s%s%s", category, oui, sub_category); } -- 2.1.4 ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: Facing issue with connmanctl in ARM platform
Hi, dbus service is not started ? Tomasz ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: [PATCH] wifi: fix device type category/sub_category endianess
Hi Michael, I remember Jussi had a patch for that already when he found out such issue. We may have missed it. Verify anyway in wpa_supplicant, afaik the dbus part does not use wps_dev_type_str2bin() Tomasz category and sub_category must be big-endian in the device-type string. --- I could not find a explicit endianess for this in the spec, however wpa_supplicant (see wps_dev_type_str2bin()), wireshark and various devices all use big-endian here, so I'm pretty sure that this is correct. plugins/wifi.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 1f90a311a2a1..8246c45f974b 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2446,24 +2446,24 @@ static void interface_removed(GSupplicantInterface *interface) static void set_device_type(const char *type, char dev_type[17]) { const char *oui = "0050F204"; - const char *category = "0100"; + const char *category = "0001"; const char *sub_category = ""; if (!g_strcmp0(type, "handset")) { - category = "0A00"; - sub_category = "0500"; + category = "000A"; + sub_category = "0005"; } else if (!g_strcmp0(type, "vm") || !g_strcmp0(type, "container")) - sub_category = "0100"; + sub_category = "0001"; else if (!g_strcmp0(type, "server")) - sub_category = "0200"; + sub_category = "0002"; else if (!g_strcmp0(type, "laptop")) - sub_category = "0500"; + sub_category = "0005"; else if (!g_strcmp0(type, "desktop")) - sub_category = "0600"; + sub_category = "0006"; else if (!g_strcmp0(type, "tablet")) - sub_category = "0900"; + sub_category = "0009"; else if (!g_strcmp0(type, "watch")) - category = "FF00"; + category = "00FF"; snprintf(dev_type, 17, "%s%s%s", category, oui, sub_category); } ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman
Re: [PATCH] wifi: fix device type category/sub_category endianess
Hi, On Fri, May 29, 2015 at 06:29:50PM +0300, Tomasz Bursztyka wrote: > I remember Jussi had a patch for that already when he found out such > issue. We may have missed it. > > Verify anyway in wpa_supplicant, afaik the dbus part does not use > wps_dev_type_str2bin() wpa_supplicant uses wps_dev_type_str2bin() when reading from the config files. There you need to specify --. wps_dev_type_str2bin() converts category and sub-category (both integers in decimal form) to big-endian. The D-Bus API just converts the hex string to bytes, so it must already have the correct byte order. Regards, Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman