aboutsummaryrefslogtreecommitdiff
path: root/src/WifiAP.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/WifiAP.cpp')
-rw-r--r--src/WifiAP.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/WifiAP.cpp b/src/WifiAP.cpp
index 3a5de37..122e9d3 100644
--- a/src/WifiAP.cpp
+++ b/src/WifiAP.cpp
@@ -130,6 +130,18 @@ void USTimer()
}
}
+void MSTimer()
+{
+ USCounter += 0x400;
+
+ u32 chk = (u32)USCounter;
+ if (!(chk & 0x1FC00))
+ {
+ // send beacon every 128ms
+ BeaconDue = true;
+ }
+}
+
int HandleManagementFrame(u8* data, int len)
{