-
Notifications
You must be signed in to change notification settings - Fork 0
hardening: connectivity robustness + internal-SRAM relief #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
61ac283
wifi: guard esp_wifi_init against OOM panic (defer instead of crash)
iliabaranov a8eff9a
wifi: Internal-RAM Phase 3 — trim static TX buffers 16 -> 6 (~16 KB i…
iliabaranov 571f8f9
wifi(machn): Internal-RAM Phase 3 — static TX buffers 16 -> 6 (parity…
iliabaranov e37cff5
mem(ncm): move tether RX copy to PSRAM to relieve internal SRAM
iliabaranov ff78e73
safety(net): raise REBOND_AFTER_MS 1500 -> 2500ms (above the 2.0s mac…
iliabaranov cc1afdc
net(usb-ncm): widen pstop TX retry budget 3 -> 6 with backoff (sf_txd…
iliabaranov 65abb3d
net(wg): pace wireguardif_periodic handshake initiations (Option B sa…
iliabaranov 012ee88
safety(net): derive rebond threshold from the adopted heartbeat (review)
iliabaranov bda129e
wifi(mem): add largest-free-block floor to the bring-up pre-flight (r…
iliabaranov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -85,6 +85,12 @@ CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y | |
| CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y | ||
|
|
||
| # WiFi | ||
| # Internal-RAM Phase 3 (2026-08-08): WiFi static TX buffers 16 -> 6, matching the | ||
| # remote (firmware/sdkconfig.defaults). Returns ~16 KB internal DMA at | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any way to enforce all of these config values match between firmware and machn?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that already exists, machine and remote match values. |
||
| # esp_wifi_init so WiFi fits alongside the resident USB-NCM stack (OOM-panic fix; | ||
| # paired with the dcs_wifi.c WIFI_MIN_INTERNAL_HEAP guard, a shared component). | ||
| # TX-side only; RX ring left at stock to protect the WPA2 EAPOL handshake. | ||
| CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM=6 | ||
| CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=10 | ||
| CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=32 | ||
| CONFIG_ESP_WIFI_AMPDU_TX_ENABLED=y | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you wanted you could add a CI check that this is actually the same as the machn node's somehow. Though not sure if that's worth it rather than just applying the suggested fix having the machine's absolute timeout advertised 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, this isn't a CI fix, it's configured per machine.