when i upgraded gentoo on my laptop to baselayout 1.12.4-r6 i noticed a weird behaviour. When i start net.ath0, the link is established and then dropped in a few seconds. system log states 'module unloaded'. when i watched why is it happening, i ran iwconfig quickly a couple of times after starting net.ath0. What i have noticed, the frequencies were being switched constantly, the node changing state from associated - to disasocciated with the AP a few times and then the link was dropped. I was 1 meter from AP so the signal strength was very good. When i downgrade to baselayout 1.11.15, system is stable and working. here is my net config: modules=( "wpa_supplicant" ) wpa_supplicant_ath0="-Dmadwifi" #wpa_supplicant_ath0="-Dwext" wpa_timeout_ath0=60 config_eth0=( "dhcp" ); config_ath0=( "dhcp" ); preup() { if [ ${IFACE} == "ath0" ]; then modprobe ath_pci fi return 0; } postdown() { if [ ${IFACE} == "ath0" ]; then rmmod ath_pci fi return 0; } wpa_supplicant.conf: network={ ssid="MyNet" psk=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX key_mgmt=WPA-PSK proto=WPA pairwise=CCMP TKIP group=CCMP TKIP scan_ssid=0 priority=5 } network={ ssid="Galeria_Kazimierz" priority=1 key_mgmt=NONE } emerge info: Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17.9 i686) ================================================================= System uname: 2.6.17.9 i686 Intel(R) Pentium(R) M processor 1.80GHz Gentoo Base System version 1.6.15 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r1 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.59-r7 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -O2 -msse2 -mmmx -mfpmath=sse -pipe -funroll-loops -frerun-loop-opt -falign-functions=64 -feliminate-unused-debug-types" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /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/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium-m -O2 -msse2 -mmmx -mfpmath=sse -pipe -funroll-loops -frerun-loop-opt -falign-functions=64 -feliminate-unused-debug-types" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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/portage_tmp" PORTDIR="/usr/portage/" PORTDIR_OVERLAY="/usr/portage/local" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X acpi alsa apache2 apm arts avi berkdb bidi bitmap-fonts bluetooth bzip2 calendar cdr cli crypt cups dga dlloader dri dvd dvdr dvdread eds emboss encode esd foomaticdb fortran gdbm gif gnokii gnutls gpm gstreamer gtk gtk2 imlib isdnlog jabber java jikes jpeg kde kdeenablefinal libg++ libwww mad mikmod mime mmx mmx2 motif mp3 mpeg msn ncurses nls nptl nptlonly nsplugin ogg opengl pam pcmcia pcre pdf pdflib perl png posix pppd python qt qt3 qt4 quicktime readline reflection samba sdl session smime spell spl sse sse2 ssl tcpd tidy tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi win32codecs x86 xinerama xml xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev input_devices_synaptics kernel_linux userland_GNU video_cards_vesa video_cards_radeon video_cards_fglrx" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Does it work if you remove module loading and unloading in your preup and postdown?
hmmm, it just happened with the old baselayout too. Just as i have noticed with the new baselayout it disconnects almost immidiatelly, but with the old on it works for some time before it breaks. I need to investigate it more.
this wifi seem to depend on a dozen of unknown factors - including probably a phase of the moon as well. After like 10 recompiles of different madwifi-ng/wpa_supplicant version combinations i got it to work very stable with the old baselayout. i then upgraded to new baselayout and it stopped to work :( and it doesnt matter if i have the module loaded/unloaded by preup functions - result is the similar Marek