Hi Steps to reproduce: 1. Buy Wireless card, D-Link, identified as: 0000:01:07.0 Ethernet controller: Atheros Communications. 2. Install baselayout >= 1.12.6 Description: It worked fine before, until I've upgraded my system. Typically, thing which causes the problem is new set of "baselayout" scripts: dom ~ # /etc/init.d/net.ath0 restart * Starting ath0 * Configuring wireless network for ath0 Error for wireless request "Set Mode" (8B06) : SET failed on device ath0 ; Invalid argument. * ath0 does not support setting the mode to "managed" Error for wireless request "Set Mode" (8B06) : SET failed on device ath0 ; Invalid argument. * ath0 does not support setting the mode to "managed" * Failed to configure wireless for ath0 [ !! ] dom ~ # As far I see, problem is around line 122 of /lib/rcscripts/net/iwconfig.sh file: 124 # Devicescape stack requires the interface to be down 125 interface_down "${iface}" 126 if ! iwconfig "${iface}" mode "${mode}" ; then If you look at madwifi web site, there is cross related bug report about the same problem: http://madwifi.org/ticket/955 Exactly, its said: """Looks like a set of scripts that are not yet fully compatible with madwifi-ng. They seem to try to change the operating mode of an existing VAP via "iwconfig ath0 mode ...", which is not supported by current MadWifi versions. """ Probably I will have no time fixing it myself since it takes much time to get into problem domain, I am not very experienced with Gentoo baselayout scripts to fix the problem professionally, and I need a expert help to fix this problem. More: 1. Here is my /etc/conf.d/wireless dom ~ # cat /etc/conf.d/wireless essid_ath0="xxxxxsid" mode_eth0="master" config_ath0=( "192.168.30.254/24" ) 2. Here is my emerge info: Portage 2.1.1-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gent oo-r3-AVKHOME i686) ================================================================= System uname: 2.6.18-gentoo-r3-AVKHOME i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.6 Last Sync: Fri, 01 Dec 2006 23:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11 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-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 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/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.virt.halogen.kharkov.ua/ ftp://gentoo.inode.at/ source/ http://85.25.128.62 http://gentoo.inode.at/" LINGUAS="en ru" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X alsa apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cu ps dlloader doc dri dvd dvdr eds elibc_glibc emacs emboss encode esd examples fo omaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 iconv imlib input_devices _evdev input_devices_keyboard input_devices_mouse ipv6 irda isdnlog jpeg kde kde enablefinal kernel_linux libg++ libwww linguas_en linguas_ru mad madwifi mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png pp pd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcltk tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_r adeon vorbis xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEO PTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY 3. This baselayout not working: * sys-apps/baselayout Latest version available: 1.12.6 Latest version installed: 1.12.6 Alex
(In reply to comment #0) > If you look at madwifi web site, there is cross related bug report about the > same problem: > http://madwifi.org/ticket/955 > > Exactly, its said: > """Looks like a set of scripts that are not yet fully compatible with > madwifi-ng. They seem to try to change the operating mode of an existing VAP > via "iwconfig ath0 mode ...", which is not supported by current MadWifi > versions. > """ OK, here's the deal. We just use iwconfig to talk to the wireless cards. If you read the iwconfig man page it states you should be able to change the operating mode. Infact the madwifi driver used to allow this. Bluntly, this is a madwifi problem and not baselayout.
Hi Roy, Thanks for explanations! OK, I will patch the file every time I upgrade baselayout until madwifi-ng people add support for setting mode via iwconfig. For those who hit the same problem as I do, my fix is the following: I've just added 'return 0' to any attempt to change mode. For me, it works perfectly, but of course it's bad solution for people with more then one card on board. Here is the changed function (/lib/rcscripts/net/iwconfig.sh): iwconfig_set_mode() { local iface="$1" mode="$2" [[ ${mode} == $(iwconfig_get_mode "${iface}") ]] && return 0 # # Always return zero # return 0 # Devicescape stack requires the interface to be down interface_down "${iface}" if ! iwconfig "${iface}" mode "${mode}" ; then eerror "${iface} does not support setting the mode to \"${mode}\"" return 1 fi interface_up "${iface}" } Regards, Alex