Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 174022 - wifi cards do not connect in tcp/ip layer as client with wep or key off
Summary: wifi cards do not connect in tcp/ip layer as client with wep or key off
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 11:48 UTC by usertech
Modified: 2007-05-09 18:22 UTC (History)
0 users

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 usertech 2007-04-10 11:48:26 UTC
Is very strange thing:

If I connect to a wireless router as client with "wep" or "key off" from my gentoo box, I associate to the router, as I can see with iwconfig.
But there is not real ethernet connection,not answers to ping or any protocol connection,but I'm associated and I can sniff traffic, tested with etherape and ethereal. Of course firewall is down and I tested many times with wep or with key off and I tried 3 different routers, a fonera, a linksys and a atheros card as AP.

If I use WPA it works perfectly, and If I use gentoo as "AP" and any other card as client it works well too, there is normal connection with ping,shh ftp etc.etc.

The only problem is my gentoo box as client and is not in the ie811 layer, I think, because association is done and I can even sniff traffic.

This happens in both ways, for example, there is notping from cliento to ap, and there is not ping from ap to client, but they are associated in the wireless layer.

I tried with 2 different cards in my gentoo box, and atheros card with madwifi-ng and a broadcom card with bcm43xx module. Both as client with wep or key off they are not working well, but they both associate, an both work well with WPA.
That's why I think must be something with kernel or wireless-tools, not the wifi card drivers.

So strange, isn't it?





Reproducible: Always

Steps to Reproduce:
1.associate to a router with wep or key off, well done.
2.configuring by static ip the client, and tray ping or connect ssh, telnet, I get connection unreachable.
3.

Actual Results:  
no protocols connection in layer ...??

Expected Results:  
I expected a response from the router, or from the client to the router.

 uname -ra
Linux ****** 2.6.19-gentoo-r5 #4 PREEMPT Mon Feb 26 20:25:22 UTC 2007 i686 Mobile Intel(R) Celeron(R) CPU 1.60GHz GenuineIntel GNU/Linux


 cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example http://www.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="-kde -arts  X vorbis realtime-lsm blender-game openal openexr qt3support wlan nptl xfs pdf dssi vst injection nptlonly reiserfs flac svg asf gmail pop xvid sox nls spell threads mp3 ogg  gtk2 xfce4 jack timidity win32codecs sndfile dvd cdr sse sse2 gdm alsa acpi audiofile avi aac aalib audiofile cdr clamav crypt dri dvd dvdread encode ffmpeg ieee1394 mad mmx mozilla mysql pcmcia php png quicktime spell vcd videos wifi usb"

LINGUAS="es"
INPUT_DEVICES="keyboard kbd mouse"
VIDEO_CARDS="radeon vesa fbdev"

#GENTOO_MIRRORS="ftp://mirror.isp.net.au/pub/gentoo/ "

GENTOO_MIRRORS="ftp://ftp.planetmirror.com.au/pub/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"

SYNC="rsync://rsync.gentoo.org/gentoo-portage"

#PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/overlays/xgl-coffee"

NPTL_KERNEL_VERSION="2.6.11"

#source /usr/portage/local/layman/make.conf



#by me
#FEATURES="distcc"
#CC="distcc gcc"
#DISTCC_HOTS="server server"
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2007-04-17 01:38:55 UTC
Please also provide output of `emerge --info`.

Reassigning to mobile team, as it is unlikely that the fault is within kernel (tcp/ip stack works with wep or no encryption)
Comment 2 usertech 2007-04-17 07:57:16 UTC
(In reply to comment #1)
> Please also provide output of `emerge --info`.
> 
> Reassigning to mobile team, as it is unlikely that the fault is within kernel
> (tcp/ip stack works with wep or no encryption)
> 
Really i love this bug, I can connect to any wifi network and I will not been discovered, even trying to check if I'm sniffing with neped, ettercap or nast won't find me in the network, only the ap that I associated will have my mac in the logs, this bug should be an option, a security option..hehehe.

 emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Mobile Intel(R) Celeron(R) CPU 1.60GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 16 Apr 2007 08:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"                      
CXXFLAGS="-O2 -march=pentium4"  
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.planetmirror.com.au/pub/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LINGUAS="es"                    
MAKEOPTS="-j2"                  
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acpi alsa apache2 apm asf audiofile avi berkdb bitmap-fonts blender-game cdr clamav cli cracklib crypt cups dri dssi dvd dvdread eds emboss encode esd ffmpeg flac foomaticdb fortran gdbm gdm gif gmail gnome gpm gstreamer gtk gtk2 iconv ieee1394 imlib injection ipv6 isdnlog jack jpeg libg++ libwww mad midi mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg openal openexr opengl oss pam pcmcia pcre pdf perl php png pop pppd python qt3 qt3support qt4 quicktime readline realtime-lsm reflection reiserfs sdl session silc sndfile sox spell spl sse sse2 ssl svg tcpd threads timidity truetype truetype-fonts type1-fonts usb vcd videos vorbis vst wifi win32codecs wlan x86 xfce4 xfs xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard kbd mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 usertech 2007-04-25 14:51:53 UTC
ok, I think I discovered the problem.

This only happened when I changed the card mac, I did not noticed because I said in conf.d/net to change all cards macs automatically. But playing with the atheros card, and a Fonera I discovered that I cannot connect when I changed the mac.

I just tried to connect to a linksys with no mac changes and it did connect, I changed the mac, I can associate but I get not real connection, no ping..etc,etc,then must be somthing with the macs.

Strange, isn't it?? Playing with the broadcom card I broke it and I cannot test if is the same with that card, but I think so..

The strange thin too is that "la fonera" has her own kernel, not the gentoo kernel, but happens exactly the same, if I change the the mac I cannot connect in tcp/ip layer as client...  so strange...

Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-09 18:22:18 UTC
I believe this is not a gentoo problem but a driver/kernel space problem. Can you please report this to the wireless mailing list?

http://news.gmane.org/gmane.linux.kernel.wireless.general

If you found a way to fix this in Gentoo please report back.