李通洲
e0eba8ce21
Chore: run clang-format
...
```bash
find . -type f \( -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" \) ! -path "src/3rdparty/*" -print0 | xargs -0 clang-format -i
```
2026-03-29 10:03:32 +08:00
李通洲
bf99aeda92
Global: replaces %m for %s + strerror(errno)
...
Not portable
This reverts aabab6dff5
2026-03-26 19:54:10 +08:00
李通洲
9027f72353
Wifi (Linux): decodes SSID string printed by iw
2026-03-25 14:14:26 +08:00
Carter Li
afa986efd4
Global (Linux): unrefs dbus replies to avoid memleaks
2026-02-26 10:11:12 +08:00
Carter Li
bc6e8c7813
Global (Linux): unrefs dbus connection to avoid memleaks
2026-02-26 09:47:18 +08:00
Carter Li
d60b25e424
Refactor: renames src/util to src/common
2026-01-06 09:48:38 +08:00
Carter Li
61690a1804
Util: moves util/io/io.h to util/io.h
2026-01-06 09:13:40 +08:00
李通洲
1e43e35857
Chore: merges common/* into util/*
2026-01-05 17:54:41 +08:00
李通洲
8c86003220
Common: introduces FF_LIBRARY_LOAD_MESSAGE to simplify library-loading
2026-01-05 17:54:41 +08:00
李通洲
e95393750b
Wifi (macOS): add (B)SSID detection back for Tohoe 26.0
...
Fixes #1874
2025-09-22 09:37:07 +08:00
李通洲
e025f28cdc
Wifi (macOS): removes wdutil-based Wi-Fi detection code
...
Let's stop this hide and seek game.
2025-09-12 14:28:01 +08:00
李通洲
75ff054255
Dbus: adds 2nd argument to ffDBusGetMethodReply
2025-09-04 08:45:09 +08:00
李通洲
61f2823903
Global: fixes -ffast-math compatibility
...
Unifies unset double handling using `-DBL_MAX` sentinel
Fixes #1894
2025-08-14 10:01:34 +08:00
李通洲
75d2c668d0
Modules: refactor module option handling for static allocation
...
Moves module option structs out of global config and removes dynamic allocation, using static buffers and size assertions for safer, simpler management.
Refactors module initialization and destruction to work with isolated option structs, eliminating the need for the previous modules container and related code.
Unifies module option header usage and updates detection logic to leverage statically-sized option buffers, improving encapsulation and maintainability.
Simplifies module function signatures and reduces coupling between modules and config.
Enhances future extensibility and reliability by enforcing max size constraints and removing unnecessary indirections.
2025-08-04 14:46:01 +08:00
李通洲
3cef51ec4a
JsonConfig: refactor string buffer JSON handling for robustness
2025-08-02 17:41:19 +08:00
李通洲
671b11157e
Wifi (macOS): disable using of ipconfig on 15.6 too
...
Ref: #1874
2025-08-01 08:54:31 +08:00
李通洲
78fb55c35c
Chore: remove sensitive data [ci skip]
2025-07-31 18:58:57 +08:00
李通洲
1ed804db52
Wifi (macOS): use sudo wdutil info on Tahoe
...
sudo, you know it.
2025-07-28 15:35:02 +08:00
Carter Li
9b491c2f49
Wifi (Linux): fix interface status when the interface is up but not connected
2025-07-22 22:03:53 +08:00
李通洲
1938be86ff
Wifi (NetBSD): fix the ambiguous comment
2025-04-29 13:53:45 +08:00
李通洲
0980d5f0ad
Wifi (BSD): correctly prioritize Wi-Fi protocol detection
...
by using an `if-else if` chain
2025-04-29 13:50:53 +08:00
李通洲
9c455c3b0f
Wifi (FreeBSD): fix possible mem leaks
2025-04-20 12:41:06 +08:00
Carter Li
d4ea9dfd21
Wifi (NetBSD): add support
...
Untested
2025-04-20 12:40:47 +08:00
李通洲
08071e6e7e
Wifi (OpenBSD): fix file name
2025-04-20 11:49:40 +08:00
李通洲
75290154b0
Chore: remove Chinese comments [ci skip]
2025-04-16 11:09:03 +08:00
李通洲
79d0197dcf
Wifi (FreeBSD): remove unused sys headers
2025-04-14 10:04:11 +08:00
李通洲
58908f69ba
Wifi (OpenBSD): add support
...
Completely untested.
2025-04-13 00:37:40 +08:00
李通洲
3d7c631abd
Wifi: fix code smells
2025-04-01 10:48:04 +08:00
Carter Li
f7058cd125
Wifi (Linux): add verbose logs
2025-03-23 17:19:43 +08:00
李通洲
41d6187f11
Wifi (FreeBSD): use ioctl to improve performance
...
And support more features
2025-03-23 09:46:44 +08:00
李通洲
65c7f68c31
Wifi (macOS): remove usage of Apple80211
...
It's no longer useful in Sequoia
2025-03-14 15:53:08 +08:00
李通洲
c038024108
Wifi (macOS): improve performance of SSID detection on Sequoia
...
Fix #1597
Thanks @torma616 for the information
2025-03-06 16:04:22 +08:00
李通洲
ac2266c72f
Wifi (FreeBSD): early break if the interface is not associated
2024-12-17 20:55:33 +08:00
Carter Li
856d229b36
Wifi (Linux): fix bssid formatting
2024-12-06 09:14:30 +08:00
Carter Li
f073f4882c
Wifi (Linux): detect Wifi-7
2024-12-01 18:16:05 +08:00
李通洲
692ad502df
Wifi (Windows): make unit of bitrates be consistant
...
Also fix a copy & paste bug
2024-11-30 23:50:06 +08:00
Carter Li
55352be0cc
Wifi (FreeBSD): support channel & frequency detection
2024-11-23 12:21:48 +08:00
Carter Li
c0be2637a8
Wifi (Android): silence compiler warnings
2024-11-22 15:37:01 +08:00
Carter Li
864fb918bc
Chore: silence some warnings
2024-11-22 14:20:50 +08:00
Carter Li
2197cfb06d
Wifi (Android): report more props
2024-11-22 13:53:04 +08:00
Carter Li
94f8ff938b
Wifi: print channel band
2024-11-22 11:01:54 +08:00
Carter Li
7000317841
Wifi (Linux): detect frequency & channel number
2024-11-22 10:31:12 +08:00
李通洲
06055cc6c3
Wifi (macOS): fix build on old OS version
2024-11-21 22:03:25 +08:00
李通洲
d48c76b597
Wifi: detect channel and frequency
2024-11-21 21:37:30 +08:00
Carter Li
4cbcd0f107
Wifi (Linux): improve performance
2024-11-20 08:43:41 +08:00
李通洲
7c8250c68c
StringUtil: rename ffStrCopy and correctly reflect its usage
2024-11-11 18:02:23 +08:00
李通洲
48bb5b8746
Chore: use ffStrCopyN instead of strlcpy
2024-10-17 22:29:38 +08:00
李通洲
993902916d
Chore: don't use strncpy in favor of strlcpy
...
strncpy doesn't require target to be NUL terminated
2024-10-17 16:16:04 +08:00
李通洲
ae76d2d032
IO (Linux): improve performance of ffPathExists
2024-10-15 19:40:03 +08:00
李通洲
4ea5d6f4fe
Wifi (macOS): fix protocol detection on Sequoia
2024-09-24 09:56:02 +08:00