Re: Network-manager 0.8.992 and wpasupplicant
>> You need to compile wpa_supplicant with the new dbus interface support. >> Check variable CONFIG_CTRL_IFACE_DBUS_NEW in wpa_supplicant/defconfig. > > Thanks Mikhail. > I was missing that point, because debian package uses his own > debian\config\linux. Enabling the right config option worked like a charm. Now I have nm 0.8.992 e wapsupplicant from git master working. Bye Marco ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
QT DBus network manger for PPP connection
Hi, I am writing a QT application for establishing PPP connection with the mobile via bluetooth link. I can do this by creating a connection in mobile broadband in network manger applet. Now i need to create my own app. using dbus to establish PPP connection through rfcomm0 serial port. I used qdbusviewer tool to search the available api's. But i cont find specific to PPP. can you please suggest me what are the API to be used and in what flow. -- Regards NAVEEN M N ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
[PATCH] Fix notify message about WiFi connection.
Hello! Since commits 2f521e3817b6078ca4e6008d1c0b6167df3c7030 and ec68a999c69f081b77c38c9c4d322b2cb05d434a the variable 'esc_ssid' in wireless_device_state_changed() is always NULL. -- WBR, Mikhail Efremov >From ace8d866aeabed703f201721080bb85f353542b8 Mon Sep 17 00:00:00 2001 From: Mikhail Efremov Date: Thu, 3 Mar 2011 18:27:23 +0300 Subject: [PATCH] Fix notify message about WiFi connection. --- src/applet-device-wifi.c | 28 1 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c index 97a03a5..e9a0d85 100644 --- a/src/applet-device-wifi.c +++ b/src/applet-device-wifi.c @@ -211,6 +211,22 @@ is_manufacturer_default_ssid (const GByteArray *ssid) return is_ssid_in_list (ssid, manf_default_ssids); } +static char * +get_ssid_utf8 (NMAccessPoint *ap) +{ + char *ssid_utf8 = NULL; + + if (ap) { + const GByteArray *ssid; + + ssid = nm_access_point_get_ssid (ap); + if (ssid) + ssid_utf8 = nm_utils_ssid_to_utf8 (ssid); + } + + return ssid_utf8; +} + /* List known trojan networks that should never be shown to the user */ static const char *blacklisted_ssids[] = { /* http://www.npr.org/templates/story/story.php?storyId=130451369 */ @@ -1238,10 +1254,11 @@ wireless_device_state_changed (NMDevice *device, NMDeviceStateReason reason, NMApplet *applet) { + NMAccessPoint *new = NULL; char *msg; char *esc_ssid = NULL; - update_active_ap (device, new_state, applet); + new = update_active_ap (device, new_state, applet); if (new_state == NM_DEVICE_STATE_DISCONNECTED) queue_avail_access_point_notification (device); @@ -1249,6 +1266,7 @@ wireless_device_state_changed (NMDevice *device, if (new_state != NM_DEVICE_STATE_ACTIVATED) return; + esc_ssid = get_ssid_utf8 (new); msg = g_strdup_printf (_("You are now connected to the wireless network '%s'."), esc_ssid ? esc_ssid : _("(none)")); applet_do_notify_with_pref (applet, _("Connection Established"), @@ -1272,14 +1290,8 @@ wireless_get_icon (NMDevice *device, char *ssid = NULL; ap = g_object_get_data (G_OBJECT (device), ACTIVE_AP_TAG); - if (ap) { - const GByteArray *tmp; - - tmp = nm_access_point_get_ssid (ap); - if (tmp) - ssid = nm_utils_ssid_to_utf8 (tmp); - } + ssid = get_ssid_utf8 (ap); if (!ssid) ssid = g_strdup (_("(none)")); -- 1.7.4.1 ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Network-manager 0.8.992 and wpasupplicant
> You need to compile wpa_supplicant with the new dbus interface support. > Check variable CONFIG_CTRL_IFACE_DBUS_NEW in wpa_supplicant/defconfig. Thanks Mikhail. I was missing that point, because debian package uses his own debian\config\linux. Will try soon. Bye Marco ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Network-manager 0.8.992 and wpasupplicant
On Thu, 3 Mar 2011 09:02:53 +0100 Marco wrote: > Hi everybody, > I was trying to upgrade to network-manager from git (release 0.8.992). [ skip ] > I saw there are commits in nm for the new supplicant DBUS api, > referencing supplicant dbus endpoint on fi.w1.wpa_supplicant1, > but starting wpa_supplicant (cmpiled from git master) it says that the > registered name is fi.epitest.hostap.WPASupplicant. > > What am I missing? > Do I have to configure wpa_supplicant to enable the new dbus api? You need to compile wpa_supplicant with the new dbus interface support. Check variable CONFIG_CTRL_IFACE_DBUS_NEW in wpa_supplicant/defconfig. -- WBR, Mikhail Efremov ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Howto rescan for modems on RS232 port with udevadm
Hi, i changed the udev rule 77-mm-platform-serial-whitelist.rules to: ### ModemManager: only check /dev/ttyS1 (atmel_usart.1) ### ACTION!="add|change", GOTO="mm_platform_device_whitelist_end"whitelist.rules.real SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end" DRIVERS=="atmel_usart", KERNELS=="atmel_usart.1", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1" LABEL="mm_platform_device_whitelist_end" The modem detection works, but i need a modem rescan (eg attach a rs232 modem after modemmanager started). I tried to do this with udevadm: # udevadm trigger --action=add --subsystem-match=tty --subsystem-match=platform --sysname-match=ttyS1 --verbose /sys/devices/platform/atmel_usart.1/tty/ttyS1 But MM does nothing. When i execute the command with ttyS0, the output is: # udevadm trigger --action=add --subsystem-match=tty --subsystem-match=platform --sysname-match=ttyS0 --verbose /sys/devices/platform/atmel_usart.1/tty/ttyS0 modem-manager[772]: [1299145393.216952] [mm-manager.c:802] device_added(): (tty/ttyS0): port's parent platform driver is not whitelisted Any ideas how to solve this? Cheers, Tom ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: Network-manager 0.8.992 and wpasupplicant
On Thu, Mar 3, 2011 at 11:02 AM, Marco wrote: > Hi everybody, > I was trying to upgrade to network-manager from git (release 0.8.992). > > I installed all the dependency and started network manager to activate > my wifi connection. > > I didn't expect to work out immediately and in fact network manager > does not connect to my AP. > > Then I tried to debug and the first thing I saw is that there is an > error in connecting to supplicant. > Before sending all the trace logs I would ask some questions. > > What version of wpa_supplicant is compatbile with network-manger 0.8.992? > I tried 0.7.3 and wpa_supplicant from git but the error is always the > same: time out in waiting a response from supplicant on the function > interface_add_cb in src/supplicant-manager/nm-supplicant-interface.c > > I saw there are commits in nm for the new supplicant DBUS api, > referencing supplicant dbus endpoint on fi.w1.wpa_supplicant1, > but starting wpa_supplicant (cmpiled from git master) it says that the > registered name is fi.epitest.hostap.WPASupplicant. > > What am I missing? > Do I have to configure wpa_supplicant to enable the new dbus api? > At least, when using 0.7.3 with new API it definitely works with NM 0.8.4-beta2. So you could try :) ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list
Network-manager 0.8.992 and wpasupplicant
Hi everybody, I was trying to upgrade to network-manager from git (release 0.8.992). I installed all the dependency and started network manager to activate my wifi connection. I didn't expect to work out immediately and in fact network manager does not connect to my AP. Then I tried to debug and the first thing I saw is that there is an error in connecting to supplicant. Before sending all the trace logs I would ask some questions. What version of wpa_supplicant is compatbile with network-manger 0.8.992? I tried 0.7.3 and wpa_supplicant from git but the error is always the same: time out in waiting a response from supplicant on the function interface_add_cb in src/supplicant-manager/nm-supplicant-interface.c I saw there are commits in nm for the new supplicant DBUS api, referencing supplicant dbus endpoint on fi.w1.wpa_supplicant1, but starting wpa_supplicant (cmpiled from git master) it says that the registered name is fi.epitest.hostap.WPASupplicant. What am I missing? Do I have to configure wpa_supplicant to enable the new dbus api? Thanks Marco ___ networkmanager-list mailing list networkmanager-list@gnome.org http://mail.gnome.org/mailman/listinfo/networkmanager-list