Fedora Linux Support Community & Resources Center
  #1  
Old 25th November 2011, 10:08 PM
jld Offline
Registered User
 
Join Date: Jul 2005
Posts: 1
windows_7chrome
Connection timeout using hostapd to setup wifi access point

I am having trouble using hostapd to setup an AP.
I am using Fedora 16, but had the same issues with Fedora 15...

$ uname -a
Linux foo.bar.net 3.1.1-2.fc16.i686 #1 SMP Mon Nov 14 16:16:34 UTC 2011 i686 i686 i386 GNU/Linux

Wifi is based on a Realtek rtl8192se chip

Kernel modules in use:
$ lsmod|grep 80211
mac80211 215740 2 rtl8192se,rtlwifi
cfg80211 129051 2 rtlwifi,mac80211
rfkill 12939 2 bluetooth,cfg80211

$ hostapd -v
hostapd v0.7.3
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2010, Jouni Malinen <j@w1.fi> and contributors

$ cat /etc/hostapd/hostapd.minimal.conf
interface=wlan0
driver=nl80211
ssid=test
channel=1

$ sudo hostapd -dd /etc/hostapd/hostapd.minimal.conf
Configuration file: /etc/hostapd/hostapd.minimal.conf
nl80211: Add own interface ifindex 4
nl80211: New interface mon.wlan0 created: ifindex=8
nl80211: Add own interface ifindex 8
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x0
RATE[3] rate=110 flags=0x0
Completing interface initialization
Mode: IEEE 802.11b Channel: 1 Frequency: 2412 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr e0:b9:a5:72:9c:58 and ssid 'test'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5

RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5

At this point I have a wlan0 interface in master mode:

$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr E0:B9:A5:72:9C:58
inet addr:192.168.112.1 Bcast:192.168.112.255 Mask:255.255.255.0
inet6 addr: fe80::e2b9:a5ff:fe72:9c58/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:21439 (20.9 KiB)

$ iwconfig wlan0
wlan0 IEEE 802.11bgn Mode:Master Frequency:2.412 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr=2347 B Fragment thr:off
Power Management:on

$ route | grep -i wlan0
192.168.112.0 * 255.255.255.0 U 0 0 0 wlan0

$ cat /etc/dnsmasq.conf
domain-needed
bogus-priv
interface=wlan0
domain=example.com
dhcp-range=wlan0,192.168.112.150,192.168.112.199,255.25 5.255.0,1440m
stop-dns-rebind
local-ttl=300

$ sudo dnsmasq -d -s example.com
dnsmasq: started, version 2.58 cachesize 150
dnsmasq: compile time options: IPv6 GNU-getopt DBus no-i18n DHCP TFTP no-conntrack no-IDN
dnsmasq-dhcp: DHCP, IP range 192.168.112.150 -- 192.168.112.199, lease time 1d
dnsmasq: reading /etc/resolv.conf
dnsmasq: using nameserver 192.168.222.1#53
dnsmasq: read /etc/hosts - 7 addresses

When trying to connect with my laptop, hostapd prints the following:

unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for broadcast SSID
mgmt::auth
authentication: STA=00:1e:c2:bb:c0:42 auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan0: STA 00:1e:c2:bb:c0:42 IEEE 802.11: authentication OK (open system)
wlan0: STA 00:1e:c2:bb:c0:42 MLME: MLME-AUTHENTICATE.indication(00:1e:c2:bb:c0:42, OPEN_SYSTEM)
wlan0: STA 00:1e:c2:bb:c0:42 MLME: MLME-DELETEKEYS.request(00:1e:c2:bb:c0:42)

authentication reply: STA=00:1e:c2:bb:c0:42 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for our SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for our SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for our SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for our SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 00:1e:c2:bb:c0:42 sent probe request for our SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 7c:c5:37:88:e8:e4 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 7c:c5:37:88:e8:e4 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 7c:c5:37:88:e8:e4 sent probe request for broadcast SSID
unknown vendor specific information element ignored (vendor OUI 00:10:18 len=9)
STA 7c:c5:37:88:e8:e4 sent probe request for broadcast SSID

There was authentication packets exchanged, but no association packets.
wireshark on wlan0.mon confirms this.

I am not using a bridge, but rather forwarding packets with iptables.
iptables rejected no packets during this exchanged and dnsmasq was never contacted.

Any suggestions? I would have expected association packets being
exchanged between hostapd and the client after authentication but none
ever come. I have attempted this with multiple devices running
different OSes with the same results: connection timeout.

JL
Reply With Quote
Reply

Tags
dnsmasq, hostapd, timeout, wifi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access point setup ?? g8jvm Servers & Networking 0 25th September 2010 01:29 PM
Fedora 9, Broadcom wireless, visible access point, no connection Chorltoon Servers & Networking 28 24th August 2008 11:08 AM
Any program to setup laptop as access point ?? wahaha Servers & Networking 0 10th March 2007 06:53 AM
Help !!! Wifi SWLC 54108 card doesn't see the Access Point trxrse Servers & Networking 0 14th December 2005 02:29 PM


Current GMT-time: 05:08 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Tralee Travel Photos - Takanosu - Peje Travel Photos on Instagram