Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I feel like I must be missing something obvious, but I can't figure out how to do this. I use my laptop frequently in three different locations with WiFi networks. Two of them have WEP turned on, one doesn't. I would like to have the system configure itself with the appropriate encryption settings based on the ESSID of the network, but I can't seem to find an easy way to do it. Any suggestions?
Wpasupplicant might work for you or waproamd. Waproamd is the older of the two and is no longer in development. Dont have a clue on how to get wpasupplicant working yet, only installed it today and am going to play with it latter. But what it does (apparently) is gets your card to search for networks, when it finds one, looks in the config, if it matches one, authenticates and away you go. Its config file looks abit horrifying to me at the moment, but then again they all do untill you understand how they work.
I haven't gotten it to work completely yet. I go between two locations that are using standard WEP and two that run open WAPs. I was able to build it and get it to run with no problem, and I can run it from the command line and connect to my local AP using WEP. I haven't been able to get it hooked in to the startup scripts, though. It tells me it's associated with the AP, but I can't get DHCP responses to the interface after that.
I don't mind running it from the command line, since I only will be using it at school. But there is something wrong with my configuration.
This is what I have edited in /etc/wpa_supplicant.conf :
Code:
# EAP-FAST with WPA (WPA or WPA2)
network={
ssid="eap-fast-test"
key_mgmt=WPA-EAP
eap=FAST
anonymous_identity="FAST-000102030405"
identity="username"
password="password"
phase1="fast_provisioning=1"
pac_file="/etc/wpa_supplicant.eap-fast-pac"
}
I have filled in the ssid, my username and my password. I have also put the right pat to the pac-file.
Then later on, this is what happens:
Code:
bluefish:~# wpa_cli
Could not connect to wpa_supplicant - re-trying
and
Code:
bluefish:~# wpa_supplicant
Line 436: unknown EAP method 'FAST'
You may need to add support for this EAP method during wpa_supplicant
build time configuration.
See README for more information.
Line 436: failed to parse eap 'FAST'.
Line 442: failed to parse network block.
Failed to read configuration file '/etc/wpa_supplicant.conf'.
I was hoping that someone here would know how to fix this..
Originally posted by mdj Get the source package and build it. It sounds like whatever binary package you got doesn't have that module built in. It's a piece of cake to build.
Ok, So I downloaded wpasupplicant from this page: http://packages.debian.org/unstable/net/wpasupplicant (wpasupplicant_0.3.8.orig.tar.gz), and I have now read the README. I am still unsure of how to make this build-time-configuration-file..
Here we go again. I have managed to make a .config, but when I run 'make' I get this error (and yes, I have openssl installed):
Code:
bluefish:/usr/local/lib/wpa_supplicant-0.3.8# make
cc -MMD -O2 -Wall -g -I../driver/modules -I../utils -I../hostapd -DCONFIG_DRIVER_MADWIFI -DEAP_FAST -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE -DCONFIG_XSUPPLICANT_IFACE -c -o md5.o md5.c
In file included from md5.c:20:
md5.h:6:25: warning: openssl/md5.h: No such file or directory
md5.c: In function `md5_mac':
md5.c:26: error: `MD5_CTX' undeclared (first use in this function)
md5.c:26: error: (Each undeclared identifier is reported only once
md5.c:26: error: for each function it appears in.)
md5.c:26: error: parse error before "context"
md5.c:27: warning: implicit declaration of function `MD5_Init'
md5.c:27: error: `context' undeclared (first use in this function)
md5.c:28: warning: implicit declaration of function `MD5_Update'
md5.c:31: warning: implicit declaration of function `MD5_Final'
md5.c: In function `hmac_md5_vector':
md5.c:39: error: `MD5_CTX' undeclared (first use in this function)
md5.c:39: error: parse error before "context"
md5.c:47: error: `context' undeclared (first use in this function)
make: *** [md5.o] Error 1
Near the top of the .config file are the following lines:
Code:
# Uncomment following two lines and fix the paths if you have installed openssl
# in non-default location
#CFLAGS += -I/usr/local/openssl/include
#LIBS += -L/usr/local/openssl/lib
Try specifying the path to the openSSL includes using that CFLAGS statement;
Ah, that could be the problem. You said you'd installed the openssl packages, but it sounds like you didn't instal the openSSL development packages. On my (SuSE) system, /usr/include/openssl/md5.h is provided by openssl-devel-0.9.7d-25.1. That's what I'd check next.
Originally posted by mdj Ah, that could be the problem. You said you'd installed the openssl packages, but it sounds like you didn't instal the openSSL development packages. On my (SuSE) system, /usr/include/openssl/md5.h is provided by openssl-devel-0.9.7d-25.1.
I have installed the following packages:
libssl-dev
openssl
.. apt-cache search doesn't return much more about (open)ssl.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.