Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115664 - [baselayout-1.12.0_pre11-r3] Wireless card fallback settings stopped working
Summary: [baselayout-1.12.0_pre11-r3] Wireless card fallback settings stopped working
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-15 08:10 UTC by Oldrich Jedlicka
Modified: 2005-12-20 10:13 UTC (History)
0 users

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


Attachments
My wireless interface configuration file /etc/conf.d/net.eth1 (net.eth1,336 bytes, text/plain)
2005-12-15 08:12 UTC, Oldrich Jedlicka
Details
Proposed patch to do mode changing before any other settings (iwconfig.patch,1.06 KB, patch)
2005-12-15 08:30 UTC, Oldrich Jedlicka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oldrich Jedlicka 2005-12-15 08:10:11 UTC
I'm using wireless-tools-28_pre10 (they are stable on x86) and there is a
problem in /lib/rcscripts/net.modules.d/iwconfig in function
iwconfig_setup_specific():

When the ESSID is set up and the mode is changed afterwords (from Managed into
Ad-Hoc), then the ESSID goes into off/any state.

Here is the listing of the first two lines of iwconfig when I added the command
echo "`iwconfig eth1`" into /lib/rcscripts/net.modules.d/iwconfig before and
after the mode change:

before mode change:
  eth1      unassociated  ESSID:"FRQ"  Nickname:"FRQ"
            Mode:Managed  Channel=0  Access Point: 00:00:00:00:00:00
after mode change:
  eth1      unassociated  ESSID:off/any  Nickname:"FRQ"
            Mode:Ad-Hoc  Channel=0  Cell: 00:00:00:00:00:00

After this the "dhcp" is tried even I have a line config_FRQ in my config file.

The command "/etc/init.d/net.eth1 restart" looks like this:
 * Starting eth1
 *   Configuring wireless network for eth1
 *     no access points found
 *   Couldn't find any access points on eth1
 *     eth1 connected to ""
 *     in ad-hoc mode on channel 3 (WEP disabled)
 *   Configuration not set for eth1 - assuming dhcp
 *   Bringing up eth1
 *     dhcp
 *       Running dhcpcd ...


Reproducible: Always
Steps to Reproduce:
1. Use the fallback ad-hoc network settings in /etc/conf.d/net.ethX
2. Try to start the interface via /etc/init.d/net.ethX


Actual Results:  
The interface (ESSID) is not configured properly and the IP is not set up.

Expected Results:  
The mode should be changed before any other parameters are set, I think.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-suspend2-r6 i686)
=================================================================
System uname: 2.6.14-suspend2-r6 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre11
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /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 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.gentoo.gr.jp http://ftp.gentoo.or.kr/
http://gentoo.gg3.net/ http://gentoo.kems.net http://mymirror.asiaosc.org/gentoo/"
LANG="cs_CZ.ISO-8859-2"
LC_ALL="cs_CZ.ISO-8859-2"
LINGUAS="cs en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/linux/portage-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi adns alsa apache2 arts audiofile avi
bash-completion bdf berkdb bitmap-fonts browserplugin bzip2 ccache cdda cddb
cdparanoia cdr cpudetection crypt css cups curl dbus dga dhcp dpms dri dvd dvdr
dvdread eds emboss encode esd ethereal exif expat extensions fam fbcon ffmpeg
firefox flac font-server foomaticdb fortran freetype ftp gd gdbm gif gimp
gimpprint glut gmp gphoto2 gpm gs gstreamer gtk2 hal iconv icq idn ieee1394
imagemagick imlib iproute2 ipv6 java javascript jp2 jpeg jpeg2k junit kde
kdeenablefinal kdexdeltas kqemu lame lcms ldap libcaca libg++ libwww lirc lzo
lzw mad maildir matroska mhash mikmod mjpeg mmx mng motif mozdevelop mozilla
moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer musepack mysql ncurses
network nls no-old-linux nptl nsplugin odbc offensive ogg oggvorbis openexr
opengl oscar oss pam pam_chroot pam_console pam_timestamp pccts pcmcia pcre
pdflib perl php png pnp posix postgres ppds python qt quicktime quotas readline
real recode rtc samba scanner sdl sharedmem slang sox spell sql sqlite sse sse2
ssl stroke svg svga tcltk tcpd tetex tga theora threads tidy tiff transcode
truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vcd
vim-with-x vorbis wifi win32codecs wmf xine xinerama xml xml2 xmms xosd xpm
xprint xrandr xscreensaver xv xvid xvmc yv12 zlib zvbi video_cards_radeon
linguas_cs linguas_en linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Oldrich Jedlicka 2005-12-15 08:12:14 UTC
Created attachment 74805 [details]
My wireless interface configuration file /etc/conf.d/net.eth1
Comment 2 Oldrich Jedlicka 2005-12-15 08:30:22 UTC
Created attachment 74807 [details, diff]
Proposed patch to do mode changing before any other settings
Comment 3 Oldrich Jedlicka 2005-12-15 08:33:49 UTC
The patch is working correctly. I didn't investigate if the problem is also
somewhere else in /lib/rcscripts/net.modules.d/*.

I'm also not completely sure if the behaviour of iwconfig tool is correct, but
the logic - change mode plus invalidate the ESSID - looks ok to me.
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-12-15 09:02:27 UTC
It's probably a driver issue as my cards work fine with wireless-tools-28_pre10 
on x86 and amd64 with the unpatched code. Your patch has no effect, but I can 
understand the logic.

I've applied your patch to our svn repo - thanks!

Will be in baselayout-1.12.0_pre12
Comment 5 Oldrich Jedlicka 2005-12-16 00:09:00 UTC
Great, thanks :-)
Comment 6 Roy Marples (RETIRED) gentoo-dev 2005-12-20 10:13:20 UTC
Fixed in baselayout-1.12.0_pre12