ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_c6link_sta_cfg Struct Reference

What this host must tell the co-processor to join one network. More...

#include <ra8_c6link_wifi.h>

Collaboration diagram for ra8_c6link_sta_cfg:

Data Fields

char ssid [k_ra8_c6link_ssid_max+1U]
 Target SSID, NUL-terminated.
char pass [k_ra8_c6link_pass_max+1U]
 Passphrase, NUL-terminated.
ra8_c6link_mac_t bssid
 Target AP address when pinned.
uint8_t ssid_len
 Octets of ssid to transmit.
uint8_t pass_len
 Octets of pass to transmit.
uint8_t channel
 Channel to try first, or zero.
bool bssid_set
 Pin the association to bssid.

Detailed Description

What this host must tell the co-processor to join one network.

Fill it with ra8_c6link_sta_cfg_set rather than by hand, so the lengths are derived once and the NUL terminators are guaranteed. The optional fields below the credentials narrow the search: a known channel skips a full scan, and a known BSSID pins the association to one radio.

Invariant
ssid_len is non-zero and at most k_ra8_c6link_ssid_max.
pass_len is zero for an open network, otherwise at most k_ra8_c6link_pass_max.
Example:
(void)ra8_c6link_sta_cfg_set(&sta, "ra8-bench", psk);
sta.channel = 6U;
See also
ra8_c6link_wifi_join
Since
0.1.0

Definition at line 116 of file ra8_c6link_wifi.h.

Field Documentation

◆ bssid

ra8_c6link_mac_t ra8_c6link_sta_cfg::bssid

Target AP address when pinned.

Definition at line 119 of file ra8_c6link_wifi.h.

Referenced by internal_c6link_sta_stage().

◆ bssid_set

bool ra8_c6link_sta_cfg::bssid_set

Pin the association to bssid.

Definition at line 123 of file ra8_c6link_wifi.h.

Referenced by internal_c6link_sta_set_config().

◆ channel

uint8_t ra8_c6link_sta_cfg::channel

Channel to try first, or zero.

Definition at line 122 of file ra8_c6link_wifi.h.

Referenced by internal_c6link_sta_set_config().

◆ pass

char ra8_c6link_sta_cfg::pass[k_ra8_c6link_pass_max+1U]

Passphrase, NUL-terminated.

Definition at line 118 of file ra8_c6link_wifi.h.

Referenced by internal_c6link_sta_stage(), and ra8_c6link_sta_cfg_set().

◆ pass_len

uint8_t ra8_c6link_sta_cfg::pass_len

◆ ssid

char ra8_c6link_sta_cfg::ssid[k_ra8_c6link_ssid_max+1U]

Target SSID, NUL-terminated.

Definition at line 117 of file ra8_c6link_wifi.h.

Referenced by internal_c6link_sta_stage(), and ra8_c6link_sta_cfg_set().

◆ ssid_len

uint8_t ra8_c6link_sta_cfg::ssid_len

The documentation for this struct was generated from the following file: