aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ap/hostapd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 3852d146..13008963 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -1511,6 +1511,7 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
* IEEE 802.1X/WPA code will start accounting after the station has
* been authorized. */
if (!hapd->conf->ieee802_1x && !hapd->conf->wpa) {
+ ap_sta_set_authorized(hapd, sta, 1);
os_get_time(&sta->connected_time);
accounting_sta_start(hapd, sta);
}