nRF WiFi
Loading...
Searching...
No Matches
fmac_promisc.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
11#ifndef __FMAC_PROMISC_H__
12#define __FMAC_PROMISC_H__
13#include "system/fmac_structs.h"
14#include "common/pack_def.h"
15
25
41
48#if defined(CONFIG_LITTLE_ENDIAN)
50 unsigned short protocolVersion : 2;
51 unsigned short type : 2;
52 unsigned short subtype : 4;
53 unsigned short toDS : 1;
54 unsigned short fromDS : 1;
55 unsigned short moreFragments : 1;
56 unsigned short retry : 1;
57 unsigned short powerManagement : 1;
58 unsigned short moreData : 1;
59 unsigned short protectedFrame : 1;
60 unsigned short order : 1;
62#else
64 unsigned short toDS : 1;
65 unsigned short fromDS : 1;
66 unsigned short moreFragments : 1;
67 unsigned short retry : 1;
68 unsigned short powerManagement : 1;
69 unsigned short moreData : 1;
70 unsigned short protectedFrame : 1;
71 unsigned short order : 1;
72 unsigned short protocolVersion : 2;
73 unsigned short type : 2;
74 unsigned short subtype : 4;
76#endif
77
79 unsigned short *frame_control);
80#endif /* __FMAC_PROMISC_H__ */
nrf_wifi_packet_filter
Definition fmac_promisc.h:27
@ FILTER_CTRL_ONLY
Definition fmac_promisc.h:35
@ FILTER_DATA_CTRL
Definition fmac_promisc.h:39
@ FILTER_DATA_ONLY
Definition fmac_promisc.h:31
@ FILTER_MGMT_ONLY
Definition fmac_promisc.h:29
@ FILTER_CTRL_MGMT
Definition fmac_promisc.h:37
@ FILTER_DATA_MGMT
Definition fmac_promisc.h:33
bool nrf_wifi_util_check_filt_setting(struct nrf_wifi_fmac_vif_ctx *vif, unsigned short *frame_control)
nrf_wifi_fmac_frame_type
Header containing code to support promiscuous mode for the FMAC IF Layer of the Wi-Fi driver.
Definition fmac_promisc.h:17
@ NRF_WIFI_CTRL_PKT_TYPE
Definition fmac_promisc.h:21
@ NRF_WIFI_DATA_PKT_TYPE
Definition fmac_promisc.h:23
@ NRF_WIFI_MGMT_PKT_TYPE
Definition fmac_promisc.h:19
struct nrf_wifi_fmac_frame_ctrl __NRF_WIFI_PKD
unsigned short powerManagement
Definition fmac_promisc.h:68
unsigned short moreData
Definition fmac_promisc.h:69
unsigned short retry
Definition fmac_promisc.h:67
unsigned short order
Definition fmac_promisc.h:71
unsigned short subtype
Definition fmac_promisc.h:74
unsigned short moreFragments
Definition fmac_promisc.h:66
unsigned short toDS
Definition fmac_promisc.h:64
unsigned short fromDS
Definition fmac_promisc.h:65
unsigned short type
Definition fmac_promisc.h:73
unsigned short protocolVersion
Definition fmac_promisc.h:72
unsigned short protectedFrame
Definition fmac_promisc.h:70
Definition fmac_promisc.h:63
Structure to hold per VIF context information for the UMAC IF layer.
Definition fmac_structs.h:510