[PATCH] hostapd: fix multi-BSS code

Johannes Berg johannes at sipsolutions.net
Tue Nov 27 15:38:27 EST 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