Skip to content

net: add ESP32-C3 WiFi support#437

Open
xuchang-vivo wants to merge 7 commits into
vivoblueos:mainfrom
xuchang-vivo:xc/esp32c3-wifi-pr
Open

net: add ESP32-C3 WiFi support#437
xuchang-vivo wants to merge 7 commits into
vivoblueos:mainfrom
xuchang-vivo:xc/esp32c3-wifi-pr

Conversation

@xuchang-vivo

Copy link
Copy Markdown
Contributor

Summary

  • add the ESP32-C3 WLAN link implementation and WiFi operations wiring
  • add ESP32-C3 RNG and power domain driver support used by the WiFi stack
  • update the seeed_xiao_esp32c3 board integration and network medium plumbing for wifi_example

Affected board / arch

  • seeed_xiao_esp32c3.debug
  • riscv32imc / ESP32-C3

Verification

  • rustfmt --check --config-path /home/xuchang/blueos-github/kernel/rustfmt.toml <changed Rust files>
  • ninja -C /home/xuchang/blueos-github/out/seeed_xiao_esp32c3.debug wifi_example

The wifi_example build completed successfully and produced bin/wifi_example_pass. The build emitted existing Kconfig warnings for empty board values, but Ninja finished successfully.

Notes

  • This PR intentionally does not change kconfig/config/seeed_xiao_esp32c3/debug/defconfig.
  • check_all was not run for this draft PR.

🤖 Generated with Claude Code

xuchang-vivo and others added 4 commits July 3, 2026 15:30
Add the ESP32-C3 WiFi link implementation and board support glue needed by the wifi_example target.

Include ESP32-C3 RNG and power domain drivers used by the WiFi stack, wire WiFi medium support into the network layer, and adjust the seeed_xiao_esp32c3 board layout for the WiFi image.

Verification:

- rustfmt --check --config-path /home/xuchang/blueos-github/kernel/rustfmt.toml <changed Rust files>

- ninja -C /home/xuchang/blueos-github/out/seeed_xiao_esp32c3.debug wifi_example

Co-Authored-By: Claude <noreply@anthropic.com>
Parse wireless ESSID and passphrase ioctls, cache the passphrase for the connect request, and wire the request into the WiFi link implementation.

Configure the ESP32-C3 station interface before triggering esp_wifi_connect_internal so open and WPA2 networks can use the same connect path.

Verification:

- rustfmt --check --config-path /home/xuchang/blueos-github/kernel/rustfmt.toml kernel/src/net/iface/control.rs kernel/src/net/link/esp32_wlan/mod.rs kernel/src/net/link/mod.rs

- git diff --check

- ninja -C /home/xuchang/blueos-github/out/seeed_xiao_esp32c3.debug wifi_example

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
@xuchang-vivo xuchang-vivo marked this pull request as ready for review July 6, 2026 10:47
@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: setup (failure). Skipped jobs: check_format (skipped), check_license (skipped), build_host (skipped), build_and_check_boards (skipped), see https://github.com/vivoblueos/kernel/actions/runs/28786260620.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: check_format (failure), check_license (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28786612083.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: check_format (failure), check_license (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28787752560.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: check_license (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28796091363.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28836531901.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28836936806.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28837312247.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28837561012.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/28837885183.

@xuchang-vivo

Copy link
Copy Markdown
Contributor Author

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/28846535987.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant