ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
wifi_link.h File Reference

Layer 1 (Physical) - the 802.11 station link under the idemIP stack (PROTOCORE_ENABLE_IDEMIP). More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

Layer 1 (Physical) - the 802.11 station link under the idemIP stack (PROTOCORE_ENABLE_IDEMIP).

This module is the IdemIpPhyDriver of one Wi-Fi station. The stack module binds it as an interface with ::protocore_wifi_link_driver and the two buffer arrays of this module.

The receive ring is software. The radio gives each frame to ::protocore_wifi_link_frame_receive in its own task. That call puts the frame into a free buffer of the ring. Where no buffer is free, the link drops the frame and counts it.

The entry rx_claim gives the frames out in arrival order. The entry rx_release names the buffer that it gives back, and only that buffer becomes free again. A unit can thus keep a frame past later frames, and no refill lands on its buffer.

The radio copies a transmit frame before its send returns. A transmit buffer is thus free again at the reap of the next tick.

The radio is a seam: protocore_wifi_radio_start, protocore_wifi_radio_frame_send and protocore_wifi_radio_mac_read. On an ESP part, test/core_setup/hal/esp/esp_wifi_radio.c answers it with esp_wifi, and no esp_netif. Elsewhere the weak default of each one refuses.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file wifi_link.h.