Recent changes in CVS break hostapd support

Pavel Roskin proski
Fri Nov 15 19:41:56 PST 2002


The CVS version of HostAP doesn't compile with PRISM2_HOSTAPD option:

In file included from driver/modules/hostap.c:84:
driver/modules/hostap_ap.c: In function `prism2_ap_proc_read':
driver/modules/hostap_ap.c:613: structure has no member named `u'
driver/modules/hostap_ap.c:615: structure has no member named `u'
driver/modules/hostap_ap.c:616: structure has no member named `u'
driver/modules/hostap_ap.c:617: structure has no member named `u'
driver/modules/hostap_ap.c:619: structure has no member named `u'

Indeed, if PRISM2_HOSTAPD is defined, struct sta_info doesn't have that
field.  Perhaps there should be a separate implementation of
prism2_ap_proc_read() for hostapd.

I don't really care about /proc, so I just commented it out.  The
following patch fixes compile problems, but it's not meant to be applied
to CVS, of course.

--- driver/modules/hostap_ap.c
+++ driver/modules/hostap_ap.c
@@ -590,6 +590,7 @@ static void ap_control_kickall(struct ap
 static int prism2_ap_proc_read(char *page, char **start, off_t off,
 			       int count, int *eof, void *data)
 	char *p = page;
 	struct ap_data *ap = (struct ap_data *) data;
 	unsigned long flags;
@@ -641,6 +642,9 @@ static int prism2_ap_proc_read(char *pag
 	*start = page + off;
 	return (p - page - off);
+	return 0;

Pavel Roskin

More information about the Hostap mailing list