[PATCH] hostapd: fix multi-BSS code

Johannes Berg johannes
Tue Nov 27 12:38:27 PST 2007


The multi-BSS code has no chance of working, it insists on passing a
NULL priv pointer to the drivers. This patch fixes it.

Signed-off-by: Johannes Berg <johannes at sipsolutions.net>
---
 hostapd/hostapd.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- hostap.orig/hostapd/hostapd.c	2007-11-27 21:35:26.000000000 +0100
+++ hostap/hostapd/hostapd.c	2007-11-27 21:36:16.000000000 +0100
@@ -1480,8 +1480,10 @@ static int setup_interface1(struct hosta
 		hapd->driver = NULL;
 		return -1;
 	}
-	for (i = 0; i < iface->num_bss; i++)
+	for (i = 0; i < iface->num_bss; i++) {
 		iface->bss[i]->driver = hapd->driver;
+		iface->bss[i]->drv_priv = hapd->drv_priv;
+	}
 
 	if (hostapd_validate_bssid_configuration(iface))
 		return -1;






More information about the Hostap mailing list