Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Broken wireless networking
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Jun 27, 2009 12:56 pm    Post subject: Broken wireless networking Reply with quote

Hi!
I've a very strange problem.

I've installed Gentoo with Kernel 2.6.30-gentoo-r1. My Wifi-Card is an Intel WiFi 5350.

I am unable to connect :(
As the error message said, I've tried with preferred_aps="MY.WLAN" and associate_order_wlan0="forcepreferred".
But this doesn't helped too.

So where could be the problem?

Connecting via console using wpa_supplicant manually works fine!

Quote:

X200T ~ # /etc/init.d/net.wlan0 start
* Caching service dependencies... [ ok ]
* Bringing up interface wlan0
* Configuring wireless network for wlan0
* Scanning for access points
* does not support scanning
* You either need to set a preferred_aps list in /etc/conf.d/wireless
* preferred_aps="SSID1 SSID2"
* and set associate_order_wlan0="forcepreferred"
* or set associate_order_wlan0="forcepreferredonly"
* or hardcode the SSID to "any" and let the driver find an Access Point
* ssid_wlan0="any"
* or configure defaulting to Ad-Hoc when Managed fails
* adhoc_ssid_wlan0="WLAN"
* or hardcode the SSID against the interface (not recommended)
* ssid_wlan0="SSID"
* Failed to configure wireless for wlan0
* ERROR: net.wlan0 failed to start


My /etc/conf.d/net
Quote:

X200T ~ # cat /etc/conf.d/net
# NET

# Module
modules="wpa_supplicant"

# Intel 82567LM Gigabit Network Adapter
config_eth0="dhcp"
dhcpcd_eth0="-t 15"
dhcp_eth0="nodns nontp nonis"

# Intel WiFi Link 5350
config_wlan0="dhcp"
dhcp_wlan0="nodns nonis nontp"
wpa_supplicant_wlan0="-Dwext"

# Intel WiMAX Link 5350
# TODO

# Sony Ericsson F3507g
config_ppp0="ppp"
link_ppp0="/dev/ttyACM0"
pppd_ppp0="connect '/usr/sbin/chat -v -f /etc/ppp/peers/simyo'"


My /etc/wpa_supplicant/wpa_supplicant.conf
Quote:

X200T ~ # cat /etc/wpa_supplicant/wpa_supplicant.conf
# WPA-Supplicant

# Interface
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

# AP-Scan
ap_scan=1
fast_reauth=1

# WLAN
network={
ssid="MY.WLAN"
psk=4bd3sdfd708e6803aa38d065fgf80e39f09df45216150191e553dc8eadf9070e
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
priority=1
}


emerge --info

Quote:

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_L9400_@_1.86GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 27 Jun 2009 10:45:02 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.0_p24
dev-lang/python: 2.6.2-r1
dev-util/ccache: 2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc: 0.4.3-r3
sys-apps/sandbox: 2.0
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.2, 1.11
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -pipe -fomit-frame-pointer -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -O3 -pipe -fomit-frame-pointer -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="amd64 bzip2 dbus gpm iconv ipv6 multilib ncurses nls pam png readline slang ssl symlink tcpd threads unicode xml zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Jun 27, 2009 1:57 pm    Post subject: Reply with quote

Quote:
As the error message said, I've tried with preferred_aps="MY.WLAN" and associate_order_wlan0="forcepreferred".
But this doesn't helped too.

Is ifconfig config notation and won't help with wpa_supplicant.

In your wpa_supplicant.conf comment out everything in interface and ap scan, especially ap_scan=1. This might help.

You will now after publishing your psk have to create a new one.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Jun 27, 2009 2:07 pm    Post subject: Reply with quote

sera wrote:
Quote:
As the error message said, I've tried with preferred_aps="MY.WLAN" and associate_order_wlan0="forcepreferred".
But this doesn't helped too.

Is ifconfig config notation and won't help with wpa_supplicant.

In your wpa_supplicant.conf comment out everything in interface and ap scan, especially ap_scan=1. This might help.

You will now after publishing your psk have to create a new one.


This didn't helped :( Same problem exist. It seems, that the gentoo scripts are not calling wpa_supplicant?
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Jun 27, 2009 2:14 pm    Post subject: Reply with quote

Just realized you are using openrc. So /etc/conf.d/net should look like this and probably no more.
Code:

modules_wlan0=( "wpa_supplicant" )
config_wlan0=( "dhcp" )


Edit: Is the interface after migrating still wlan0?
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Jun 27, 2009 2:19 pm    Post subject: Reply with quote

sera wrote:
Just realized you are using openrc. So /etc/conf.d/net should look like this and probably no more.
Code:

modules_wlan0=( "wpa_supplicant" )
config_wlan0=( "dhcp" )


Edit: Is the interface after migrating still wlan0?


Yes, the interface is still wlan0. My config is imho correctly for openrc. I am unsure what to do now :/
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Jun 27, 2009 2:30 pm    Post subject: Reply with quote

I would give this notation a try as it works for me. I know the migration guide says otherwise.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Sat Jun 27, 2009 2:35 pm    Post subject: Reply with quote

sera wrote:
I would give this notation a try as it works for me. I know the migration guide says otherwise.


ok, as you said :) I've tried now yours. But it didn't helped :( Problem still exist.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Jun 27, 2009 2:43 pm    Post subject: Reply with quote

Sorry checked within a ssh session to a baselayout 1 machine. :oops:
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Sun Jun 28, 2009 9:14 pm    Post subject: Reply with quote

2.6.30 and iwl-5xxx firmware 8.24.2.12 is very messed up. On my system, I get plenty of firmware errors. It was fine on 2.6.29
_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
ConiKost
Developer
Developer


Joined: 11 Jan 2005
Posts: 1371

PostPosted: Tue Jun 30, 2009 9:35 am    Post subject: Reply with quote

Dagger wrote:
2.6.30 and iwl-5xxx firmware 8.24.2.12 is very messed up. On my system, I get plenty of firmware errors. It was fine on 2.6.29

Well, I don't get them here. And as written. Using wpa_supplicant manually, it works fine! So the problem must be somewhere about the gentoo init scripts... I just don't get it, why wpa_supplicant is ignored?
Back to top
View user's profile Send private message
Dagger
Retired Dev
Retired Dev


Joined: 11 Jun 2003
Posts: 765
Location: UK

PostPosted: Mon Jul 06, 2009 1:59 pm    Post subject: Reply with quote

ConiKost wrote:
Dagger wrote:
2.6.30 and iwl-5xxx firmware 8.24.2.12 is very messed up. On my system, I get plenty of firmware errors. It was fine on 2.6.29

Well, I don't get them here. And as written. Using wpa_supplicant manually, it works fine! So the problem must be somewhere about the gentoo init scripts... I just don't get it, why wpa_supplicant is ignored?


I don't use wpa_supplicant manually at all. I can't remember when I did last time.

Personally I use NetworkManager. The problems I'm talking about are:
Code:

[kernel] [   40.902798] iwlagn 0000:0c:00.0: Microcode SW error detected.  Restarting 0x2000000.

_________________
95% of all computer errors occur between chair and keyboard (TM)
Join the FSF as an Associate Member!
Post under CC license.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum