aboutsummaryrefslogtreecommitdiff
path: root/src/WifiAP.cpp
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2020-07-27 16:06:53 +0200
committerGitHub <noreply@github.com>2020-07-27 16:06:53 +0200
commit40a9f41be8ec484728862eb065b9b6985909db33 (patch)
treea037a722e60dc06a8de6990ce9da0c50f2d7015f /src/WifiAP.cpp
parent5c08207f359479fdd16fa8517f9d2a5e8fe52c63 (diff)
parentdff14ca80ada883870131c7ff17d85866254ccc0 (diff)
Merge branch 'master' into fix/aarch64-ci
Diffstat (limited to 'src/WifiAP.cpp')
-rw-r--r--src/WifiAP.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/WifiAP.cpp b/src/WifiAP.cpp
index 3a5de37..ae9664c 100644
--- a/src/WifiAP.cpp
+++ b/src/WifiAP.cpp
@@ -30,9 +30,6 @@
namespace WifiAP
{
-#define AP_MAC 0x00, 0xF0, 0x77, 0x77, 0x77, 0x77
-#define AP_NAME "melonAP"
-
const u8 APMac[6] = {AP_MAC};
#define PWRITE_8(p, v) *p++ = v;
@@ -130,6 +127,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)
{