Files
MemRelay/projects/bc51a377-ed2d-4afc-a176-554fce220d45/Checkpoint 2026-11-29 21-59-03 UTC [fd3b1f6d02].md
T
memrelay 9864b7493d create: Checkpoint 2026-11-29 21:59:03 UTC [fd3b1f6d02]
MemRelay-Operation: checkpoint-save:wifi-agent-20261130-features
MemRelay-Resource: 31701582-20b9-40ce-8c6f-6cf6fdbdb787
2026-11-30 05:59:08 +08:00

30 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-11-29 21:59:03 UTC [fd3b1f6d02]
type: checkpoint
permalink: main/projects/bc51a377-ed2d-4afc-a176-554fce220d45/checkpoint-2026-11-29-21-59-03-utc-fd3b1f6d02
stable_id: 31701582-20b9-40ce-8c6f-6cf6fdbdb787
scope: project
memory_type: checkpoint
project_id: bc51a377-ed2d-4afc-a176-554fce220d45
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: wifi-agent-20261130-features
created_at: '2026-11-29T21:59:03.886405+00:00'
updated_at: '2026-11-29T21:59:03.886405+00:00'
tags:
- wifi
- mifipanel
---
热点子任务已在 Windows 上做完逻辑并通过 cargo check 与 wifi/hotspot 单元测试。未上板。
做了什么:无合法旧密码时用任务书里的默认 WPA2 密码并默认开启;NetworkManager 旧连接有 8–63 位合法密码则沿用。实现 wifi::rename。接入列表拉黑先确认。按 MAC 记备注(只进 wifi.json)。max_num_sta、定时开关(maintain 无状态判断,年份小于 2024 不关)、黑/白名单、dhcp-host、自定义 DNS、独立 nft 表 ip mifipanel_ttl、离线二维码。
关键实现:新字段都在 wifi.json,缺省不改旧设置。白名单空拒绝切换,且白名单模式不允许删掉最后一条。定时关闭只停发射,不改保存的开启状态;关闭时段内点应用或重启返回 error.wifi.quiet,设置仍落盘。maintain 只在“应该开着却没跑”或“应该关着却还在跑”时动 hostapd,避免 20 秒循环重启。
验证:Windows 上 cargo check --offline 通过;cargo test 完整一轮 60 项通过,随后 wifi:: 与 hotspot::tests 10 项通过。未上板。
主代理要做:把 mifipanel/i18n-parts/wifi.json 合并进四个 locale。不要改 wifi::rename 签名。不要把备注名写进 hostapd/dnsmasq/nft。
给下个会话:真机要看 hostapd 仍有 ieee80211w=0、自动信道仍是 6/36、桥失败仍退回网卡。定时关闭和白名单切换会重启或停掉 hostapd,确认不会每 20 秒再来一次。网段改变后不在新网段里的固定地址仍留在 wifi.json,但不写进 dnsmasq。二维码库在 web/layuimini/lib/qrcode/qrcode.js(MIT),页面不能改成外网地址。不要把热点密码写进记忆。