drivers/net/wireless/ath/wcn36xx/hal.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/wcn36xx/hal.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/wcn36xx/hal.h- Extension
.h- Size
- 125594 bytes
- Lines
- 4974
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct wcnss_wlan_versionstruct wcn36xx_hal_keysstruct wcn36xx_hal_set_sta_key_paramsstruct wcn36xx_hal_msg_headerstruct wcn36xx_hal_cfgstruct wcn36xx_hal_mac_start_parametersstruct wcn36xx_hal_mac_start_req_msgstruct wcn36xx_hal_mac_start_rsp_paramsstruct wcn36xx_hal_mac_start_rsp_msgstruct wcn36xx_hal_mac_stop_req_paramsstruct wcn36xx_hal_mac_stop_req_msgstruct wcn36xx_hal_mac_stop_rsp_msgstruct wcn36xx_hal_update_cfg_req_msgstruct wcn36xx_hal_update_cfg_rsp_msgstruct wcn36xx_hal_mac_frame_ctlstruct wcn36xx_hal_mac_seq_ctlstruct wcn36xx_hal_mac_mgmt_hdrstruct wcn36xx_hal_scan_entrystruct wcn36xx_hal_init_scan_req_msgstruct wcn36xx_hal_init_scan_con_req_msgstruct wcn36xx_hal_init_scan_rsp_msgstruct wcn36xx_hal_start_scan_req_msgstruct wcn36xx_hal_start_rsp_msgstruct wcn36xx_hal_end_scan_req_msgstruct wcn36xx_hal_end_scan_rsp_msgstruct wcn36xx_hal_finish_scan_req_msgstruct wcn36xx_hal_finish_scan_rsp_msgstruct wcn36xx_hal_mac_ssidstruct wcn36xx_hal_start_scan_offload_req_msgstruct wcn36xx_hal_start_scan_offload_rsp_msgstruct wcn36xx_hal_scan_offload_indstruct wcn36xx_hal_stop_scan_offload_req_msgstruct wcn36xx_hal_stop_scan_offload_rsp_msgstruct wcn36xx_hal_channel_paramstruct wcn36xx_hal_update_channel_list_req_msgstruct wcn36xx_hal_supported_ratesstruct wcn36xx_hal_config_sta_paramsstruct wcn36xx_hal_config_sta_req_msgstruct wcn36xx_hal_supported_rates_v1struct wcn36xx_hal_config_sta_params_v1struct wcn36xx_hal_config_sta_req_msg_v1struct config_sta_rsp_paramsstruct wcn36xx_hal_config_sta_rsp_msgstruct wcn36xx_hal_delete_sta_req_msgstruct wcn36xx_hal_delete_sta_rsp_msgstruct wcn36xx_hal_rate_setstruct wcn36xx_hal_aci_aifsnstruct wcn36xx_hal_mac_cw
Annotated Snippet
struct wcnss_wlan_version {
u8 revision;
u8 version;
u8 minor;
u8 major;
} __packed;
/* Definition for Encryption Keys */
struct wcn36xx_hal_keys {
u8 id;
/* 0 for multicast */
u8 unicast;
enum ani_key_direction direction;
/* Usage is unknown */
u8 rsc[WLAN_MAX_KEY_RSC_LEN];
/* =1 for authenticator,=0 for supplicant */
u8 pae_role;
u16 length;
u8 key[WCN36XX_HAL_MAC_MAX_KEY_LENGTH];
} __packed;
/*
* set_sta_key_params Moving here since it is shared by
* configbss/setstakey msgs
*/
struct wcn36xx_hal_set_sta_key_params {
/* STA Index */
u16 sta_index;
/* Encryption Type used with peer */
enum ani_ed_type enc_type;
/* STATIC/DYNAMIC - valid only for WEP */
enum ani_wep_type wep_type;
/* Default WEP key, valid only for static WEP, must between 0 and 3. */
u8 def_wep_idx;
/* valid only for non-static WEP encyrptions */
struct wcn36xx_hal_keys key[WCN36XX_HAL_MAC_MAX_NUM_OF_DEFAULT_KEYS];
/*
* Control for Replay Count, 1= Single TID based replay count on Tx
* 0 = Per TID based replay count on TX
*/
u8 single_tid_rc;
} __packed;
/* 4-byte control message header used by HAL*/
struct wcn36xx_hal_msg_header {
enum wcn36xx_hal_host_msg_type msg_type:16;
enum wcn36xx_hal_host_msg_version msg_version:16;
u32 len;
} __packed;
/* Config format required by HAL for each CFG item*/
struct wcn36xx_hal_cfg {
/* Cfg Id. The Id required by HAL is exported by HAL
* in shared header file between UMAC and HAL.*/
u16 id;
/* Length of the Cfg. This parameter is used to go to next cfg
* in the TLV format.*/
u16 len;
/* Padding bytes for unaligned address's */
u16 pad_bytes;
/* Reserve bytes for making cfgVal to align address */
u16 reserve;
/* Following the uCfgLen field there should be a 'uCfgLen' bytes
* containing the uCfgValue ; u8 uCfgValue[uCfgLen] */
} __packed;
struct wcn36xx_hal_mac_start_parameters {
/* Drive Type - Production or FTM etc */
enum driver_type type;
/* Length of the config buffer */
u32 len;
/* Following this there is a TLV formatted buffer of length
* "len" bytes containing all config values.
Annotation
- Detected declarations: `struct wcnss_wlan_version`, `struct wcn36xx_hal_keys`, `struct wcn36xx_hal_set_sta_key_params`, `struct wcn36xx_hal_msg_header`, `struct wcn36xx_hal_cfg`, `struct wcn36xx_hal_mac_start_parameters`, `struct wcn36xx_hal_mac_start_req_msg`, `struct wcn36xx_hal_mac_start_rsp_params`, `struct wcn36xx_hal_mac_start_rsp_msg`, `struct wcn36xx_hal_mac_stop_req_params`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
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.