Hostapd 0.7.2 sanity check required... Please.

At the risk of incurring the wroth of you experts by not succinctly describing my problem. But, in the first instance I’d like to make contact with someone who wouldn’t mind taking the time to walk with me, through the multiple areas that COULD be causing me to have problems with my Access Point problems?

Those problems are basically: that I don’t know what I’m doing. In a new environment that I don’t understand! However, I’m sure that if someone would take the time to check my work, I’ll get it working eventually. Some of you, who have long memories, may recollect that I started this project some 18 month ago and I’m still going!

As an introductory summery, the base system is 11.2 with an Atheros AR5008. To this, I have downloaded and over time compiled Hostapd v0.9.9, 0.9.10 and finally 0.7.2. Version 0.9.10 did not stay very long. The documented “DTIM” error caused me to alternate between the stable 0.9.9 and the development 0.7.2. Both allow me to connect various (SuSE/Windows/Wii) clients. However, they won’t stay connected for very long.

I suspect that before I can start throwing log and .config files about, I need to confirm that all the installation steps have been completed correctly? To this end, I see the need to verify:

1)the MAKE .config file
Supermicro:# cat .config | grep -v “^#” | grep -v “^$”
CONFIG_DRIVER_NL80211=y
CONFIG_IAPP=y
CONFIG_RSN_PREAUTH=y
CONFIG_PEERKEY=y
CONFIG_EAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_TLS=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_GTC=y
CONFIG_EAP_TTLS=y
CONFIG_PKCS12=y
CONFIG_IPV6=y
Supermicro:#

2)the hostapd.conf
Supermicro:# cat hostapd.conf | grep -v “^#” | grep -v “^$”
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=myTestAP
country_code=UK
hw_mode=g
channel=11
beacon_int=100
dtim_period=2
max_num_sta=32
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=192.168.1.2
wpa=3
wpa_passphrase=1234567890
Supermicro:/usr/local/bin #

3)all prerequisites are installed
What should I be lloking for here? nl80211?

Best regards, and looking forward to sorting it…
Martin

Why not install hostapd from the repos?
Software.openSUSE.org

I suggest you try that first.

Thank you Knurpht,

Yes, that is a good idea. It removes the uncertainty over the compilation and the settings in the MAKE .conf file.

However, I have a problem with this approach:
I got badly burnt at the start of this project when Akoellh took his toys away. The advice from “oldcpu” (27-Oct-2009, 09:12), was to get and work from the source. One is then freed of the reliance on others.

I would still like comments on areas 2) & 3) if anyone has time.

In addition, this is a snippet of a disconnecting session. Anyone suggest why?

May 20 13:52:52 supermicro hostapd: wlan0: WPA rekeying GTK                                                                                 
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: EAPOL-Key timeout                                                     
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: EAPOL-Key timeout                                                     
May 20 13:52:52 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:53 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: EAPOL-Key timeout                                                     
May 20 13:52:53 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:53 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: EAPOL-Key timeout                                                     
May 20 13:52:53 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:54 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: EAPOL-Key timeout                                                     
May 20 13:52:54 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:54 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: EAPOL-Key timeout                                                     
May 20 13:52:54 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: sending 1/2 msg of Group Key Handshake                                
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 WPA: EAPOL-Key timeout                                                     
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 IEEE 802.1X: unauthorizing port                                            
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:0c:f1:2a:80:a6 IEEE 802.11: deauthenticated due to local deauth request                   
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 WPA: EAPOL-Key timeout                                                   
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 IEEE 802.1X: unauthorizing port                                            
May 20 13:52:55 supermicro hostapd: wlan0: STA 00:1b:ea:d3:56:47 IEEE 802.11: deauthenticated due to local deauth request

Best regards, Martin

You certainly don´t mean 0.9.X but 0.6.X.

Why all that jumping through version?

For that bug, a patch is there and easily available.

hostap.epitest.fi Git - hostap-06.git/commit

Even “older” versions could be downloaded, if they work better for you, so I don´t reall understand, what this is all about.

Index of /releases

Yep. You’r right. Sorry!

Why all that jumping through version?

A natural consequence of ignorance! In the absence of informed direction, what other action is there?

For that bug, a patch is there and easily available.
hostap.epitest.fi Git - hostap-06.git/commit

“easily” is a relative term. And, at the time, while searching for a solution, the only advice I could find was to revert to 0.6.9.

… so I don´t reall understand, what this is all about.

Maybe it was a long time since you were at the bottom of the learning curve?

So, is your advice to install hostapd 0.6.10 + the DTIM fix? Does compat-wireless have role to play here? I see (wireless.kernel.org)](http://wireless.kernel.org/en/users/Drivers/ath9k) that I should be using the latest ath9k driver. How does this relate to the version shipped with 11.2?

Regards, Martin

Well, you will see a pattern coming up here, you are working with code in rapid development, so no surprises there.

If it helps to revert to an older version, why not?

Do you want to always have the latest version or one that works for you?

What´s the relvance of this remark?

On the other hand, if still at the bottom of that curve, then why change a running system if there was no real need in doing so?

And even if so, then why not just revert back to what worked before?

I don´t see any “high level geek wisdom” needed to get to this conclusion.

Give it a try, the worst thing that can happen, it won´t work (another “high level geek wisdom”, isn´t it?)

Maybe, but again, latest code can have latest improvements and also latest bugs, you cannot expect to get a “yes or no” answer to that question, as this code changes rapidly every day.

See above, the only thing one can definitely say about the compat-wireless code compared to 11.2 is “it will be newer”.

BTW:

Well, for such OSS-packages, every project also offers you the src.rpms to have some “prepared source code” as a fallback or “starting material” for your own modifications.

Read “man rpmbuild” and search for tutorials on building RPMs on the net (there are lots of it, I got my “high level geek wisdom” of how to build RPMs from the exact same source when I was at the “bottom of my learning curve” some time ago).