compile EAP-FAST support doesn't work

Jouni Malinen jkmaline
Sat Sep 17 17:28:05 PDT 2005

On Thu, Sep 15, 2005 at 07:10:19AM -0400, biozaal at wrote:

> Ok I'm getting further along in this battle.  I'm trying to get EAP-FAST support working with my ipw2100 drivers.  I do have openssl 0.9.8 installed and patched and now when I run make I think I'm having problems with the ipw2100 drivers.  Can someone tell me which version of ieee80211 and ipw2100 work with 0.4.4?  I'm currently using Fedora Core 4 which uses a flavor of kernel 2.6.11.

> cc -MMD -O2 -Wall -g -I../driver/modules -I../utils -I../hostapd -I/usr/local/ssl/include/openssl/ -Werror -DEAPOL_TEST -DCONFIG_DRIVER_WEXT -DCONFIG_DRIVER_IPW -DEAP_FAST -DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_WIRELESS_EXTENSION -DCONFIG_CTRL_IFACE   -c -o driver_ipw.o driver_ipw.c
> cc1: warnings being treated as errors
> driver_ipw.c: In function ?wpa_driver_ipw_set_key?:
> driver_ipw.c:264: warning: pointer targets in passing argument 1 of ?__builtin_strncpy? differ in signedness

You can fix this with the patch below or by getting a new snapshot from
the Host AP CVS repository. As a workaround, you should also be able to
just remove CONFIG_EAPOL_TEST=y from .config and ignore this compiler

Index: driver_ipw.c
RCS file: /home/jm/cvsroot/hostap/wpa_supplicant/driver_ipw.c,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 driver_ipw.c
--- driver_ipw.c	17 Sep 2005 05:36:33 -0000	1.5
+++ driver_ipw.c	18 Sep 2005 00:25:24 -0000
@@ -261,7 +261,7 @@ static int wpa_driver_ipw_set_key(void *
 	param = (struct ipw_param *) buf;
 	param->cmd = IPW_CMD_SET_ENCRYPTION;
 	memset(param->sta_addr, 0xff, ETH_ALEN);
-	strncpy(param->u.crypt.alg, alg_name, IPW_CRYPT_ALG_NAME_LEN);
+	strncpy((char *) param->u.crypt.alg, alg_name, IPW_CRYPT_ALG_NAME_LEN);
 	param->u.crypt.set_tx = set_tx ? 1 : 0;
 	param->u.crypt.idx = key_idx;
 	memcpy(param->u.crypt.seq, seq, seq_len);

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list