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

What the backend knows about the AP the station is on. More...

#include <ra8_wifi.h>

Collaboration diagram for ra8_wifi_ap:

Data Fields

ra8_wifi_mac_t bssid
 Address of the associated AP.
char ssid [k_ra8_wifi_ssid_max+1U]
 Its SSID, NUL-terminated.
uint8_t ssid_len
 Octets of ssid.
uint8_t channel
 Primary channel in use.
int8_t rssi
 Signal level in dBm.
int32_t authmode
 Backend authentication-mode code.

Detailed Description

What the backend knows about the AP the station is on.

Filled by ra8_wifi_get_ap from the radio's own association record. Useful as a post-connect sanity check: the BSSID and channel here are what the radio actually settled on.

Invariant
ssid_len never exceeds k_ra8_wifi_ssid_max and ssid is NUL-terminated at it.
rssi is in dBm and is negative for any real association.
Example:
ra8_wifi_ap_t ap = {};
if (ra8_wifi_get_ap(&wifi, &ap) == k_ra8_ok) { use(ap.rssi); }
@ k_ra8_ok
Success – operation completed with all postconditions satisfied.
Definition ra8_err.h:119
struct ra8_wifi_ap ra8_wifi_ap_t
ra8_err_t ra8_wifi_get_ap(ra8_wifi_t *wifi, ra8_wifi_ap_t *out)
Read what the backend knows about the associated AP.
Definition ra8_wifi.c:462
int8_t rssi
Signal level in dBm.
Definition ra8_wifi.h:268
See also
ra8_wifi_get_ap
Since
0.1.0

Definition at line 263 of file ra8_wifi.h.

Field Documentation

◆ authmode

int32_t ra8_wifi_ap::authmode

Backend authentication-mode code.

Definition at line 269 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap().

◆ bssid

ra8_wifi_mac_t ra8_wifi_ap::bssid

Address of the associated AP.

Definition at line 264 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap().

◆ channel

uint8_t ra8_wifi_ap::channel

Primary channel in use.

Definition at line 267 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap(), and wifi_hal_report().

◆ rssi

int8_t ra8_wifi_ap::rssi

Signal level in dBm.

Definition at line 268 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap(), and ra8_wifi_get_ap().

◆ ssid

char ra8_wifi_ap::ssid[k_ra8_wifi_ssid_max+1U]

Its SSID, NUL-terminated.

Definition at line 265 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap().

◆ ssid_len

uint8_t ra8_wifi_ap::ssid_len

Octets of ssid.

Definition at line 266 of file ra8_wifi.h.

Referenced by internal_c6link_op_get_ap().


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