net/mac80211/ieee80211_i.h
Source file repositories/reference/linux-study-clean/net/mac80211/ieee80211_i.h
File Facts
- System
- Linux kernel
- Corpus path
net/mac80211/ieee80211_i.h- Extension
.h- Size
- 98051 bytes
- Lines
- 3012
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/device.hlinux/if_ether.hlinux/interrupt.hlinux/list.hlinux/netdevice.hlinux/skbuff.hlinux/workqueue.hlinux/types.hlinux/spinlock.hlinux/etherdevice.hlinux/leds.hlinux/idr.hlinux/rhashtable.hlinux/rbtree.hkunit/visibility.hnet/ieee80211_radiotap.hnet/cfg80211.hnet/mac80211.hnet/fq.hkey.hsta_info.hdebug.hdrop.h
Detected Declarations
struct ieee80211_localstruct ieee80211_mesh_fast_txstruct ieee80211_bssstruct ieee80211_tx_datastruct ieee80211_rx_datastruct ieee80211_csa_settingsstruct ieee80211_color_change_settingsstruct beacon_datastruct probe_respstruct fils_discovery_datastruct unsol_bcast_probe_resp_datastruct s1g_short_beacon_datastruct ps_datastruct ieee80211_if_apstruct ieee80211_if_vlanstruct mesh_statsstruct mesh_preq_queuestruct ieee80211_roc_workstruct ieee80211_conn_settingsstruct ieee80211_mgd_auth_datastruct ieee80211_mgd_assoc_datastruct ieee80211_sta_tx_tspecstruct ieee80211_adv_ttlm_infostruct ieee80211_if_managedstruct ieee80211_if_ibssstruct ieee80211_if_ocbstruct ieee80211_mesh_sync_opsstruct mesh_csa_settingsstruct mesh_tablestruct mesh_tx_cachestruct ieee80211_if_meshstruct ieee80211_chanctxstruct mac80211_qos_mapstruct txq_infostruct ieee80211_if_mntrstruct ieee80211_if_nanstruct ieee80211_if_nan_datastruct ieee80211_link_data_managedstruct ieee80211_link_data_apstruct ieee80211_link_datastruct ieee80211_sub_if_datastruct tpt_led_triggerstruct ieee80211_localstruct local_debugfsdentriesstruct ieee80211_csa_iestruct ieee802_11_elemsstruct ieee80211_elems_parse_paramsstruct ieee80211_check_combinations_data
Annotated Snippet
struct ieee80211_bss {
u32 device_ts_beacon, device_ts_presp;
bool wmm_used;
bool uapsd_supported;
#define IEEE80211_MAX_SUPP_RATES 32
u8 supp_rates[IEEE80211_MAX_SUPP_RATES];
size_t supp_rates_len;
struct ieee80211_rate *beacon_rate;
u32 vht_cap_info;
/*
* During association, we save an ERP value from a probe response so
* that we can feed ERP info to the driver when handling the
* association completes. these fields probably won't be up-to-date
* otherwise, you probably don't want to use them.
*/
bool has_erp_value;
u8 erp_value;
/* Keep track of the corruption of the last beacon/probe response. */
u8 corrupt_data;
/* Keep track of what bits of information we have valid info for. */
u8 valid_data;
};
/**
* enum ieee80211_bss_corrupt_data_flags - BSS data corruption flags
* @IEEE80211_BSS_CORRUPT_BEACON: last beacon frame received was corrupted
* @IEEE80211_BSS_CORRUPT_PROBE_RESP: last probe response received was corrupted
*
* These are bss flags that are attached to a bss in the
* @corrupt_data field of &struct ieee80211_bss.
*/
enum ieee80211_bss_corrupt_data_flags {
IEEE80211_BSS_CORRUPT_BEACON = BIT(0),
IEEE80211_BSS_CORRUPT_PROBE_RESP = BIT(1)
};
/**
* enum ieee80211_bss_valid_data_flags - BSS valid data flags
* @IEEE80211_BSS_VALID_WMM: WMM/UAPSD data was gathered from non-corrupt IE
* @IEEE80211_BSS_VALID_RATES: Supported rates were gathered from non-corrupt IE
* @IEEE80211_BSS_VALID_ERP: ERP flag was gathered from non-corrupt IE
*
* These are bss flags that are attached to a bss in the
* @valid_data field of &struct ieee80211_bss. They show which parts
* of the data structure were received as a result of an un-corrupted
* beacon/probe response.
*/
enum ieee80211_bss_valid_data_flags {
IEEE80211_BSS_VALID_WMM = BIT(1),
IEEE80211_BSS_VALID_RATES = BIT(2),
IEEE80211_BSS_VALID_ERP = BIT(3)
};
typedef unsigned __bitwise ieee80211_tx_result;
#define TX_CONTINUE ((__force ieee80211_tx_result) 0u)
#define TX_DROP ((__force ieee80211_tx_result) 1u)
#define TX_QUEUED ((__force ieee80211_tx_result) 2u)
#define IEEE80211_TX_UNICAST BIT(1)
#define IEEE80211_TX_PS_BUFFERED BIT(2)
struct ieee80211_tx_data {
struct sk_buff *skb;
struct sk_buff_head skbs;
struct ieee80211_local *local;
struct ieee80211_sub_if_data *sdata;
struct sta_info *sta;
struct ieee80211_key *key;
struct ieee80211_tx_rate rate;
unsigned int flags;
};
/**
* enum ieee80211_packet_rx_flags - packet RX flags
* @IEEE80211_RX_AMSDU: a-MSDU packet
* @IEEE80211_RX_MALFORMED_ACTION_FRM: action frame is malformed
* @IEEE80211_RX_DEFERRED_RELEASE: frame was subjected to receive reordering
*
* These are per-frame flags that are attached to a frame in the
* @rx_flags field of &struct ieee80211_rx_status.
*/
enum ieee80211_packet_rx_flags {
IEEE80211_RX_AMSDU = BIT(3),
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/device.h`, `linux/if_ether.h`, `linux/interrupt.h`, `linux/list.h`, `linux/netdevice.h`, `linux/skbuff.h`, `linux/workqueue.h`.
- Detected declarations: `struct ieee80211_local`, `struct ieee80211_mesh_fast_tx`, `struct ieee80211_bss`, `struct ieee80211_tx_data`, `struct ieee80211_rx_data`, `struct ieee80211_csa_settings`, `struct ieee80211_color_change_settings`, `struct beacon_data`, `struct probe_resp`, `struct fils_discovery_data`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.