Commit Graph
1047 Commits
Author SHA1 Message Date
BFNOC 464bb809fe fix(swu): keep authenticated syntax and local key errors fatal
- Treat decryption, padding or payload errors after a passed integrity check as real failures
- Keep missing keys and cipher setup failures fatal instead of dropping the message
- Apply both rules to IKE fragments
- Count authenticated ESP as peer liveness before the traffic selector check
- Count authenticated IKE fragments as peer liveness
- Drop INFORMATIONAL messages whose SPIs or role no longer match by the time they are handled
- Test that an authenticated syntax error is not treated as unauthenticated
2026-10-12 23:14:31 +08:00
BFNOC 0d12955150 fix(swu): drop unauthenticated IKE messages and count only authenticated liveness
- Drop established IKE requests that fail decryption, integrity or decoding
- Drop inbound IKE fragments that fail their checks
- Drop requests with an unsupported exchange type
- Log every dropped message with its size, first bytes and error
- Refresh peer liveness only after an IKE message decrypts or an ESP packet decapsulates
- Add header fields and SPIs to every IKE message that fails to decrypt
- Test that malformed, unknown-SPI and forged messages leave the session and liveness unchanged
2026-10-12 23:14:31 +08:00
BFNOC e8514511cb fix(swu): drop invalid IKE packets instead of ending the session
- Drop established IKE packets with a bad header, length or unknown SPIs
- Log each dropped packet with its size, first bytes and error
- Test that unknown SPIs and a bad length leave the session up
2026-10-12 23:14:31 +08:00
BFNOC c4498014e2 fix(ipsec): treat every unmarked datagram from port 4500 as ESP
- Pass the peer source port into the IKE and ESP demultiplexer
- Keep the unmarked IKE check for ports other than 4500
- Apply it to the direct socket and the SOCKS5 relay
- Test ESP from port 4500 that looks like an IKEv2 header
2026-10-12 23:14:31 +08:00
BFNOC 96888e67e1 fix(swu): drop a stale old IKE SA instead of failing the next IKE rekey
- Discard an old IKE SA still awaiting Delete when the next local IKE rekey starts
- Log the dropped SA with its SPIs and role
- Test an IKE rekey that starts with a stale old SA
2026-10-12 21:34:21 +08:00
BFNOC 58ec51a1ec feat(swu): log every failed rekey attempt and undecryptable IKE responses
- Log each failed IKE SA and CHILD_SA rekey attempt with its count
- Add exchange type, flags, message ID and payload types to IKE responses that fail to decrypt
2026-10-12 21:32:10 +08:00
yibaiba b9434fc11f fix: map QMI active band enums to LTE band numbers v2.1.30 2026-10-11 10:44:10 +08:00
yibaiba 3aa92ab05b fix: resolve SMS identity by current physical modem 2026-10-11 10:43:49 +08:00
yibaiba d0a6e52984 fix(ci): allow SDK downloads to finish on measured slow links v2.1.29 2026-10-09 00:53:37 +08:00
yibaiba d0769d4b95 test(ci): serve complete responses for SDK range rejection checks 2026-10-09 00:27:06 +08:00
yibaiba cfe38660f1 fix(ci): resume and verify cached OpenWrt SDK downloads v2.1.28 2026-10-09 00:18:51 +08:00
yibaiba 8299cf55cc fix(ci): use HTTP/1.1 for pinned OpenWrt SDK downloads v2.1.27 2026-10-08 19:36:11 +08:00
yibaiba d95b8b162a fix(swu): respond to device identity requests and honor carrier overrides v2.1.26 2026-10-08 18:47:56 +08:00
yibaiba b6a2d81766 Merge pull request #32 from BFNOC/vowifi-swu-rekey-pr
fix(swu): fix CHILD_SA rekey SPIs and Spark NZ IKE_AUTH
2026-10-08 18:11:51 +08:00
BFNOC eae1fd9eb0 fix(policy): keep the Spark NZ CHILD_SA when its rekey is declined
- Add the keep_child_sa_on_rekey_decline preset key
- Carry it through the runtime carrier config to the SWu config
- Set it for Spark NZ
- Keep the CHILD_SA on NO_ADDITIONAL_SAS and ask again next interval where the key is set
2026-10-08 13:05:18 +08:00
BFNOC aa20775ab8 fix(policy): withhold DEVICE_IDENTITY from the first IKE_AUTH on Spark NZ
- Add the withhold_device_identity preset key
- Carry it through the runtime carrier config to the SWu config
- Set it for Spark NZ
- Log an ePDG DEVICE_IDENTITY request
2026-10-08 13:05:18 +08:00
BFNOC 2784199637 feat(policy): rekey the Lebara UK IKE SA every 9000 seconds 2026-10-08 10:55:47 +08:00
BFNOC f19e0d365e feat(swu): log session failure causes and rekey completions 2026-10-08 10:55:47 +08:00
BFNOC 27be05ea4f fix(runtimecore): stop replaying the fast reauth identity on reconnect 2026-10-08 10:55:23 +08:00
BFNOC 334f68be25 fix(swu): use RFC 7296 SPI directions for CHILD_SA rekey and delete
- REKEY_SA carries our inbound SPI
- Delete lists our inbound SPI and expects the peer's in reply
- Match peer Deletes by our outbound SPI
2026-10-08 10:55:23 +08:00
yibaiba e1b2b4cd0d fix: build dynamic OpenWrt binaries with SDK v2.1.25 2026-10-07 23:57:56 +08:00
yibaiba cbc42347e9 build: publish fnOS package to releases 2026-10-07 23:51:57 +08:00
yibaiba 1418d3f684 build: publish dynamic OpenWrt binaries 2026-10-07 23:47:01 +08:00
yibaiba b335f3d29a Merge remote main after PR #30 integration 2026-10-07 22:16:57 +08:00
yibaiba b9fbdbebac fix(vowifi): complete AIS EAP-AKA challenge response 2026-10-07 20:16:09 +08:00
yibaiba f1615d532b fix(phone): reserve media during call setup 2026-10-07 12:43:34 +08:00
yibaiba 24a2071252 fix(phone): release failed unbound media sessions 2026-10-07 12:09:04 +08:00
yibaiba 13b15d083c Merge pull request #30 from GhostStar/fix/modem-voice-low-latency 2026-10-07 08:56:39 +08:00
sk 3657874b94 docs(phone): explain voice fixes and native and Docker validation
Document media readiness, bounded playback, diagnostic counters and native musl recording requirements. Record successful DJI/Baiwang user call testing while distinguishing measured pipe delay, user feedback and untested architectures.
2026-10-05 17:32:37 +00:00
sk b75e41cf5d build(openwrt): support opt-in dynamic musl linking for recording
Keep static linking as the default for existing releases and packages. Allow LINK_MODE=dynamic for native MP3 recording and require a musl ELF interpreter for dynamic artifacts. Document matching SDK builds and recording runtime libraries.
2026-10-05 17:32:37 +00:00
sk cfcd238917 fix(phone): bound modem playback latency and wait for media connection
Retain recent 20 ms PCM frames instead of replaying seconds of buffered speech after USB startup or network stalls. Pad missing input with silence, bound the playback pipe, and wait for the playback worker to exit during shutdown. Wait for WebRTC to connect before reporting prepared media, and add audio and call-end diagnostics with regression coverage.
2026-10-05 17:32:37 +00:00
yibaiba 8f5b1b5040 fix(ci): pin Docker image revision to the release tag
docker/metadata-action labels workflow_dispatch runs with the workflow
branch SHA, so the published image revision did not match the tagged
commit. FPK packaging requires those to be identical.
2026-10-05 14:36:06 +08:00
yibaiba b6bc180e1d build: verify fnOS releases and improve setup workflow v2.1.24 2026-10-05 10:43:46 +08:00
yibaiba 82cac762ca build: add fnOS Docker-based FPK packaging 2026-10-05 01:39:29 +08:00
yibaiba edc8d0dcef build: package OpenWrt modem voice dependencies and private adb 2026-10-05 01:00:32 +08:00
yibaiba 2402a13711 fix(docker): add PC/SC client libraries and host reader access
Port of yibaiba/hideck#26. Alpine images install pcsc-lite-libs,
Debian release images install libpcsclite1, and the optional
docker-compose.pcsc.yml bind-mounts the host pcscd socket directory.
2026-09-27 19:50:47 +08:00
ainuoyan 3fd3d6aaf5 Fix Docker PC/SC dependencies and document host reader access 2026-09-27 19:46:35 +08:00
yibaiba 901ebb99b7 fix(ims): fail REGISTER when the 200 omits our Contact
Treat a successful REGISTER without our own Contact binding as a
registration failure instead of falling back to Expires or the
configured lifetime, and do not keep the previous binding across an
outbound refresh that lost that Contact.
2026-09-27 10:56:40 +08:00
yibaiba eeae2c22a8 fix(ims): use current Contact expiration for registration refresh 2026-09-24 17:14:51 +08:00
yibaiba 289ed6b985 test(phone): remove unreachable notification helper return 2026-09-24 17:14:51 +08:00
yibaiba 7b620435c3 revert(phone): restore modem direct calling on main 2026-09-24 16:49:46 +08:00
yibaiba 011a8a68c4 refactor(phone): move modem direct calling to dedicated branch
Preserve the complete implementation on feat/modem-direct and model/main. Remove its UI, backend, ADB preparation, embedded runtime assets and Docker dependencies from main.

