Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130104 - bash-3.1_p16 and ndiswrapper not working, failure to power
Summary: bash-3.1_p16 and ndiswrapper not working, failure to power
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 130106 130350 130531 (view as bug list)
Depends on:
Blocks: 129885
  Show dependency tree
 
Reported: 2006-04-15 16:01 UTC by Ian
Modified: 2006-04-19 16:29 UTC (History)
7 users (show)

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


Attachments
baselayout - wpa_supplicant - bash-3.1 patch (baselayout-1.11.14-wpa_supplicant.patch,1.11 KB, patch)
2006-04-16 01:59 UTC, Roy Marples (RETIRED)
Details | Diff
Simple modification to the first patch (new_patch,1.10 KB, patch)
2006-04-16 08:59 UTC, Silas Francisco
Details | Diff
Simple modification to the first patch 2 - sorry (new_patch2,1.11 KB, patch)
2006-04-16 09:04 UTC, Silas Francisco
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian 2006-04-15 16:01:55 UTC
Ref : bug 129885.

I had just update to the bash-3.1_p16, but with ndiswrapper and wpa_supplicant
was not able to get the wirless working, had a failure to power up the wireless
card (RT2500) within the messagse (ndiswrapper (iw_set_tx_power:421): setting
tx_power failed (C0010015)) 

So I have down graded back to bash-3.0-r12. If there is any advice ? I also do have the baselayout-1.11.14-r7.

Thanks
Ian
P.S. This is my first bug report, so if I have done anything wrong please say
:)

Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r3,
2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/
ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/
ftp://mirrors.blueyonder.co.uk/mirrors/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr
cli crypt ctype cups curl dba dri dts eds emboss encode esd exif expat fam
fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp
gnome gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 isdnlog java jpeg
junit kde lcms libg++ libwww mad memlimit mikmod mng motif mp3 mpeg mysql
ncurses nls nptl ogg openal opengl oss pam pcre pdflib perl php png posix pppd
python qt quicktime readline samba sdl session simplexml soap sockets spell spl
ssl tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev usb vorbis
win32codecs xml xml2 xmms xsl xv xvid zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS,
MAKEOPTS
Comment 1 SpanKY gentoo-dev 2006-04-15 18:53:09 UTC
how exactly are you trying to use ndiswrapper/wpa_supplicant ?  are you using /etc/init.d/net.* scripts ?  or are you running commands yourself (and if so, what are the commands) ?
Comment 2 Silas Francisco 2006-04-15 20:03:12 UTC
Same problem here, using ipw2200 wpa_supplicant
net.eth1 linked to net.lo script :-)
It seems what it enters some kind of cicle, because i see sleep1 then other comands then sleep1 using ps.
Comment 3 SpanKY gentoo-dev 2006-04-15 23:12:21 UTC
what versions of wpa_supplicant and ndiswrapper ?
Comment 4 Ian 2006-04-16 01:56:37 UTC
These are the versions of the programs below, and I am running the /etc/init.d/net* scripts

 Searching for package 'wpa_supplicant' in all categories among: ]
 * installed packages
[I--] [  ] net-wireless/wpa_supplicant-0.4.8 (0)
tux ian # equery list ndiswrapper
[ Searching for package 'ndiswrapper' in all categories among: ]
 * installed packages
[I--] [  ] net-wireless/ndiswrapper-1.2-r1 (0)
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-04-16 01:59:56 UTC
Created attachment 84761 [details, diff]
baselayout - wpa_supplicant - bash-3.1 patch

Please test this patch
Comment 6 Ian 2006-04-16 02:38:44 UTC
Applied the patch, but still the same error, ndiswrapper (iw_set_tx_power:421): setting tx_power failed (C0010015), so I have unapplied the patch and gone back to bash-3.0-r12
Comment 7 Silas Francisco 2006-04-16 08:52:15 UTC
For me, worked fine with this patch:

-----------------------------------------------------

--- lib/rcscripts/net.modules.d/wpa_supplicant	(revision 1787)
+++ lib/rcscripts/net.modules.d/wpa_supplicant	(working copy)
@@ -99,7 +99,8 @@
 # Note that just because we are associated does not mean we are using the
 # correct encryption keys
 wpa_supplicant_associated() {
-	local -a status=( "$( wpa_cli -i${1} status | awk -F= '/^key_mgmt|^wpa_state|^EAP state/ { print "\""$2"\"" }' )" )
+	local -a status
+	eval status=( $( wpa_cli -i"$1" status | awk -F= '/^key_mgmt|^wpa_state|^EAP state/ { print "\""$2"\"" }' ) )
 
 	case ${status[0]} in
 		"NONE"	)		[[ ${status[1]} == "ASSOCIATED" || ${status[1]} == "COMPLETED" ]] ;;
@@ -214,7 +215,8 @@
 
 	# Set ESSID for essidnet and report
 	ESSID=$( wpa_supplicant_get_essid ${iface} )
-	local -a status=( "$( wpa_cli -i${iface} status | awk -F= '/^bssid|^pairwise_cipher|^key_mgmt/ { print "\""$2"\"" }' )" )
+	local -a status
+	eval status=( $( wpa_cli -i"${iface}" status | awk -F= '/^bssid|^pairwise_cipher|^key_mgmt/ { print "\""$2"\"" }' ) )
 	local mac=$( echo ${status[0]} | tr '[:lower:]' '[:upper:]' )
 	einfo "${iface} connected to \"${ESSID//\\\\/\\\\}\" at ${mac}"
 
-------------------------------

Just changed -i $"{iface} to -i "${iface}
Comment 8 Silas Francisco 2006-04-16 08:59:03 UTC
Created attachment 84782 [details, diff]
Simple modification to the first patch

with original patch gave me this error:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Comment 9 Silas Francisco 2006-04-16 09:04:43 UTC
Created attachment 84783 [details, diff]
Simple modification to the first patch 2 - sorry

the first one worked too, but wasnt the patch i wanted to send :)
sorry guys, its my first time
Comment 10 SpanKY gentoo-dev 2006-04-16 12:55:52 UTC
so does the last patch work for everyone ?
Comment 11 SpanKY gentoo-dev 2006-04-16 13:05:41 UTC
*** Bug 130106 has been marked as a duplicate of this bug. ***
Comment 12 Ian 2006-04-17 01:19:34 UTC
Yep, works for me as well... cheers.
Comment 13 Stefano 2006-04-17 03:46:05 UTC
(In reply to comment #10)
> so does the last patch work for everyone ?

I confirm I had the bug (with ipw2100 and not ndiswrapper), and that the last patch worked as a charm !
Comment 14 Ian 2006-04-17 03:52:21 UTC
Thanks for the help and fixing the bug.
Comment 15 Henrik Brix Andersen 2006-04-17 06:30:17 UTC
Please don't close a bug as FIXED until the Gentoo developers have committed the patch.
Comment 16 SpanKY gentoo-dev 2006-04-17 08:34:34 UTC
baselayout-1.11.14-r8 now in portage with patch, thanks all
Comment 17 SpanKY gentoo-dev 2006-04-18 06:20:11 UTC
*** Bug 130350 has been marked as a duplicate of this bug. ***
Comment 18 Antek Grzymała (antoszka) 2006-04-19 16:29:29 UTC
*** Bug 130531 has been marked as a duplicate of this bug. ***