ok this problem is really ticking me off now i've been trying to solve this for days but no luck. Ok im running windowmanager on slackware 10.2 with the default 2.4.x kernel.
I have an atheros wireless card and have installed wpa_supplicant and madwifi. I input the following in to the console:
sh-3.00# modprobe ath_pci
sh-3.00# wlanconfig ath0 create wlandev wifi0 wlanmode sta
ath0
sh-3.00# modprobe wlan_scan_sta
sh-3.00# ifconfig ath0 up
sh-3.00# iwconfig ath0
ath0 IEEE 802.11g ESSID:"" Nickname:""
Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00
Bit Rate:0 kb/s Tx-Power:17 dBm Sensitivity=0/3
Retry

ff RTS thr

ff Fragment thr

ff
Encryption key

ff
Power Management

ff
Link Quality=0/94 Signal level=-95 dBm Noise level =-95 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
sh-3.00# wlanconfig ath0 list scan
SSID BSSID CHAN RATE S:N INT CAPS
hell 00:11:50:39:af:f6 10 54M 56:0 100 EPSs WPA
sh-3.00# iwlist ath0 scan
ath0 Scan completed :
Cell 01 - Address: 00:11:50:39:AF:F6
ESSID:"hell"
Mode:Master
Frequency:2.457 GHz (Channel 10)
Quality=55/94 Signal level=-40 dBm Noise level=-95 dBm
Encryption key

n
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Bit Rate:6 Mb/s
Bit Rate:9 Mb/s
Bit Rate:11 Mb/s
Bit Rate:12 Mb/s
Bit Rate:18 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Extra:wpa_ie=dsfy7s8 - long string cant bothered to type.
sh-3.00# iwconfig ath0 essid "hell"
sh-3.00# iwconfig ath0 ap 00:11:50:39:AF:F6
sh-3.00# pwd
/usr/src/wpa_supplicant-0.4.8
sh-3.00# cp defconfig .config
then i edited the following lines of .config in pico.
# Driver interface for madwifi driver
CONFIG_DRIVER_MADWIFI=y
# Change include directories to match with the local setup
CFLAGS += -I/usr/src/madwifi-ng
CONFIG_CTRL_IFACE=y
then i rebuilt wpa_supplicant because i built and installed it without those lines before.
sh-3.00# make clean
rm -f core *~ *.o *.d wpa_supplicant wpa_passphrase wpa_cli wpa_supplicant.exe wpa_cli.exe wpa_passphrase.exe win_if_list.exe
sh-3.00# make
- blah
- blah
- blah
- seems to build ok without errors.
sh-3.00# make install
mkdir -p /usr/local/sbin/
for i in wpa_supplicant wpa_passphrase wpa_cli; do cp $i /usr/local/sbin/$i; done
sh-3.00# wpa_passphrase "hell" "my wpa password" > /etc/wpa_supplicant.conf
sh-3.00# chmod 640 /etc/wpa_supplicant.conf
then inside the network={ } bit in the .conf file i appended this to it:
key_mgmt=WPA-PSK
proto=WPA
# proto=RSN
then i typed this:
sh-3.00# iwconfig ath0 nickname "James-Laptop"
sh-3.00# ifconfig ath0 up
sh-3.00# wpa_supplicant -dd -Dmadwifi -iath0 -c/etc/wpa_supplicant.conf
then it printed loads of stuff to the screen.
i cant copy and paste from console so i'll just type bits of it.
It prints
State: COMPLETED -> GROUP_HANDSHAKE
RTM_NEWLINK, IFLA_IFNAME: Interface 'ath0' added
Wireless even: cmd=0x8b19 len=12
Received 266 bytes of scan results (1 BSSes)
Selecting BSS from priority group 0
0: 00:11:50:39:af:f6 ssid='hell' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
selected based on WPA IE
Already associated with the selected AP.
but i try pinging yahoo.co.uk and it doesn't do it.
i realised i havn't done dhclient thing but at first that said something about ath0 no such device or something so i did this command first:
bash-3.00# dhcpcd ath0
bash-3.00# dhclient ath0
Internet Systems Consortium DHCP Client V3.0.3
Copyright 2004-2005 Internet Systems Consortium.
All rights reserved.
For info, please visit ISC
Listening on Socket/ath0
Sending on Socket/ath0
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
bash-3.00#
ok so its still not working. im stumped. I have no idea what to do, i've been following tutorials on madwifi.org on WPA_PSK and madwifi setup.
i just typed again and it replied:
bash-3.00# dhclient ath0
-info
-info
ath0: not found
-info
bash-3.00#
any information appriciated thanks, please help me resolve this issue because its really getting on my nerves now, i can get on the internet on my laptop on windows (slackware + xp duel booting) and internet on slackware but i just have to plug my laptop in on slackware into the router with an ethernet cable.