Once the Time Advertisement elements are set, subsequent calls of hostapd_eid_time_adv() won't update the WLAN_EID_TIME_ADVERTISEMENT data, causing the propagated time to remain at its initial value during the whole lifetime of the AP. This change allows updating the time whenever this function is called. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@xxxxxxxxxxx> --- src/ap/ieee802_11_shared.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c index d70d6c1b5..3c8b23910 100644 --- a/src/ap/ieee802_11_shared.c +++ b/src/ap/ieee802_11_shared.c @@ -587,8 +587,7 @@ u8 * hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid) if (hapd->conf->time_advertisement != 2) return eid; - if (hapd->time_adv == NULL && - hostapd_update_time_adv(hapd) < 0) + if (hostapd_update_time_adv(hapd) < 0) return eid; if (hapd->time_adv == NULL) -- 2.17.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap