aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ap_drv_ops.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@toke.dk>2019-03-20 14:58:52 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-02 10:28:17 (GMT)
commit6720b9482f523f7385c6eaef9c27361d30a9c954 (patch)
tree1d1df37765f9f6e9141bc12666df55f1b5016fe4 /src/ap/ap_drv_ops.c
parent58d4c236153a5a949d0b87865d8d6f1899f3e85e (diff)
downloadhostap-6720b9482f523f7385c6eaef9c27361d30a9c954.zip
hostap-6720b9482f523f7385c6eaef9c27361d30a9c954.tar.gz
hostap-6720b9482f523f7385c6eaef9c27361d30a9c954.tar.bz2
nl80211: Station airtime weight configuration
This provides a mechanism for configuring per-STA airtime weight for airtime policy configuration. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Diffstat (limited to 'src/ap/ap_drv_ops.c')
-rw-r--r--src/ap/ap_drv_ops.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index 067cf86..61390f9 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -583,6 +583,16 @@ int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr,
}
+int hostapd_sta_set_airtime_weight(struct hostapd_data *hapd, const u8 *addr,
+ unsigned int weight)
+{
+ if (!hapd->driver || !hapd->driver->sta_set_airtime_weight)
+ return 0;
+ return hapd->driver->sta_set_airtime_weight(hapd->drv_priv, addr,
+ weight);
+}
+
+
int hostapd_set_country(struct hostapd_data *hapd, const char *country)
{
if (hapd->driver == NULL ||