aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-03-22 14:03:46 (GMT)
committerJouni Malinen <j@w1.fi>2009-03-22 14:03:46 (GMT)
commitda0a6f6efb47b857a8bfb7215cb407dff4bab16f (patch)
tree9b6672136d98c855e565c8d6b5017e7b3164cc07
parent20e8859b327367821d26c8508a3b029e12755df4 (diff)
downloadhostap-06-da0a6f6efb47b857a8bfb7215cb407dff4bab16f.zip
hostap-06-da0a6f6efb47b857a8bfb7215cb407dff4bab16f.tar.gz
hostap-06-da0a6f6efb47b857a8bfb7215cb407dff4bab16f.tar.bz2
driver_prism54: Fix segmentation fault on initialization
This was fixed in development branch as part of bfddd95c9ed6c4398c5c2befe283acf67175104d but since that commit has not been merged into 0.6.x, the fix was missed. [Bug 299]
-rw-r--r--hostapd/ChangeLog1
-rw-r--r--hostapd/driver_prism54.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/hostapd/ChangeLog b/hostapd/ChangeLog
index 290b81f..c6610ac 100644
--- a/hostapd/ChangeLog
+++ b/hostapd/ChangeLog
@@ -5,6 +5,7 @@ ChangeLog for hostapd
reported correctly; TX/RX packets not yet available from kernel)
* fixed EAPOL/EAP reauthentication when using an external RADIUS
authentication server
+ * driver_prism54: fixed segmentation fault on initialization
2009-02-15 - v0.6.8
* increased hostapd_cli ping interval to 5 seconds and made this
diff --git a/hostapd/driver_prism54.c b/hostapd/driver_prism54.c
index 76bfcd2..4e2189a 100644
--- a/hostapd/driver_prism54.c
+++ b/hostapd/driver_prism54.c
@@ -1052,7 +1052,7 @@ static void * prism54_driver_init(struct hostapd_data *hapd)
}
prism54_init_1x(drv);
/* must clean previous elems */
- hostapd_set_generic_elem(hapd, NULL, 0);
+ prism54_set_generic_elem(drv->iface, drv, NULL, 0);
return drv;
}