Retain SIM outbound limits, dialer device memory, proxy diagnostics and shared VoWiFi/VoLTE lifecycle fixes. Adapt shared regression tests to supported phone modes.
2026-09-24 16:27:48 +08:00
yibaiba ee01f850ad fix(phone): prevent disabled mode buttons from switching modes 2026-09-24 14:29:40 +08:00
yibaiba 6aab5dbb2f feat(phone): automatically prepare ADB for supported modem voice devices 2026-09-24 14:26:51 +08:00
yibaiba 978aa448fb feat(phone): embed modem voice runtime and persist per-SIM outbound limits 2026-09-24 12:44:06 +08:00
yibaiba 963341a44f fix(phone): confirm cellular mode switches and clarify ADB errors 2026-09-24 11:42:33 +08:00
yibaiba 0fbd353110 feat(phone): support modem DTMF and remember dialer device 2026-09-24 11:19:10 +08:00
yibaiba 9af43b93c1 fix(device): bind policy effects and voice starts to SIM ownership 2026-09-24 09:59:03 +08:00
yibaiba bcb8ccad5b fix(device): isolate VoWiFi state and modem call events per device 2026-09-23 18:37:05 +08:00
yibaiba 3b33c3ae7b fix(vowifi): isolate lifecycle ownership across device and mode transitions 2026-09-23 16:17:41 +08:00