How to compile hostapd-0.4.6 and wpa_supplicant-0.4.6 for madwifi-ng (1314)
jkmaline at cc.hut.fi
Wed Nov 9 23:31:22 EST 2005
On Wed, Nov 09, 2005 at 12:14:22PM -0300, Beat Meier wrote:
> >I don't know what you are refering to with "new version", but the latest
> >release, i.e., WE-19, does include linux/types.h, linux/socket.h, and
> Release 28-pre10 does not include this anymore. Here the codefragment:
> /* Do not put any header in this file, this creates a mess when
> * exported to user space. Most users have included all the
> * relevant headers anyway... Jean II */
> /*#include <linux/types.h>*/ /* for "caddr_t" et al */
> /*#include <linux/socket.h>*/ /* for "struct sockaddr" et al */
> /*#include <linux/if.h>*/ /* for IFNAMSIZ and co... */
I believe this change was rejected already once (maybe when WE-19 was
submitted on netdev list) since it broke lots of drivers. I haven't
looked whether those drivers have been modified to allow this kind of
change in linux/wireless.h. Anyway, I'm not going to replace
wireless_copy.h anytime soon in hostapd/wpa_supplicant.
> >No, the license of iwlib is not compatible with hostapd/wpa_supplicant.
> Sorry. What do you mean with that?
> hostapd/wpa_supplicant is dual license GPL version 2 and BSD,
> iwlib.h is realeased unter GPL license.
> Is this a problem because not BSD license or what do you mean?
Yes. I cannot use any GPL-only libraries in hostapd/wpa_supplicant as a
required core component (and if someone wants to be pedantic, I know
that GNU Readline is GPL-only, but that is an optional library for
wpa_cli). In other words, hostapd/wpa_supplicant must be available in a
form that can be used with BSD license.
> sample_pm.c in wireless_tools is realease under LGPL, MPL or BSD license.
> If this is a problem we could see with Jean or did you do that already
> some time ago?
Personally, I don't see any problem here since I do not have any plans
on starting to use iwlib now. I have not discussed this topic in more
details apart from mentioning that I cannot use that library due to
> Ok this seems to be the problem. I do not know the bsd license but would
> it help if Jean would change the
> license to dual license of gpl and bsd of only the header file?
If the library part (libiw.so) is not needed for this particular use,
that would resolve the license compatibility issue, but like I
mentioned above, I'm not planning on change hostapd/wpa_supplicant on
this area at least at the moment. This kind of change could be helpful
for other programs, but I do not want to be trying to force people to
use any specific license.
> I have no compile both with you wireless_copy.h and my madwifi patches
> NOT iwlib patches and
> my madwifi patches.
> With this I was able to compile wpa_supplicant and hostapd.
> With new version of wireless.h of Release 28-pre10 copyied to
> wireless_copy.h I was not able to compile.
Thanks for reporting this. I'll try to update both hostapd and
wpa_supplicant later this week so that they can be used both with
madwifi-old and madwifi-ng.
> Not much. An include file more or so as sent already but the fact is to
> have a version which people can use
> to compile the whole stuff without applying here a patch there a patch ...
> I send here all patches for madwifi-ng and wpa_supplicant-0.4.6 and
> hostapd-0.4.6 together.
> With this patches it is possible to compile a working
> wpa_supplicant/hostapd for madwifi-ng release 1314.
Jouni Malinen PGP id EFC895FA
More information about the HostAP