nRF WiFi
Loading...
Searching...
No Matches
fmac_structs_common.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
16#ifndef __FMAC_STRUCTS_COMMON_H__
17#define __FMAC_STRUCTS_COMMON_H__
18
19#include "osal_api.h"
20#include "host_rpu_umac_if.h"
21
22#define NRF_WIFI_FW_CHUNK_ID_STR_LEN 16
23
32
34 __NRF_WIFI_OP_MODE_AFTER_LAST,
35 NRF_WIFI_OP_MODE_MAX = __NRF_WIFI_OP_MODE_AFTER_LAST - 1,
36 NRF_WIFI_OP_MODE_UNKNOWN
38};
39
46 unsigned long long total_tx_pkts;
48 unsigned long long total_tx_done_pkts;
50 unsigned long long total_tx_drop_pkts;
52 unsigned long long total_rx_pkts;
54 unsigned long long total_rx_drop_pkts;
55};
56
57
64 const void *data;
66 unsigned int size;
67};
68
69
84
93 const void *data;
95 unsigned int size;
97 unsigned int dest_addr;
98};
99
108 unsigned int flags;
109};
110
111/* Maximum number of channels supported in a regulatory
112 * currently set to 42 as hardware supports 2.4GHz and 5GHz.
113 * In 2.4 GHz band maximum 14 channels and
114 * in 5 GHz band maximum 28 channels are supported.
115 * Maximum number of channels will change if more number
116 * of channels are enabled in different bands or
117 * different bands are supported in hardware.
118 */
119#define MAX_NUM_REG_CHANELS 42
120
135
148
194#endif /* __FMAC_STRUCTS_COMMON_H__ */
nrf_wifi_op_mode
Device operation modes.
Definition fmac_structs_common.h:25
@ NRF_WIFI_OP_MODE_OFF_RAW_TX
Definition fmac_structs_common.h:31
@ NRF_WIFI_OP_MODE_RT
Definition fmac_structs_common.h:29
@ NRF_WIFI_OP_MODE_SYS
Definition fmac_structs_common.h:27
#define MAX_NUM_REG_CHANELS
Definition fmac_structs_common.h:119
#define NRF_WIFI_FW_CHUNK_ID_STR_LEN
Definition fmac_structs_common.h:22
#define NRF_WIFI_COUNTRY_CODE_LEN
Definition host_rpu_sys_if.h:59
This structure represents the information related to UMAC.
Definition host_rpu_common_if.h:111
This structure represents the event that is generated when the regulatory domain is modified or updat...
Definition host_rpu_umac_if.h:3525
struct nrf_wifi_tx_pwr_ceil_params * tx_pwr_ceil_params
Definition fmac_structs_common.h:187
int reg_set_status
Definition fmac_structs_common.h:183
struct nrf_wifi_event_regulatory_change * reg_change
Definition fmac_structs_common.h:185
bool fw_boot_done
Definition fmac_structs_common.h:167
void * os_dev_ctx
Definition fmac_structs_common.h:157
struct nrf_wifi_fmac_priv * fpriv
Definition fmac_structs_common.h:155
bool fw_deinit_done
Definition fmac_structs_common.h:171
char priv[]
Definition fmac_structs_common.h:189
void * hal_dev_ctx
Definition fmac_structs_common.h:159
bool fw_init_done
Definition fmac_structs_common.h:169
bool stats_req
Definition fmac_structs_common.h:165
bool waiting_for_reg_event
Definition fmac_structs_common.h:181
void * fw_stats
Definition fmac_structs_common.h:163
unsigned int reg_chan_count
Definition fmac_structs_common.h:177
int op_mode
Definition fmac_structs_common.h:161
unsigned char alpha2[3]
Definition fmac_structs_common.h:175
struct nrf_wifi_get_reg_chn_info * reg_chan_info
Definition fmac_structs_common.h:179
bool alpha2_valid
Definition fmac_structs_common.h:173
Structure to hold common fmac dev context parameter data.
Definition fmac_structs_common.h:153
unsigned int size
Definition fmac_structs_common.h:95
unsigned int dest_addr
Definition fmac_structs_common.h:97
const void * data
Definition fmac_structs_common.h:93
char id_str[16]
Definition fmac_structs_common.h:91
Structure to hold FW patch chunk information.
Definition fmac_structs_common.h:89
struct nrf_wifi_fw_info umac_patch_pri
Definition fmac_structs_common.h:80
struct nrf_wifi_fw_info lmac_patch_pri
Definition fmac_structs_common.h:76
struct nrf_wifi_fw_info lmac_patch_sec
Definition fmac_structs_common.h:78
struct nrf_wifi_fw_info umac_patch_sec
Definition fmac_structs_common.h:82
Structure to hold FW patch information for LMAC and UMAC.
Definition fmac_structs_common.h:74
unsigned int flags
Definition fmac_structs_common.h:108
struct host_rpu_umac_info info
Definition fmac_structs_common.h:106
Structure to hold OTP region information.
Definition fmac_structs_common.h:104
int op_mode
Definition fmac_structs_common.h:144
struct nrf_wifi_hal_priv * hpriv
Definition fmac_structs_common.h:142
char priv[]
Definition fmac_structs_common.h:146
Structure to hold common fmac priv parameter data.
Definition fmac_structs_common.h:140
unsigned char alpha2[NRF_WIFI_COUNTRY_CODE_LEN]
Definition fmac_structs_common.h:127
unsigned int reg_chan_count
Definition fmac_structs_common.h:131
bool force
Definition fmac_structs_common.h:129
struct nrf_wifi_get_reg_chn_info reg_chan_info[42]
Definition fmac_structs_common.h:133
Structure to hold Regulatory parameter data.
Definition fmac_structs_common.h:125
unsigned int size
Definition fmac_structs_common.h:66
const void * data
Definition fmac_structs_common.h:64
Structure to hold FW patch information.
Definition fmac_structs_common.h:62
This structure represents channels information like maximum power, center frequency,...
Definition host_rpu_umac_if.h:3465
Structure to hold context information for the HAL layer.
Definition hal_structs_common.h:169
This structure defines the parameters used to control the max transmit (TX) power in both frequency b...
Definition phy_rf_params_common.h:425
unsigned long long total_tx_pkts
Definition fmac_structs_common.h:46
unsigned long long total_tx_drop_pkts
Definition fmac_structs_common.h:50
unsigned long long total_tx_done_pkts
Definition fmac_structs_common.h:48
unsigned long long total_rx_pkts
Definition fmac_structs_common.h:52
unsigned long long total_rx_drop_pkts
Definition fmac_structs_common.h:54
Structure to hold host specific statistics.
Definition fmac_structs_common.h:44