Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157677 - net-wireless/wpa_supplicant-0.5.6 - madwifi errors
Summary: net-wireless/wpa_supplicant-0.5.6 - madwifi errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 19:27 UTC by fernercc
Modified: 2007-02-10 06:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild to test the proposed patch. (madwifi-ng-0.9.2.1-r2.ebuild,3.92 KB, text/plain)
2007-01-13 08:40 UTC, Jon Howell
Details
Patch to make madwifi-ng happy with ioctl setting pairwise cipher to CIPHER_NONE (madwifi-ng-0.9.2-allow-cipher-none.diff,614 bytes, patch)
2007-01-13 08:45 UTC, Jon Howell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fernercc 2006-12-09 19:27:33 UTC
When emerging madwifi-ng and wpa_supplicant i get an error when executing wpa_supplicant.


plutux Desktop # wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iath0 -Dmadwifi
Trying to associate with 00:13:1a:4c:0d:90 (SSID='yyy.xxx.edu' freq=2442 MHz)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys


Im using wpa_supplicant-0.5.6 and madwifi-ng-0.9.2.1.

This error has been seen on amd64 and x86 (pent4). The forums give no good information, so it must be something in the code.

Thank you.

######################################################

Portage 2.1.1-r2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.19-gentoo x86_64)
=================================================================
System uname: 2.6.19-gentoo x86_64 AMD Turion(tm) 64 Mobile Technology ML-37
Gentoo Base System version 1.12.1
Last Sync: Sun, 10 Dec 2006 00:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -s"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo "
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac acpi alsa apm avahi berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dlloader dri dvb dvd dvdr elibc_glibc fortran gdbm gif gnome gpm gtk gtk2 hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog java javascript jpeg jpeg2k kernel_linux libg++ madwifi mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg openal pam pcmcia pcntl pcre perl png ppds pppd python readline reflection session spl ssl szip tcpd truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_radeon wifi xml xorg xpm zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-12-09 19:31:41 UTC
Don't restrict bugs without any reason. Just leave the checkboxes alone, please.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-12-10 01:12:16 UTC
Google suggests it's an error with the madwifi driver
Comment 3 chad heuschober 2006-12-23 08:51:22 UTC
I have a version of this same bug to report. It appears as though I have a connection but less than a second later the disconnection occurs. Also, to-note, 'iwlist scanning' does not correctly detect my access point's group / pairwise or encryption scheme (which is AES/CCMP WPA2 and gets detected as WPA2 TKIP)

net-wireless/madwifi-ng-0.9.2.1
net-wireless/madwifi-ng-tools-0.9.2
net-wireless/wireless-tools-29_pre10
net-wireless/wpa_supplicant-0.5.6

# wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -iath0 -Dmadwifi
###########################################################################
Trying to associate with 00:02:6f:3f:42:39 (SSID='Fabul' freq=2457 MHz)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Authentication with 00:00:00:00:00:00 timed out.
Trying to associate with 00:02:6f:3f:42:39 (SSID='Fabul' freq=2457 MHz)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Associated with 00:02:6f:3f:42:39
WPA: Key negotiation completed with 00:02:6f:3f:42:39 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 00:02:6f:3f:42:39 completed (auth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:02:6f:3f:42:39 (SSID='Fabul' freq=2457 MHz)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Association request to the driver failed
Associated with 00:02:6f:3f:42:39
WPA: Key negotiation completed with 00:02:6f:3f:42:39 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 00:02:6f:3f:42:39 completed (reauth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys

emerge --info
###########################################################################
Portage 2.1.2_rc3-r8 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r2 x86_64 AMD Turion(tm) 64 Mobile Technology MK-36
Gentoo Base System version 1.12.8
Last Sync: Thu, 21 Dec 2006 01:20:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch usersandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ ftp://lug.mtu.edu/gentoo http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mirror.espri.arizona.edu/gentoo/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive  --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi adns aim alsa alsa_cards_hda-intel alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2 audiofile avahi bash-completion beagle berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cddb cdinstall cdparanoia cdr clamav cli cracklib crypt cups curl curlwrappers dbus dbx directfb dlloader doc dri dts dv dvb dvdr dvdread elibc_glibc emul-linux-x86 encode esd examples exif fbcon ffmpeg firefox flac flatfile fortran ftp gb gcj gd gdbm gif gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv icq imagemagick imap imlib innodb input_devices_keyboard input_devices_mouse ipod ipv6 isdnlog jabber javascript joystick jpeg kernel_linux ldab libg++ libsamplerate libwwwc linguas_en linguas_en_GB linguas_en_US lm_sensors mad madwifi matroska milter mime mono mp3 mpeg mplayer msn musepack mysql mysqli nas ncurses nls nntp nptl nptlonly ogg openal opengl oss pam pcre pda pdf perl php png posix postgres ppds pppd python qt3support qt4 quicktime rdesktop readline recode reflection ruby samba scanner sdl session sndfile sockets spell spl sqlite3 ssl svg symlink tcl tcpd theora tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l vcd vhosts video_cards_nvidia videos vorbis wifi wine x264 xine xinerama xml xorg xpm xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Regards ~Chad
Comment 4 chad heuschober 2006-12-24 01:00:35 UTC
Additionally, found this in my dmesg (when bringing up the wireless interface via the init.d script):

########### DMESG ################
wpa_supplicant[26458]: segfault at 0000000000000048 rip 00000000004217ff rsp 00007fff71a13710 error 4
ADDRCONF(NETDEV_UP): ath0: link is not ready
##################################

I hope it's of some help.

~Chad
Comment 5 Jon Howell 2007-01-13 08:40:48 UTC
Created attachment 106769 [details]
ebuild to test the proposed patch.

I verified that the patch applies by emerging it with this ebuild.
Comment 6 Jon Howell 2007-01-13 08:45:21 UTC
Created attachment 106771 [details, diff]
Patch to make madwifi-ng happy with ioctl setting pairwise cipher to CIPHER_NONE

There's a decent chance that other spots in the same file have exactly the same error; in particular, it looks like IEEE80211_PARAM_MCASTCIPHER has the same problem. But I haven't the foggiest idea how to even reproduce that problem, so I'm leaving it to the upstream to check into other instances of the bug.
Comment 7 Jon Howell 2007-01-13 08:46:31 UTC
I was running into this same problem: Gnome NetworkManager refused to associate with my open (unencrypted) AP (which it does via wpa_supplicant). [I never saw the segfault mentioned by one commenter, so there may be two bugs here.] I just tracked it down tonight, and it's a bug in madwifi-ng. I've posted a running commentary (:v) into http://madwifi.org/ticket/1016.

I've enclosed a one-line fix (comment prior; and the ebuild I used to test the fix, comment before that). I'm typing this bug in using a connection established by NetworkManager, wpa_supplicant, and madwifi-ng patched with this fix.
Comment 8 Jon Howell 2007-01-16 06:11:33 UTC
madwifi bug #1016 now indicates that this patch should appear upstream in madwifi-ng-0.9.3, when it is released.
Comment 9 Steev Klimaszewski (RETIRED) gentoo-dev 2007-02-10 06:39:17 UTC
Added to the tree.  Thanks for the report, and for reporting upstream.  Sorry it took so long to add it to the tree.