Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112048 - madwifi in Master mode+hostapd+WPA doesn't work with windows clients
Summary: madwifi in Master mode+hostapd+WPA doesn't work with windows clients
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 00:02 UTC by Gordon Malm (RETIRED)
Modified: 2005-11-15 08:33 UTC (History)
0 users

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


Attachments
madwifi-driver-0.1_pre20050420-r1.ebuild (madwifi-driver-0.1_pre20050420-r1.ebuild,1.98 KB, text/plain)
2005-11-10 00:04 UTC, Gordon Malm (RETIRED)
Details
madwifi-driver-0.1_pre20050420-r1.ebuild.patch (madwifi-driver-0.1_pre20050420-r1.ebuild.patch,764 bytes, patch)
2005-11-10 00:06 UTC, Gordon Malm (RETIRED)
Details | Diff
madwifi-hostapd-groupkey.patch (madwifi-hostapd-groupkey.patch,6.15 KB, patch)
2005-11-10 00:06 UTC, Gordon Malm (RETIRED)
Details | Diff
hostapd-0.3.9-r1.ebuild (hostapd-0.3.9-r1.ebuild,2.13 KB, text/plain)
2005-11-10 00:08 UTC, Gordon Malm (RETIRED)
Details
hostapd-0.3.9-r1.ebuild.patch (hostapd-0.3.9-r1.ebuild.patch,620 bytes, patch)
2005-11-10 00:08 UTC, Gordon Malm (RETIRED)
Details | Diff
use-eapol-v1-winxp-compat.patch (use-eapol-v1-winxp-compat.patch,432 bytes, patch)
2005-11-10 00:10 UTC, Gordon Malm (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:02:37 UTC
The current madwifi-driver-0.1_pre20050420-r1 based on the madwifi cvs drivers dated  
20050420 does not connect properly with windows clients when used in master (AP) mode with 
hostapd and WPA.  Patches are incoming which allow windows clients to connect properly with 
WPA enabled.   
 
The patches to the madwifi-driver stop the constant EAPOL-Key timeouts when a windows client 
attempts to connect.  Windows clients can connect properly and use the wireless network 
normally. 
 
Some older versions of Windows do not like EAPOL version 2 in hostapd, so hostapd must use 
EAPOL version 1.  However, I have successfully connected a Windows XP SP2 box using EAPOL 
version 2 so maybe this is fixed in the latest Windows 2000 SP?  Either way, I have included a 
patch to hostapd to make it use EAPOL version 1 and be more compatible should you want to 
include it. 
 
Unrelated issue (I have no solution for) but I thought I'd mention it:  If you use an Atheros 
adapter supporting 108Mbps Super-G mode for your Linux-based AP and use an Atheros-based 
adapter supporting 108Mbps Super-G mode on the Windows box, they appear to connect 
properly but no data can be sent.  I noticed every time a packet is transmitted from the 
Windows box it tries to send at 108Mbps (regardless of the rate set on the Linux-based AP) 
which is not supported by the Linux madwifi driver.  The solution so far has been to use a 
non-Super G mode (54Mbps only) wireless adapter in the client machine. 
 
I apologize if my bug report is not sufficient.  I am not very experienced in reporting bugs.  
Please let me know if I can be of further help. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:04:19 UTC
Created attachment 72554 [details]
madwifi-driver-0.1_pre20050420-r1.ebuild
Comment 2 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:05:21 UTC
Comment on attachment 72554 [details]
madwifi-driver-0.1_pre20050420-r1.ebuild

New madwifi-driver ebuild in full, just needs -r2 bump
Comment 3 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:06:13 UTC
Created attachment 72555 [details, diff]
madwifi-driver-0.1_pre20050420-r1.ebuild.patch

Patch to existing ebuild
Comment 4 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:06:57 UTC
Created attachment 72556 [details, diff]
madwifi-hostapd-groupkey.patch

actual patch to madwifi-driver
Comment 5 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:08:09 UTC
Created attachment 72557 [details]
hostapd-0.3.9-r1.ebuild

New hostapd ebuild in full, just needs -r2 bump
Comment 6 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:08:42 UTC
Created attachment 72558 [details, diff]
hostapd-0.3.9-r1.ebuild.patch

Patch to existing ebuild
Comment 7 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:10:45 UTC
Created attachment 72559 [details, diff]
use-eapol-v1-winxp-compat.patch
Comment 8 Gordon Malm (RETIRED) gentoo-dev 2005-11-10 00:15:07 UTC
(In reply to comment #7) 
> Created an attachment (id=72559) [edit] 
> use-eapol-v1-winxp-compat.patch 
>  
 
sorry for the lame naming of this patch. 
Comment 9 Henrik Brix Andersen 2005-11-15 04:03:55 UTC
Please submit these patches upstream.

When a new release is available, it will appear in Gentoo Portage.
Comment 10 Gordon Malm (RETIRED) gentoo-dev 2005-11-15 08:33:43 UTC
(In reply to comment #9) 
> Please submit these patches upstream. 
>  
> When a new release is available, it will appear in Gentoo Portage. 
 
I don't think they are interested in patches on old 2005-04-20 drivers.  All the latest 
drivers seem to be broken.  I am happy to just have an improvement on the existing 
driver.  So I'll stick with my overlays. 
 
With these patches I've got one pci madwifi doing hostapd wpa-psk and two clients 
both connecting successfully using 802.11g+WPA-PSK.  One Windows XP workstation 
and one gentoo laptop (airlink madwifi pcmcia card).  Without these patches, it doesn't 
work and all the latest drivers don't work at all.