nRF WiFi
Toggle main menu visibility
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
17
enum
nrf_wifi_fmac_frame_type
{
19
NRF_WIFI_MGMT_PKT_TYPE
= 0x0,
21
NRF_WIFI_CTRL_PKT_TYPE
,
23
NRF_WIFI_DATA_PKT_TYPE
,
24
};
25
27
enum
nrf_wifi_packet_filter
{
29
FILTER_MGMT_ONLY
= 0x2,
31
FILTER_DATA_ONLY
= 0x4,
33
FILTER_DATA_MGMT
= 0x6,
35
FILTER_CTRL_ONLY
= 0x8,
37
FILTER_CTRL_MGMT
= 0xa,
39
FILTER_DATA_CTRL
= 0xc
40
};
41
48
#if defined(CONFIG_LITTLE_ENDIAN)
49
struct
nrf_wifi_fmac_frame_ctrl
{
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;
61
}
__NRF_WIFI_PKD
;
62
#else
63
struct
nrf_wifi_fmac_frame_ctrl
{
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;
75
}
__NRF_WIFI_PKD
;
76
#endif
77
78
bool
nrf_wifi_util_check_filt_setting
(
struct
nrf_wifi_fmac_vif_ctx
*vif,
79
unsigned
short
*frame_control);
80
#endif
/* __FMAC_PROMISC_H__ */
nrf_wifi_packet_filter
nrf_wifi_packet_filter
Definition
fmac_promisc.h:27
FILTER_CTRL_ONLY
@ FILTER_CTRL_ONLY
Definition
fmac_promisc.h:35
FILTER_DATA_CTRL
@ FILTER_DATA_CTRL
Definition
fmac_promisc.h:39
FILTER_DATA_ONLY
@ FILTER_DATA_ONLY
Definition
fmac_promisc.h:31
FILTER_MGMT_ONLY
@ FILTER_MGMT_ONLY
Definition
fmac_promisc.h:29
FILTER_CTRL_MGMT
@ FILTER_CTRL_MGMT
Definition
fmac_promisc.h:37
FILTER_DATA_MGMT
@ FILTER_DATA_MGMT
Definition
fmac_promisc.h:33
nrf_wifi_util_check_filt_setting
bool nrf_wifi_util_check_filt_setting(struct nrf_wifi_fmac_vif_ctx *vif, unsigned short *frame_control)
nrf_wifi_fmac_frame_type
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
@ NRF_WIFI_CTRL_PKT_TYPE
Definition
fmac_promisc.h:21
NRF_WIFI_DATA_PKT_TYPE
@ NRF_WIFI_DATA_PKT_TYPE
Definition
fmac_promisc.h:23
NRF_WIFI_MGMT_PKT_TYPE
@ NRF_WIFI_MGMT_PKT_TYPE
Definition
fmac_promisc.h:19
__NRF_WIFI_PKD
#define __NRF_WIFI_PKD
Definition
pack_def.h:27
pack_def.h
nrf_wifi_fmac_frame_ctrl::powerManagement
unsigned short powerManagement
Definition
fmac_promisc.h:68
nrf_wifi_fmac_frame_ctrl::moreData
unsigned short moreData
Definition
fmac_promisc.h:69
nrf_wifi_fmac_frame_ctrl::retry
unsigned short retry
Definition
fmac_promisc.h:67
nrf_wifi_fmac_frame_ctrl::order
unsigned short order
Definition
fmac_promisc.h:71
nrf_wifi_fmac_frame_ctrl::subtype
unsigned short subtype
Definition
fmac_promisc.h:74
nrf_wifi_fmac_frame_ctrl::moreFragments
unsigned short moreFragments
Definition
fmac_promisc.h:66
nrf_wifi_fmac_frame_ctrl::toDS
unsigned short toDS
Definition
fmac_promisc.h:64
nrf_wifi_fmac_frame_ctrl::fromDS
unsigned short fromDS
Definition
fmac_promisc.h:65
nrf_wifi_fmac_frame_ctrl::type
unsigned short type
Definition
fmac_promisc.h:73
nrf_wifi_fmac_frame_ctrl::protocolVersion
unsigned short protocolVersion
Definition
fmac_promisc.h:72
nrf_wifi_fmac_frame_ctrl::protectedFrame
unsigned short protectedFrame
Definition
fmac_promisc.h:70
nrf_wifi_fmac_frame_ctrl
Definition
fmac_promisc.h:63
nrf_wifi_fmac_vif_ctx
Structure to hold per VIF context information for the UMAC IF layer.
Definition
fmac_structs.h:514
fmac_structs.h
fw_if
umac_if
inc
system
fmac_promisc.h
Generated on
for nRF WiFi by
1.17.0