drivers/net/wireless/ti/wlcore/cmd.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ti/wlcore/cmd.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ti/wlcore/cmd.h- Extension
.h- Size
- 17489 bytes
- Lines
- 711
- 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
wlcore.h
Detected Declarations
struct acx_headerstruct wl1271_cmd_headerstruct wl1271_commandstruct wl12xx_cmd_role_enablestruct wl12xx_cmd_role_disablestruct wl12xx_cmd_role_startstruct wl12xx_cmd_role_stopstruct cmd_enabledisable_pathstruct wl1271_cmd_template_setstruct wl1271_timstruct wl1271_cmd_ps_paramsstruct wl1271_cmd_set_keysstruct wl1271_cmd_test_headerstruct wl12xx_cmd_set_peer_statestruct wl12xx_cmd_rocstruct wl12xx_cmd_crocstruct wl12xx_cmd_add_peerstruct wl12xx_cmd_remove_peerstruct wl12xx_cmd_regdomain_dfs_configstruct wlcore_cmd_generic_cfgstruct wl12xx_cmd_config_fwlogstruct wl12xx_cmd_start_fwlogstruct wl12xx_cmd_stop_fwlogstruct wl12xx_cmd_stop_channel_switchstruct wl1271_cmd_cal_p2genum wl1271_commandsenum cmd_templenum wlcore_bandenum wlcore_channel_typeenum wl1271_cmd_ps_modeenum wl1271_cmd_key_actionenum wl1271_cmd_lid_key_typeenum wl1271_cmd_key_typeenum wl1271_channel_tune_bandsenum wl1271_disconnect_typeenum wl12xx_ssid_typeenum wl1271_psd_typeenum wl12xx_fwlogger_log_modeenum wl12xx_fwlogger_timestampenum wl12xx_fwlogger_outputenum wlcore_generic_cfg_feature
Annotated Snippet
struct wl1271_cmd_header {
__le16 id;
__le16 status;
} __packed;
#define WL1271_CMD_MAX_PARAMS 572
struct wl1271_command {
struct wl1271_cmd_header header;
u8 parameters[WL1271_CMD_MAX_PARAMS];
} __packed;
enum {
CMD_MAILBOX_IDLE = 0,
CMD_STATUS_SUCCESS = 1,
CMD_STATUS_UNKNOWN_CMD = 2,
CMD_STATUS_UNKNOWN_IE = 3,
CMD_STATUS_REJECT_MEAS_SG_ACTIVE = 11,
CMD_STATUS_RX_BUSY = 13,
CMD_STATUS_INVALID_PARAM = 14,
CMD_STATUS_TEMPLATE_TOO_LARGE = 15,
CMD_STATUS_OUT_OF_MEMORY = 16,
CMD_STATUS_STA_TABLE_FULL = 17,
CMD_STATUS_RADIO_ERROR = 18,
CMD_STATUS_WRONG_NESTING = 19,
CMD_STATUS_TIMEOUT = 21, /* Driver internal use.*/
CMD_STATUS_FW_RESET = 22, /* Driver internal use.*/
CMD_STATUS_TEMPLATE_OOM = 23,
CMD_STATUS_NO_RX_BA_SESSION = 24,
MAX_COMMAND_STATUS
};
#define CMDMBOX_HEADER_LEN 4
#define CMDMBOX_INFO_ELEM_HEADER_LEN 4
enum {
BSS_TYPE_IBSS = 0,
BSS_TYPE_STA_BSS = 2,
BSS_TYPE_AP_BSS = 3,
MAX_BSS_TYPE = 0xFF
};
#define WL1271_JOIN_CMD_CTRL_TX_FLUSH 0x80 /* Firmware flushes all Tx */
#define WL1271_JOIN_CMD_TX_SESSION_OFFSET 1
#define WL1271_JOIN_CMD_BSS_TYPE_5GHZ 0x10
struct wl12xx_cmd_role_enable {
struct wl1271_cmd_header header;
u8 role_id;
u8 role_type;
u8 mac_address[ETH_ALEN];
} __packed;
struct wl12xx_cmd_role_disable {
struct wl1271_cmd_header header;
u8 role_id;
u8 padding[3];
} __packed;
enum wlcore_band {
WLCORE_BAND_2_4GHZ = 0,
WLCORE_BAND_5GHZ = 1,
WLCORE_BAND_JAPAN_4_9_GHZ = 2,
WLCORE_BAND_DEFAULT = WLCORE_BAND_2_4GHZ,
WLCORE_BAND_INVALID = 0x7E,
WLCORE_BAND_MAX_RADIO = 0x7F,
};
enum wlcore_channel_type {
WLCORE_CHAN_NO_HT,
WLCORE_CHAN_HT20,
WLCORE_CHAN_HT40MINUS,
WLCORE_CHAN_HT40PLUS
};
struct wl12xx_cmd_role_start {
struct wl1271_cmd_header header;
u8 role_id;
u8 band;
u8 channel;
/* enum wlcore_channel_type */
u8 channel_type;
union {
struct {
Annotation
- Immediate include surface: `wlcore.h`.
- Detected declarations: `struct acx_header`, `struct wl1271_cmd_header`, `struct wl1271_command`, `struct wl12xx_cmd_role_enable`, `struct wl12xx_cmd_role_disable`, `struct wl12xx_cmd_role_start`, `struct wl12xx_cmd_role_stop`, `struct cmd_enabledisable_path`, `struct wl1271_cmd_template_set`, `struct wl1271_tim`.
- 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.