Hi David,
I have investigated this issue for a while..
Firstly i thought it was due to broken WiFi driver, but it seems to be a
"local" decision, maybe due to connman or wpa_supplicant.
The WiFi device go in an infinite loop of association/disassociation.

If you find a workaround i will be very happy if you share your fix.

For what i understood of this bug, my driver returns a new AP with a null
mac address when using Wext
here is the "wpa_supplicant -d" trace:

Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Disassociation notification
BSSID 00:00:00:00:00:00 blacklist count incremented to 3
CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=0

if you use nl80211 you get the following output in syslog:
 wlan0: associated
Jan  1 00:21:51 Naobi daemon.info connmand[1679]: wlan0 SCANNING
Jan  1 00:21:51 Naobi daemon.info connmand[1679]: wlan0 scanning started
Jan  1 00:21:51 Naobi daemon.info connmand[1679]: wlan0 scanning finished
Jan  1 00:21:51 Naobi daemon.info connmand[1679]: wlan0 ASSOCIATING
(scanning)
Jan  1 00:21:51 Naobi daemon.info connmand[1679]: wlan0 DISCONNECTED
(scanning)
Jan  1 00:21:52 Naobi user.debug kernel: [ 1290.574960] wlan0:
deauthenticating from 00:3a:98:8f:3b:41 by local choice (reason=3)
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 ASSOCIATED
(scanning)
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 4WAY_HANDSHAKE
(scanning)
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 DISCONNECTED
(scanning)
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 SCANNING (scanning)
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 scanning started
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 scanning finished
Jan  1 00:21:52 Naobi daemon.info connmand[1679]: wlan0 DISCONNECTED
(scanning)

I reproduce this issue easily when there are lots of WiFi networks, and
placed my WiFi device in the middle of two AP within the same ESSID.

I use connman 0.69.4, wpa_supplicant 0.7.3, zd1211rw from
compat-wireless-2011-03-15 (nl80211), and ralink broken driver for rt3070
chipset (wext).

I just tested the static IP method, that is mentionned in your link, and it
doesn't works.

2011/5/11 DJ Cozatt <[email protected]>

