LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-15-2007, 11:36 PM   #1
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Rep: Reputation: 15
hostap wpa_supplicant wifi connects but no services available


I am configuring my linux AP remotely (SSH) since I run it headless (no monitor). I am installing on Slackware 11 with a 2.6.20 kernel. My network is as follows Cable modem connected to a LinkSys Wireless router (WRT54G) that I have 3 hosts connected to, one being the linux box. Wired access works fine. Due to number of clients connecting to the Linksys router I am running out of room for port forwarding and choose to use linux as the router. Linux had 2 wired ethernet cards in it 1 to receive internet from cable modem 1 for internal network and a wireless to set up as an AP, all drivers installed and working (from what I can tell, by having access or listing lspci and lsmod). Installing Hostapd and wpa_supplicant went well with no problems using the madwifi driver for the D-Link AirPlus card using the Atheros AR5212 chipset. I run the following commands in order (not run from script till I can get it working).

wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
iwconfig (to make sure mode was set to master)
iwconfig ath0 essid Home-Lan
ifconfig ath0 192.168.1.3
wpa_supplicant -dw -c /etc/wpa_supplicant.conf -Dmadwifi -i ath0
then in second ssh window
hostapd -dd /etc/hostapd.conf

My /etc/wpa_supplicant.conf file looks like this
update_config=1
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="Home-Lan"
psk=<removed>
key_mgmt=WPA-PSK
pairwise=CCMP
proto=WPA
#proto=RSN
priority=5
}

My /etc/hostapd.conf file

interface=ath0
#bridge=br0
driver=madwifi
#logger_syslog=-1
#logger_syslog_level=2
#logger_stdout=--1
#logger_stdout_level=2
debug=1
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=Home-Lan
#macaddr_acl=1
#accept_mac_file=/etc/hostapd/hostapd.accept
#deny_mac_file=/etc/hostapd/hostapd.deny
auth_algs=1
#eapol_key_index_workaround=0
#eap_server=0
wpa=1
wpa_psk_file=/etc/hostapd/wpa_psk
wpa_passphrase=1000431170
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

When I try and connect from a Windows XP laptop I can see the AP and I can connect but nothing works no web pages show can't connect SSH or VNC ping fails checking a the /var/log/messages I have this in them
Sep 15 23:20:34 host hostapd: ath0: STA 00:0c:e5:4a:77:40 IEEE 802.11: associated
Sep 15 23:20:35 host hostapd: ath0: STA 00:0c:e5:4a:77:40 WPA: pairwise key handshake completed (WPA)
Sep 15 23:20:35 host hostapd: ath0: STA 00:0c:e5:4a:77:40 WPA: group key handshake completed (WPA)
Sep 15 23:22:07 host hostapd: ath0: STA 00:0c:e5:4a:77:40 IEEE 802.11: disassociated

the output of the route command looks like this:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth1
localnet * 255.255.255.0 U 0 0 0 ath0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 1 0 0 eth1

Even thought of problem being firewall and shut it off then added basic rules to forward traffic from ath0 to eth1 which would give me services, but that didn't work either. Would like to get this working so I can remove the linksys router all together.

I thank you for your time and efforts in advance.
 
Old 09-16-2007, 08:25 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Change this:
wpa_supplicant -dw -c /etc/wpa_supplicant.conf -Dmadwifi -i ath0

to this:
wpa_supplicant -dw -c /etc/wpa_supplicant.conf -Dwext -i ath0
 
Old 09-17-2007, 12:28 PM   #3
KrazyKanuk
Member
 
Registered: Sep 2007
Location: St. Catharines, Ontario
Distribution: Slackware 15/64 bit
Posts: 139

Original Poster
Rep: Reputation: 15
I tried that and that didn't seem to work, it may be because I noticed on the output of the wpa_supplicant line that it produces a ioctl[SIOCSIWMODE] Invalid Argument Could not configure driver to use managed mode & ioctl[SIOCSIWAP] Operation not supported. Think if I can figure out the source of the problem and get it fixed that should solve the problem.
 
  


Reply



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
Force WIFI card to use Hostap driver Fusspils Linux - Wireless Networking 3 08-26-2007 05:57 PM
WiFi Only Connects Using Shell, GUI Fails on Fiesty 7.04 / Dell 1350 WiFi Card pr0gr4mm3r Linux - Wireless Networking 1 07-10-2007 08:43 PM
[wifi][debian] Wpa_supplicant problems .. Mycado Linux - Newbie 7 10-03-2006 07:45 AM
wpa_supplicant connects correctly only when eth0 is up... else, it loses connection electrifice Linux - Wireless Networking 3 07-23-2006 01:18 AM
Wifi Connects, But No Internet lokirulez Linux - Wireless Networking 5 12-14-2005 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 09:09 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