LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2009, 12:13 PM   #1
delta function
Member
 
Registered: Jul 2004
Posts: 51

Rep: Reputation: 20
Why ist wicd doing its job on encrypted networks ???


Hi there,

I have lots of trouble with wicd and encrypted networks. I know there a lot of information on this board and many many elsewhere. It seems they all have something in common: Encrypted networks.

And most of the time the solution is to use a workaround with inet1 and rc.wireless. Well these do work, but I am a lot on the road and working with many different secured networks. So editing rc.inet1.conf and rc.wireless aren't really an option.

The specs:
wifi card broadcom bcm4313
using ndiswrapper (slackbuilds) and XP inf driver for the card
Slackware 12.2, no kernel patches installed.

inet1 conf according to AlienBob and wicd wiki, no effect on issue

CLI:
wpa_supplicant -i wlan0 -D wext -B -c /{path to wicd stored connections} -> works

So the config files are correct. The GUI (wicd-client) cant connect to any encrypted network. Checking router logs:
WPA retey failed"

=> Its a communication issue between wicd-client and router. The wpa passwords are not send correctly.

Playing with psk entries: using "psk password", using wpa_passphrase, HEX etc .... no influence on the issue: WPA retey failed.
PLaying with WPA1/2 Passphrase or Shared Key -> no success either.

Only the cli way with wpa_supplicant seems to work.

WHY cant wicd ( tried 1.5.4, 1.5.3, 1.5.6 and the latest version) do it ?

Using wpa_supplicant.conf with rc.inet1 will work, but once you are not around known ESSIDs, startup can take quite a while.

Checked with wicd forums, #irc channels, goolgle, etc ... but no real solution yet.

The same applies also to Wireless-Assistant, Kwlan. Have not yet gotten my hands on wifi-rader yet.

My solution for now :
Code:
#!/bin/bash


/sbin/iwlist wlan0 scan | grep 'ESSID' | awk '{print $1}' | sed -e 's/ESSID://' | sed -e 's/"//' | sed -e 's/"//' > ./wifi-networks.txt

#Read file into array
declare -a ARRAY

# open the file
exec 3<$0
exec 0<wifi-networks.txt
let count=0

while read line 
do

ARRAY[$count]=$line
((count++))
done

# Print to check content
#echo ${ARRAY[@]}

#close the file
exec 0>&3

#remove the file
rm ./wifi-networks.txt

### My ESSID Networks

ESSID[0]="M-WPA2"
ESSID[1]="MiX"

for i in ${ESSID[@]} 
do

j=0
found=""
until [ $j  == ${#ARRAY[@]} ];
do
	if [ ${ESSID[$i]} = ${ARRAY[$j]} ];
	then
		found=${ARRAY[$j]}
		break
	else 
		break
	fi
done

done

#echo "Match: $found"

# starting wpa config for ssid

if [ "$found" = "" ];
then
	echo "no network found"
else

		echo "Network found: $found"
		

		#take interface down
		ifconfig wlan0 down
		
		#kill all wpa_supplicant actvities
		#killall wpa_supplicant

		#remove wpa_supplicant instance (if running)
		if [ -e /var/run/wpa_supplicant/wlan0 ]
		then
		rm /var/run/wpa_supplicant/wlan0
		fi
		
		
		#run the wpa file
		wpa_supplicant -i wlan0 -B -D wext -c /etc/wpa_supplicant.conf
## this was redirected to the corresponding wicd configuration files. But the connections were unstable
		
		sleep 1
		
		#run dhcpcd request
		if [ -f /etc/dhcpc/dhcpcd-wlan0.pid ]
		then
		rm /etc/dhcpc/dhcpcd-wlan0.pid
		else 
		dhcpcd -d wlan0
		fi


fi

exit 0
PS: please do not flame me for the poor scripting.

Its getting me a nice stabel connection and I do not have to restart my lappy, but I still want to use a GUI ( wpa_GUI is a nogo ) with Slackware. Other distros do not seem to have that issue.

So if you do not have any problems connecting to wpa1/2 wpa-psk or AES networks. Please drop a line how you do it.

Or better, perhaps you know what am I doing wrong with wicd.

Last edited by delta function; 02-13-2009 at 04:38 PM. Reason: [SOLVED}
 
Old 02-13-2009, 01:00 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
I have had no problems using WICD on WEP, WPA1/2 Passphrase and PSK. Check to see if you have anything filled out in the WPA_supplicant.conf file and make sure it is clean. Also the only other thing that i can think of is that ndiswrapper is interfering with it. have you tried setting WICD to use ndiswrapper for the WPA_supplicant authentication (under preferences) or changing it from Ndiswrapper to Wext?
 
Old 02-13-2009, 04:41 PM   #3
delta function
Member
 
Registered: Jul 2004
Posts: 51

Original Poster
Rep: Reputation: 20
ISSUE solved:

thanks for you comment, you opened the road.

I have the b43 driver no working and everything is fine. I totally forgot about the new b43 drivers, so i installed the wifi card the ndiswrapper way. That was the mistake.

Slackbuilds.org THANK YOU
 
Old 02-14-2009, 03:35 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Remember that in most cases you should try to look for and use native drivers. ndiswrapper can be considered a 'hack' to get it working. In some rare instances the hack is better than the native drivers, but in most cases it's the other way around.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
(/bin/sh: can't access tty; job control turned off) Problem booting encrypted /root trapix22 Debian 0 10-25-2008 08:27 AM
Can't Connect to any Encrypted Wireless Networks markackerman8@gmail. Linux - Newbie 3 07-13-2008 12:52 PM
Wireless card fails to connect to encrypted networks rhathar Linux - Wireless Networking 4 02-29-2008 11:44 PM
Is ist possible to remove a post? xpucto LQ Suggestions & Feedback 1 01-28-2006 04:46 AM
wo ist die 2.4.8 headers? acid_kewpie Linux - General 2 09-17-2001 10:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration