LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   hostapd problem (http://www.linuxquestions.org/questions/linux-networking-3/hostapd-problem-734540/)

simonmcquire 06-21-2009 07:24 AM

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.


All times are GMT -5. The time now is 07:14 AM.