Quote:
Originally Posted by Hangdog42
You know, you might want to drop an email on how you did this to Alien Bob (Eric). My understanding is that the Slackware wpa_supplicant package is based off of his work. You're certainly not the only Slacker using an Atheros chipset, so it REALLY ought to be included. Particularly if there are specific goat sacrifices needed to get it working.
|
Hey! Careful or you'll have PETA protestors crawling all over this place. Note: No goats were harmed in the compiling of this package (although we did slaughter a couple of chickens and the fatted calf).
You're right, more details would help.
I've compiled lots of code from source. Normally, it's a simple matter of ./configure, make, checkinstall (which I use to create a Slack package for easy removal). Sometimes, I have to do something like exporting a lib or path or add an option like --with-some_option. On rare occasions, I've edited a Makefile to fix a compile error.
The README for wpa_supplicant was not intuitive (to me). I finally grasped that the ./configure step was replaced by me creating a .config file and that the example was contained in a file labelled defconfig. It says that, but like looking at a man page if you've never seen one, it didn't "click" at first.
The next challenge was the syntax in the config file. There are notes for the user to point the compiler script to things it needs - OpenSSL, for example. So,
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
becomes
Code:
CFLAGS += -I/usr/include/openssl
LIBS += -L/usr/lib
To compile Atheros support, one needs to point the wpa_supplicant compile to the MadWiFi driver source code so you'll need that as well (I had already buit the driver).
Here's the relevant part of the config file:
Code:
# Driver interface for madwifi driver
#CONFIG_DRIVER_MADWIFI=y
# Change include directories to match with the local setup
#CFLAGS += -I../madwifi/wpa
I modified it to this, as I'd unzipped the madwifi tarball in my home dir:
Code:
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I/home/dipstick/madwifi-0.9.2
All of the EAP methods were uncommented by default (meaning that the supplicant would compile in support for them) except for some experimental or very rare types like EAP_SIM. I left them in even though I only intend to use TLS. A really skinny package wasn't a goal.
The "make" step went fine and the install step is to simply copy two binaries - wpa_supplicant and wpa_cli to /usr/local/bin.
I used checkinstall to make a Slackware tgz, which I'd be happy to send to Alien_Bob or anyone else for testing. (Alien_Bob's work with the recent scripts is much appreciated, and I'm sorting through them this morning to see if I can figure out how to make rc.wireless play nicely with ath0.)