[pkg-wpa-devel] Bug#471905: wpasupplicant: Wpasupplicant works only good if I start it with low Priority

Gregor Adamczyk g.adamczyk at netkult.com
Thu Mar 20 23:57:15 UTC 2008


Package: wpasupplicant
Version: 0.6.3-1
Severity: important

Hi, if I start or configure wpasupplicant with normal priority, it is not possible to establish 
the WPA2 or WPA connection.

But a simple nice -10 in pre-up solve the problem completely.

The problem exists only in the daemon mode.

In debug mode I didn't have any problems.

Here is my temporary solve (work perfekt):

/etc/network/interfaces

allow-hotplug wlan0
iface wlan0 inet dhcp
pre-up nice -19 wpa_supplicant -B -i wlan0 -c "/etc/wpa_supplicant/wpa_supplicant.conf" -D wext; 
sleep 10;
post-down killall -q dhclient wpa_supplicant;

I worked at thy moment with ndiswrapper and the wext driver.

I test it on three different systems with stable, testing and unstable version of wpasupplicant.

Two slow systems haves the problem. (ndiswrapper WG111v3)

One new system with kernel rtl8187 driver works fine without any hotfixes.

Here is the udev rule from the worked system without any hotfixes:
# USB device 0bda:8187 (rtl8187)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:15:af:04:ac:37", ATTR{type}=="1", NAME="wlan0"

For this both systems i need the "nice" low priority.
# USB device 0846:4260 (ndiswrapper)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:1b:2f:d2:94:e8", ATTR{type}=="1", NAME="wlan0"

# USB device 0846:4260 (ndiswrapper)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:1b:2f:d2:94:f1", ATTR{type}=="1", NAME="wlan0"


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (700, 'testing'), (40, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages wpasupplicant depends on:
ii  adduser                       3.106      add and remove users and groups
ii  libc6                         2.7-6      GNU C Library: Shared libraries
ii  libdbus-1-3                   1.1.2-1    simple interprocess messaging syst
ii  libpcsclite1                  1.4.99-2   Middleware to access a smart card 
ii  libreadline5                  5.2-3      GNU readline and history libraries
ii  libssl0.9.8                   0.9.8g-4   SSL shared libraries
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip

wpasupplicant recommends no packages.

-- no debconf information





More information about the Pkg-wpa-devel mailing list