LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 06-21-2009, 07:24 AM   #1
simonmcquire
LQ Newbie
 
Registered: Jun 2009
Posts: 1

Rep: Reputation: 0
hostapd problem


Just wondering if anyone had experienced a similar problem/knows what is going on here.

I'm running Debian Lenny but with a custom kernel (2.6.30), latest wireless code etc. The box is running as a wireless AP with WPA2 encryption.

The problem is, when I try to connect via Windows XP, Windows tells me I am connected to the network, but I am unable to send any packets (ping the other machine etc).

This only happens when hostapd is run in daemon mode (e.g. I run hostapd -B /etc/hostapd/hostapd.conf.

Now the weird thing is, if i run it without daemonizing it, e.g. hostapd -dd /etc/hostapd/hostapd.conf, I can connect and receive packets fine from Windows XP.

Anyone got any ideas? Network module is p54pci, lspci -vv:

00:0a.0 Network controller: Intersil Corporation ISL3890 [Prism GT/Prism Duette]/ISL3886 [Prism Javelin/Prism Xbow] (rev 01)
Subsystem: Tekram Technology Co.,Ltd. ALLNET ALL0271 Wireless PCI Adapter
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx+
Latency: 32 (2500ns min, 7000ns max), Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 16
Region 0: Memory at eb800000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: p54pci
Kernel modules: p54pci


hostapd.conf:

driver=nl80211
interface=wlan0
hw_mode=g
channel=11
ssid=MySSID
wpa_psk_file=/etc/hostapd/wpa_psk
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

Also, I'm running dnsmasq on the Debian box, and when I run hostapd in daemon mode, the output is as follows:

Jun 21 13:02:52 debianbox dnsmasq[4130]: DHCPDISCOVER(wlan0) xx:xx:xx:xx:xx:xx
Jun 21 13:02:52 debianbox dnsmasq[4130]: DHCPOFFER(wlan0) 0.0.0.0 xx:xx:xx:xx:xx:xx
Jun 21 13:02:57 debianbox dnsmasq[4130]: DHCPDISCOVER(wlan0) xx:xx:xx:xx:xx:xx
Jun 21 13:02:57 debianbox dnsmasq[4130]: DHCPOFFER(wlan0) 0.0.0.0 xx:xx:xx:xx:xx:xx
Jun 21 13:03:04 debianbox dnsmasq[4130]: DHCPDISCOVER(wlan0) xx:xx:xx:xx:xx:xx
Jun 21 13:03:04 debianbox dnsmasq[4130]: DHCPOFFER(wlan0) 0.0.0.0 xx:xx:xx:xx:xx:xx
Jun 21 13:03:21 debianbox dnsmasq[4130]: DHCPDISCOVER(wlan0) xx:xx:xx:xx:xx:xx
Jun 21 13:03:21 debianbox dnsmasq[4130]: DHCPOFFER(wlan0) 0.0.0.0 xx:xx:xx:xx:xx:xx

(ips and macs changed). Which is as if the Windows XP machine can't send the DHCPREQUEST.

When hostapd isn't run as a daemon, it gets the DHCPREQUEST and everything is fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hostapd problem with wpa mousi Linux - Wireless Networking 1 05-12-2010 10:56 AM
Hostapd problem with b43 (nl80211) Janhouse Linux - Networking 0 06-01-2009 04:53 AM
Start wpa_supplicant before hostapd daghenningsorbo Linux - Networking 1 03-13-2009 06:49 PM
ebtables interaction hostapd boeboe2005 Linux - Networking 0 11-17-2008 04:02 AM
hostapd and madwifi not working freelancer42 Linux - Wireless Networking 0 09-08-2006 09:09 AM


All times are GMT -5. The time now is 02:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration