[PATCH] allow updating Time Advertisement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux