[Fwd: madwifi-ng + hostapd]

Stijn Tintel stijn
Mon Oct 31 03:27:39 PST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -------- Original Message --------
Subject: madwifi-ng + hostapd
Date: Mon, 31 Oct 2005 03:37:10 +0100
From: Stijn Tintel <stijn at linux-ipv6.be>
Organization: Linux-IPv6.be
To: madwifi-devel at lists.sourceforge.net

Hi all


Attached to this mail you can find three patches. One for madwifi-ng
(r1227, but might apply to other revisions as well), and two for hostapd
(0.4.6).

The patch for madwifi-ng adds IEEE80211_MLME_CLEAR_STATS, which is
needed by hostapd. This code is "copy-pasted" from madwifi-old, so it's
possible that this is not the way how it should be done.

The first patch for hostapd updates the ioctl list in driver_madwifi.c
(based on madwifi-atheros-wpa_supplicant-0.3.9.diff) and renames
IEEE80211_IOCTL_GETSTASTATS to madwifi-ng's IEEE80211_IOCTL_STA_STATS.
The second patch for hostapd fixes this compile error on my Debian
unstable system:

In file included from wireless_copy.h:88,
                 from driver_madwifi.c:35:
/usr/include/net/if.h:45: error: syntax error before numeric constant
/usr/include/net/if.h:111: error: redefinition of 'struct ifmap'
/usr/include/net/if.h:126: error: redefinition of 'struct ifreq'
/usr/include/net/if.h:176: error: redefinition of 'struct ifconf'
driver_madwifi.c: In function 'madwifi_set_iface_flags':
driver_madwifi.c:271: error: 'IFF_UP' undeclared (first use in this
function)
driver_madwifi.c:271: error: (Each undeclared identifier is reported
only once
driver_madwifi.c:271: error: for each function it appears in.)

I only got this to work with hostapd-0.4.6. Version 0.4.5 compiled
without errors, but associating failed with hostapd giving this error:
"frame too short for this IEEE 802.1X packet".

Hopefully these patches are useful to somebody, at least they are for
me. I'm running madwifi-ng + hostapd with WPA2-PSK with these patches :-)


Regards
Stijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDZf+r4cVuMqX2cWMRAmmAAJ4/zIdOt5GPmsPspO02pGnt+OM7pgCgvQdh
8C95EaSwme+u+k7f5Sqdw0Q=
=PCc5
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostapd_madwifi-ng.patch
Type: text/x-patch
Size: 1662 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20051031/2e86c501/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostapd_madwifi-ng2.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20051031/2e86c501/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: madwifi-ng_hostapd.patch
Type: text/x-patch
Size: 1632 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20051031/2e86c501/attachment-0002.bin 



More information about the Hostap mailing list