You can use the "madwifi" drivers provided for the Atheros card (DWL-G650), this script will download and install the files needed.
Code:
#!/bin/bash
cd /usr/src
rm -Rf /usr/src/madwifi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi
cd /usr/src/madwifi
#Use for 32-bit OS
make
#Use for 64-bit OS
#make TARGET=x86_64-elf TOOLPREFIX=""
make install
You can test the kernel module with:
Next, insert this code into
/etc/modprobe.conf
Then edit
/etc/sysconfig/network-scripts/ifcfg-ath0
Code:
IPV6INIT=no
ONBOOT=no
USERCTL=yes
PEERDNS=yes
TYPE=Wireless
DEVICE=ath0
BOOTPROTO=dhcp
HWADDR=
IPADDR=
NETMASK=
GATEWAY=
DOMAIN=
DHCP_HOSTNAME=
ESSID='put_your_essid_in_here'
CHANNEL=1
MODE=Managed
RATE=auto
You can control the device with:
Code:
ifup ath0
ifdown ath0
Thats enough to get you up and running, but now you need to secure it....
For WPA Security, download this file:
http://hostap.epitest.fi/releases/wp...t-0.4.3.tar.gz
Code:
tar -xzvf wpa_supplicant-0.4.3.tar.gz -C /usr/src
cd /usr/src/wpa_supplicant
cp defconfig .config
Make the following changes in
.config file
Code:
CONFIG_DRIVER_MADWIFI=Y <-- uncomment this
CFLAGS += -I../madwifi <-- change this
Now save the file and build the source code:
Code:
make clean
make
make install
Now edit
/etc/wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="put_your_essid_in_here"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk="insert_secret_passphrase_in_here_for_wpa"
}
You may need to check if
/var/run/wpa_supplicant directory exists yet.
Now to automate things a little:
Edit
/etc/sysconfig/network-scripts/ifup-wireless
Put this code at the VERY BOTTOM.
Code:
echo -e \\n\\nInitialising \'wpa_supplicant\' WIFI Security....\\n
kill -9 `ps -e | grep wpa_supplicant | cut -f2 -d " "` 2>/dev/null
/usr/local/sbin/wpa_supplicant -Bdw -i ath0 -c /etc/wpa_supplicant.conf -D madwifi
Now
ifup ath0
That should get you up and running... remember to check your logs
Code:
dmesg
tail -n 50 /var/log/messages
Hope that helps..
Miles.