ath9k-git and hostap fail to cooperate
Hello all!
I'm new to this list but I have been working with hostapd-madwifi-ath9k-wpa_supplicant for a while. I have a quite recent version of the git tree linux-2.6 and wireless-testing (both of them are
from 21-Oct-2008).
The task is to make hostapd-0.6.4 work.
Hostapd was compiled with these settings:
--------------------------------
# Driver interface for Host AP driverCONFIG_DRIVER_HOSTAP=y
# Driver interface for wired authenticator
#CONFIG_DRIVER_WIRED=y
# Driver interface for drivers using the nl80211 kernel interface CONFIG_DRIVER_NL80211=y
# IEEE 802.11F/IAPPCONFIG_IAPP=y
# WPA2/IEEE 802.11i RSN pre-authenticationCONFIG_RSN_PREAUTH=y
# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) CONFIG_PEERKEY=y
# Integrated EAP serverCONFIG_EAP=y
# EAP-MD5 for the integrated EAP serverCONFIG_EAP_MD5=y
# EAP-TLS for the integrated EAP serverCONFIG_EAP_TLS=y
# EAP-MSCHAPv2 for the integrated EAP serverCONFIG_EAP_MSCHAPV2=y
# EAP-PEAP for the integrated EAP serverCONFIG_EAP_PEAP=y
# EAP-GTC for the integrated EAP serverCONFIG_EAP_GTC=y
# EAP-TTLS for the integrated EAP serverCONFIG_EAP_TTLS=y
# PKCS#12 (PFX) support (used to read private key and certificate file from
# a file that usually has extension .p12 or .pfx) CONFIG_PKCS12=y
------------------------------
After kernel bootup:
# modprobe ath9k
ath9k: 0.1
PCI: enabling device 0000:00:02.0 (0140 -> 0142)
Registered led device: ath9k-phy0:radio
Registered led device: ath9k-phy0:assoc
Registered led device: ath9k-phy0:tx
Registered led device: ath9k-phy0:rx
phy0: Atheros 9160: mem=0xc49a0000, irq=27
# iw phy phy0 info
...
Supported interface modes:
* IBSS
* Station
* AP
* AP(VLAN)
* Monitor
...So I would assume AP mode is about to work...
Here are the contents of hostapd.conf:
interface=wlan0
driver=nl80211
hw_mode=g
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
ctrl_interface_group=0
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
dump_file=/tmp/hostapd.dump
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
ssid=uwc_ap wpa_psk=e757da617495f77f0a5b017c1d62eca6596adc36ab0955c5f6be7554b7a305d3
# hostapd -dd -B /tmp/dyncfg/hostapd.conf
Configuration file: /tmp/dyncfg/hostapd.conf
Line 8: DEPRECATED: 'debug' configuration variable is not used anymore ctrl_interface_group=0
Failed to set interface wlan0 to master mode.
nl80211 driver initialization failed.
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations
ELOOP: remaining socket: sock=5 eloop_data=0x5d0c0 user_data=(nil) handler=0x34940
By the way, this also fails (more exactly, pops the help screen, maybe the invocation format is wrong):
# iw phy phy0 interface add ath0 type ap
What am I doing wrong? Does hostap with this git kernel work for you? Does AP mode work at all in current git tree? (I've seen some posts about reporting hostapd and ath9k work together, but always with some kind of problem)
Thank you in advance!
Signature · 11 lines
Tamas Selmeci R&D Engineer DENSION Audio Systems Ltd. H-1116 Budapest, Sztregova u. 1. HUNGARY Tel: +36-1-463-0470 Fax: +36-1-463-0479 www.dension.com mailto: tselmeci at dension.com
Quoted 9 lines · Tamas Selmeci
Hello all!
I'm new to this list but I have been working with hostapd-madwifi-ath9k-wpa_supplicant for a while. I have a quite recent version of the git tree linux-2.6 and wireless-testing (both of them are
from 21-Oct-2008).The task is to make hostapd-0.6.4 work.
You need this patch to make AP mode work:
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/004-allow-ap-vlan-modes.patch
Sujith
Signature · 1 line
http://sujith-m.blogspot.com
Actually this does hang the kernel.
I have tested it with wireless-testing 10-10-2008. After starting hostapd the ath9k shows up in AP-mode.
After exiting the system completly freezes and only can be powered down.
I have used hostapd 0.6.4 and ran it from commandline
Quoted 1 line
hostapd -dd
/etc/hostapd/hostapd.conf
No entry in log or on screen (kernel-panic).
Why is the patch to make AP mode work still needed? When does it become part of the kernel-tree or wireless-testing?
Is AP not mature enough?
greetings,
Willem
Quoted 28 lines
Quoted 9 lines · Tamas Selmeci
Hello all!
I'm new to this list but I have been working with hostapd-madwifi-ath9k-wpa_supplicant for a while. I have a quite recent version of the git tree linux-2.6 and wireless-testing (both of them are
from 21-Oct-2008).The task is to make hostapd-0.6.4 work.
You need this patch to make AP mode work:
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/004-allow-ap-vlan-modes.patchSujith
--
http://sujith-m.blogspot.com
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Hi all!
Quoted 8 lines · Sujith
Quoted 7 lines · Tamas Selmeci
Hello all!
I'm new to this list but I have been working with hostapd-madwifi-ath9k-wpa_supplicant for a while. I have a quite recent version of the git tree linux-2.6 and wireless-testing (both of them are
from 21-Oct-2008).
Quoted 5 lines
Quoted 2 lines
The task is to make hostapd-0.6.4 work.
You need this patch to make AP mode work:
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/004-allow-ap-vlan-modes.patch
Thanks for the link.
Now I'm running linux-2.6.28-rc2, which is the latest from the rc-series. The Station mode, which used to work, is now not working, at least on my Intel Xscale IXP425-based ARM big-endian developer board. After applying the patch, iw-0.9.6 (the latest at this time) is capable of creating an interface running in AP mode, and hostapd doesn't comlain, but in fact, I'm unable to find any network with my laptop - and the network interface of the laptop is perfect, since I used to see the AP network with Madwifi driver, and other surrounding wireless networks...
Is anybody here who has also experienced this with rc2? (git version from the last week supported station mode at least)
Thanks
Bye
Signature · 11 lines
Tamas Selmeci R&D Engineer DENSION Audio Systems Ltd. H-1116 Budapest, Sztregova u. 1. HUNGARY Tel: +36-1-463-0470 Fax: +36-1-463-0479 www.dension.com mailto: tselmeci at dension.com
Quoted 10 lines · Tamas Selmeci
Now I'm running linux-2.6.28-rc2, which is the latest from the rc-series. The Station mode, which used to work, is now not working, at least on my Intel Xscale IXP425-based ARM big-endian developer board. After applying the patch, iw-0.9.6 (the latest at this time) is capable of creating an interface running in AP mode, and hostapd doesn't comlain, but in fact, I'm unable to find any network with my laptop - and the network interface of the laptop is perfect, since I used to see the AP network with Madwifi driver, and other surrounding wireless networks...
Quoted 2 lines
Is anybody here who has also experienced this with rc2? (git version from the last week supported station mode at least)
You might want to check if you are using the proper regulatory domain. Check http://wireless.kernel.org/en/users/Documentation/iw.
Sujith