[Pkg-utopia-maintainers] Bug#636137: network-manager: Might found the problem

Arief M Utama arief.utama at gmail.com
Mon Aug 8 17:09:33 UTC 2011


Package: network-manager
Version: 0.8.9997-1
Followup-For: Bug #636137

(note: this is a copy of the same notes I wrote in redhat's bugzilla
#713006, adjusted to Debian's version of network-manager)

I think I might found the problem,

>From latest git pull, On line 3281-3283 in src/nm-manager.c :

  old_enabled = radio_enabled_for_rstate (rstate, TRUE);
  rstate->user_enabled = enabled;
  new_enabled = radio_enabled_for_rstate (rstate, FALSE);

When disabling a wifi, old_enabled != new_enabled and new_enabled == 0;

Which in turn will run the following lines:

  if (new_enabled != old_enabled) {
    manager_update_radio_enabled (self, rstate, new_enabled);

    /* For WiFi only (for now) set the actual kernel rfkill state */
    if (rstate->rtype == RFKILL_TYPE_WLAN)
      rfkill_change_wifi (rstate->desc, new_enabled);
  }


But when re-enabling wifi, the case will be: old_enabled == new_enabled 
and new_enabled == 0; which in that case the enabling code will never 
get ran.

I "fix" it by moving around the check and enabling code and hackishly set
new_enabled=1 when old_enabled == new_enabled == 0.

Seems to work, but it also throwing out some funny messages that might
just wanna kill my device :) 

Here's hoping for a _real_fix_soon (tm) :)

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages network-manager depends on:
ii  adduser                      3.113       add and remove users and groups
ii  dbus                         1.5.6-1     simple interprocess messaging syst
ii  isc-dhcp-client              4.1.1-P1-17 ISC DHCP client
ii  libc6                        2.13-14     Embedded GNU C Library: Shared lib
ii  libdbus-1-3                  1.5.6-1     simple interprocess messaging syst
ii  libdbus-glib-1-2             0.94-4      simple interprocess messaging syst
ii  libgcrypt11                  1.4.6-9     LGPL Crypto library - runtime libr
ii  libglib2.0-0                 2.28.6-2    GLib library of C routines
ii  libgnutls26                  2.12.7-4    GNU TLS library - runtime library
ii  libgudev-1.0-0               172-1       GObject-based wrapper library for 
ii  libnl1                       1.1-7       library for dealing with netlink s
ii  libnm-glib4                  0.8.9997-1  network management framework (GLib
ii  libnm-util2                  0.8.9997-1  network management framework (shar
ii  libpolkit-gobject-1-0        0.102-1     PolicyKit Authorization API
ii  libuuid1                     2.19.1-5    Universally Unique ID library
ii  lsb-base                     3.2-27      Linux Standard Base 3.2 init scrip
ii  udev                         172-1       /dev/ and hotplug management daemo
ii  wpasupplicant                0.7.3-3.1   client support for WPA and WPA2 (I

Versions of packages network-manager recommends:
ii  dnsmasq-base                  2.57-1     A small caching DNS proxy and DHCP
ii  iptables                      1.4.12-1   administration tools for packet fi
ii  modemmanager                  0.4.997-1  D-Bus service for managing modems
ii  policykit-1                   0.102-1    framework for managing administrat
ii  ppp                           2.4.5-5    Point-to-Point Protocol (PPP) - da

Versions of packages network-manager suggests:
pn  avahi-autoipd                 <none>     (no description available)

-- no debconf information





More information about the Pkg-utopia-maintainers mailing list