aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/hostapd/driver.h
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2008-03-24 21:20:35 +0000
committerSam Leffler <sam@FreeBSD.org>2008-03-24 21:20:35 +0000
commitbdc431a06bbc06b243d6960a3cff50fc953dd420 (patch)
tree13281caff063c0d1f469c224561344959379be5f /contrib/hostapd/driver.h
parent6ff97d4b9c8eb4cbb0bc35fbb6386ba0b5f114b6 (diff)
downloadsrc-bdc431a06bbc06b243d6960a3cff50fc953dd420.tar.gz
src-bdc431a06bbc06b243d6960a3cff50fc953dd420.zip
add support for driver-based RADIUS ACL's (committed on vendor branch as it's
been sent upstream) Submitted by: Chris Zimmermann
Notes
Notes: svn path=/vendor/hostapd/dist/; revision=177580
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 4fd262c1ff14..aeefbea1c45d 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 */