summaryrefslogtreecommitdiffstats
path: root/contrib/hostapd/driver.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-03-24 21:20:35 +0000
committersam <sam@FreeBSD.org>2008-03-24 21:20:35 +0000
commit85fae4fa18218c120b4f4f15158727e70f51c232 (patch)
tree13281caff063c0d1f469c224561344959379be5f /contrib/hostapd/driver.h
parent66e67b92fee232a5ee45d03750cad85026828945 (diff)
downloadFreeBSD-src-85fae4fa18218c120b4f4f15158727e70f51c232.zip
FreeBSD-src-85fae4fa18218c120b4f4f15158727e70f51c232.tar.gz
add support for driver-based RADIUS ACL's (committed on vendor branch as it's
been sent upstream) Submitted by: Chris Zimmermann
Diffstat (limited to 'contrib/hostapd/driver.h')
-rw-r--r--contrib/hostapd/driver.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/hostapd/driver.h b/contrib/hostapd/driver.h
index 4fd262c..aeefbea 100644
--- a/contrib/hostapd/driver.h
+++ b/contrib/hostapd/driver.h
@@ -141,6 +141,10 @@ struct driver_ops {
* this handler will be called after initial setup has been completed.
*/
int (*commit)(void *priv);
+
+ int (*set_radius_acl_auth)(void *priv, const u8 *mac, int accepted,
+ u32 session_timeout);
+ int (*set_radius_acl_expire)(void *priv, const u8 *mac);
};
static inline int
@@ -653,4 +657,22 @@ hostapd_driver_commit(struct hostapd_data *hapd)
return hapd->driver->commit(hapd->driver);
}
+static inline int
+hostapd_set_radius_acl_auth(struct hostapd_data *hapd, const u8 *mac, int accepted,
+ u32 session_timeout)
+{
+ if (hapd->driver == NULL || hapd->driver->set_radius_acl_auth == NULL)
+ return 0;
+ return hapd->driver->set_radius_acl_auth(hapd->driver, mac, accepted,
+ session_timeout);
+}
+
+static inline int
+hostapd_set_radius_acl_expire(struct hostapd_data *hapd, const u8 *mac)
+{
+ if (hapd->driver == NULL || hapd->driver->set_radius_acl_expire == NULL)
+ return 0;
+ return hapd->driver->set_radius_acl_expire(hapd->driver, mac);
+}
+
#endif /* DRIVER_H */
OpenPOWER on IntegriCloud