> On Wed, 2011-05-11 at 12:06 +0200, Samuel Ortiz wrote:
> > Hi,
> >
> > On Tue, May 03, 2011 at 11:57:57PM -0400, DJ Cozatt wrote:
> > >
> > > Also though it did not appear in the message the wlan0 interface is
> > > there but seems to have no ipv4 address though it does seem to have an
> > > ipv6 address. The router I have doesn't speak ipv6.
> > >
> > > connmand seems to start a new wpa instance as well I saw 3 instances in
> > > the output of 'ps anx' when I looked...iirc there are normally 2 ;-/
> > 3 instances ?? Which version of wpa_supplicant are you running, and which
> > D-Bus intrfaces are they providing ?
> >
> > Cheers,
> > Samuel.
> >
>
> I wrote that after running connman since it seems to start a new wpa
> process. I have not run it since rebooting and the following is normal
>
>
> random david # ps anx | grep wpa
>  1695 ?        Ss     0:07 /usr/sbin/wpa_supplicant -d -Dnl80211
> -c /etc/wpa_supplicant/wpa_supplicant.conf -W -B -i wlan0
> -P /var/run/wpa_supplicant-wlan0.pid
>
>  1702 ?        Ss     0:04 /usr/bin/wpa_cli
> -a /etc/wpa_supplicant/wpa_cli.sh -p /var/run/wpa_supplicant -i wlan0
> -P /var/run/wpa_cli-wlan0.pid -B
>
> 21266 pts/0    S+     0:00 grep --colour=auto wpa
>
> (spaces inserted for easier reading output should be a single line
> between)
>
> random david # emerge --info dbus
> Portage 2.1.9.48 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2,
> glibc-2.13-r2, 2.6.38-gentoo-r4 x86_64)
> =================================================================
>                        System Settings
> =================================================================
> System uname:
>
> Linux-2.6.38-gentoo-r4-x86_64-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-gentoo-2.0.2
> Timestamp of tree: Mon, 09 May 2011 06:30:01 +0000
> app-shells/bash:          4.2_p8-r1
> dev-java/java-config:     2.1.11-r3
> dev-lang/python:          2.7.1-r1, 3.1.3-r1
> dev-util/cmake:           2.8.4-r1
> sys-apps/baselayout:      2.0.2
> sys-apps/openrc:          0.8.2-r1
> sys-apps/sandbox:         2.5
> sys-devel/autoconf:       2.13, 2.68
> sys-devel/automake:       1.11.1-r1
> sys-devel/binutils:       2.21
> sys-devel/gcc:            4.5.2
> sys-devel/gcc-config:     1.4.1-r1
> sys-devel/libtool:        2.4-r1
> sys-devel/make:           3.82
> sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
> sys-libs/glibc:           2.13-r2
> ACCEPT_KEYWORDS="amd64 ~amd64"
> ACCEPT_LICENSE="*"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> /etc/sandbox.d /etc/terminfo"
> CXXFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles
> fixpackages multilib-strict news parallel-fetch protect-owned sandbox
> sfperms splitdebug strict unknown-features-warn unmerge-logs
> unmerge-orphans userfetch userpriv usersandbox"
> FFLAGS=""
> GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo/
> ftp://gentoo.chem.wisc.edu/gentoo/ http://mirrors.163.com/gentoo/
> ftp://mirror.bih.net.ba/gentoo/";
> LDFLAGS="-Wl,--hash-style=gnu,-O1 -Wl,--as-needed"
> LINGUAS="en_US"
> MAKEOPTS="-j3 --load-average"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --compress --force --whole-file --delete --stats --timeout=180
> --exclude=/distfiles --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY=""
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli
> consolekit cracklib crypt cxx dbus dri dts dvd dvdr eds emboss en encode
> evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gpm
> gstreamer gtk gtk3 iconv jpeg lcms ldap libnotify mad midi mmx mng
> modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly
> ogg opengl openmp pam pango pcre pdf perl pic png policykit ppds pppd
> python qt3support readline sdl session spell sse sse2 ssl
> startup-notification svg sysfs tcpd threads tiff truetype udev unicode
> usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib"
> ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
> dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat
> linear meter mmap_emul mulaw multi null plug rate route share shm
> softvol" APACHE2_MODULES="actions alias auth_basic authn_alias
> authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
> authz_groupfile authz_host authz_owner authz_user autoindex cache cgi
> cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter
> file_cache filter headers include info log_config logio mem_cache mime
> mime_magic negotiation rewrite setenvif speling status unique_id userdir
> usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq
> load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech
> aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301
> nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf
> superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard
> mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780
> lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" PHP_TARGETS="php5-3"
> RUBY_TARGETS="ruby18 ree18" USERLAND="GNU" VIDEO_CARDS="radeon"
> XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p
> iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
> dhcpmac delude chaos account"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
> LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS,
> PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
>
> =================================================================
>                        Package Settings
> =================================================================
>
> sys-apps/dbus-1.4.8-r1 was built with the following:
> USE="X doc (multilib) test -debug (-selinux) -static-libs"
> CFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -pipe -rdynamic"
> CXXFLAGS="-march=native -O2 -ggdb -D_FORTIFY_SOURCE=2 -pipe -rdynamic"
>
> Networking is started with this configuration file /etc/conf.d/net
>
> #config_eth0="dhcp"
> dns_domain_lo="mshome"
>
> # Working with -Dnl8011 and p54pci as of April 2011  DJ Cozatt
> modules="wpa_supplicant"
>
> echo "Loading driver as: -Dnl80211 and loading wpa_supplicant.conf"
>
> wpa_supplicant_wlan0="-d -Dnl80211
> -c /etc/wpa_supplicant/wpa_supplicant.conf"
>
> echo "done. calling dhcp for interface"
>
> config_wlan0="dhcp"
>
> http://wireless.kernel.org/en/users/Documentation/wpa_supplicant
>
> The above link suggests a change
> to
> /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
> I have done this. There is a test utility in the src directory for
> somethings..how would I go about running these?
>
> If you need anything else I will try to run it ASAP
>
> David
> -djc-
>
>
> _______________________________________________
> connman mailing list
> [email protected]
> http://lists.connman.net/listinfo/connman
>



-- 
Massot Julien
Operating System engineer
Aldebaran Robotics
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to