Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56684 - ipw2100-0.49 wep needs kernel support for ARC4
Summary: ipw2100-0.49 wep needs kernel support for ARC4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-11 07:26 UTC by M. Niebergall
Modified: 2004-07-26 18:30 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description M. Niebergall 2004-07-11 07:26:15 UTC
The ebuild doesn't check the kernel config for the CONFIG_CRYPTO_ARC4 option, which seams to be needed for WEP support on my system.  It compiles and loads fine without arc4 but wep doesn't work.

Reproducible: Always
Steps to Reproduce:
1. load ipw2100 module on a kernel without arc4 support
2. try to set a wep key (which loads the iee80211_crypt_wep module)


Actual Results:  
Error message from iwconfig: 
"SET failed on device eth1 ; Operation not supported"
dmesg output: 
"ieee80211_crypt_wep: could not allocate crypto API arc4"

Expected Results:  
The ebuild should check the kernel config for CONFIG_CRYPTO_ARC4 (as it already
does with CONFIG_CRC32) by adding something like this to the ebuild:

    if ! egrep "^CONFIG_CRYPTO_ARC4=[ym]" ${ROOT}/usr/src/linux/.config >/dev/null
    then
        eerror ""
        eerror "New versions of ${PN} require support for ARC4 in"
        eerror "your kernel. This can be found in Cryptographic options in"
        eerror "kernel configs."
        die "ARC4 function support not detected."
    fi

After compiling the arc4 module everything works fine.  My system is an Acer
TM803.  Couldn't test it on other centrino notebooks or 2.4 kernels though.


$ emeger info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.7-gentoo-r8)
=================================================================
System uname: 2.6.7-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
http://mirrors.sunsite.dk/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb cdr clamav crypt dillo dvd encode foomaticdb gdbm
gpm gtk gtk2 imlib jabber java jpeg libg++ libwww mad mikmod mmx motif
moznocompose moznomail mpeg ncurses nls ntlm oggvorbis opengl pam perl png
python quicktime radeon readline samba sdl slang spell sse ssl stroke svga tcpd
tetex tiff truetype usb video_cards_radeon x86 xface xml2 xmms xosd xv zlib"
Comment 1 Peter Johanson (RETIRED) gentoo-dev 2004-07-11 20:51:36 UTC
Yup, good catch. i'll try to get that fixed early this week.
Comment 2 Peter Johanson (RETIRED) gentoo-dev 2004-07-26 18:30:44 UTC
Okay, added the check, and 0.50 and 0.51 had the check when they were first commited.