Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260377 - net-wireless/hostapd-0.6.{78} doesn't work with madwifi-ng
Summary: net-wireless/hostapd-0.6.{78} doesn't work with madwifi-ng
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 13:02 UTC by Gustavo Zacarias
Modified: 2009-02-26 22:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,3.05 KB, text/plain)
2009-02-26 13:02 UTC, Gustavo Zacarias
Details
hostapd.conf with (obviously) modified ssid/psk (hostapd.conf,28.22 KB, text/plain)
2009-02-26 13:03 UTC, Gustavo Zacarias
Details
hostapd-0.6.8 -dd log output w/2.6.28-gentoo-r2 (hostapd.log,2.49 KB, text/plain)
2009-02-26 15:15 UTC, Gustavo Zacarias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo Zacarias 2009-02-26 13:02:16 UTC
hostapd version 0.6.7 and 0.6.8 fail to work with madwifi-ng-0.9.4 in wpa/wpa2 mode, giving the following message a couple of times on hostapd startup:
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument

If you google around this ioctl failure is reported upstream for wpa_supplicant and madwifi-ng in several cases (didn't try wpa_supplicant since i'm using these boards for master mode).
Comment 1 Gustavo Zacarias 2009-02-26 13:02:33 UTC
Created attachment 183250 [details]
emerge --info
Comment 2 Gustavo Zacarias 2009-02-26 13:03:05 UTC
Created attachment 183252 [details]
hostapd.conf with (obviously) modified ssid/psk
Comment 3 Gustavo Zacarias 2009-02-26 13:09:46 UTC
Versions are all stable:

net-wireless/madwifi-ng-0.9.4
sys-kernel/linux-headers-2.6.27-r2

net-wireless/hostapd-0.5.10 works just fine in two different machines with everything stable.

ath_pci is set to autocreate=ap also.
Comment 4 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2009-02-26 13:24:39 UTC
Is there a chance that you can give it a try with gentoo-sources-2.6.28-r2 (~x86 keyworded) and see if that helps?
Comment 5 Gustavo Zacarias 2009-02-26 13:25:22 UTC
Yes, i can give it a spin in a couple of hours and i'll report back here then.
Comment 6 Gustavo Zacarias 2009-02-26 15:15:49 UTC
Created attachment 183271 [details]
hostapd-0.6.8 -dd log output w/2.6.28-gentoo-r2

hostapd-0.6.8 + gentoo-sources-2.6.28-r2 seems to work even though it still spits the error (though the service starts correctly other than noisy).
If i use wpa=1 (WPA only) it works fine, using wpa=2 or wpa=3 (WPA2 only or WPA+WPA2) it fails, but this failed on 0.5.10 too so it's not a regression (probably some bad madwifi-ng mojo in master mode).
Comment 7 Gustavo Zacarias 2009-02-26 15:30:02 UTC
Ok found the problem wrt to WPA2.
See http://lists.shmoo.com/pipermail/hostap/2007-July/016011.html
Solution: add einfo in the hostap ebuild for madwifi users to disable wme (comment out wme_enabled=1 or set it to 0, default in shipped config is enabled) or conditionally do so on USE=madwifi (i wouldn't recommend this).
Tested clients: linux-arm w/zd1211rw and osx-ppc with builtin (b43).
Comment 8 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2009-02-26 22:13:33 UTC
I've added a warning regarding madwifi and wme_enabled to the postinfo of the ebuild.

I'm closing this bug, since it is fixed.