drivers/net/wireless/st/cw1200/wsm.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/st/cw1200/wsm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/st/cw1200/wsm.h- Extension
.h- Size
- 47640 bytes
- Lines
- 1856
- 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
linux/spinlock.h
Detected Declarations
struct cw1200_commonstruct wsm_hdrstruct wsm_startup_indstruct wsm_tx_power_rangestruct wsm_configurationstruct wsm_resetstruct wsm_ssidstruct wsm_scan_chstruct wsm_scanstruct wsm_scan_completestruct wsm_tx_confirmstruct wsm_txstruct wsm_rxstruct wsm_eventstruct cw1200_wsm_eventstruct wsm_joinstruct wsm_join_cnfstruct wsm_join_completestruct wsm_set_pmstruct wsm_set_pm_completestruct wsm_set_bss_paramsstruct wsm_add_keystruct wsm_remove_keystruct wsm_set_tx_queue_paramsstruct wsm_tx_queue_paramsstruct wsm_edca_queue_paramsstruct wsm_edca_paramsstruct wsm_switch_channelstruct wsm_startstruct wsm_beacon_transmitstruct wsm_suspend_resumestruct wsm_update_iestruct wsm_map_linkstruct wsm_rcpi_rssi_thresholdstruct wsm_mib_counters_tablestruct wsm_rx_filterstruct wsm_beacon_filter_table_entrystruct wsm_mib_beacon_filter_tablestruct wsm_beacon_filter_controlstruct wsm_operational_modestruct wsm_template_framestruct wsm_protected_mgmt_policystruct wsm_mib_block_ack_policystruct wsm_mib_association_modestruct wsm_tx_rate_retry_policystruct wsm_set_tx_rate_retry_policystruct wsm_ether_type_filter_hdrstruct wsm_ether_type_filter
Annotated Snippet
struct wsm_hdr {
__le16 len;
__le16 id;
};
#define WSM_TX_SEQ_MAX (7)
#define WSM_TX_SEQ(seq) \
((seq & WSM_TX_SEQ_MAX) << 13)
#define WSM_TX_LINK_ID_MAX (0x0F)
#define WSM_TX_LINK_ID(link_id) \
((link_id & WSM_TX_LINK_ID_MAX) << 6)
#define MAX_BEACON_SKIP_TIME_MS 1000
#define WSM_CMD_LAST_CHANCE_TIMEOUT (HZ * 3 / 2)
/* ******************************************************************** */
/* WSM capability */
#define WSM_STARTUP_IND_ID 0x0801
struct wsm_startup_ind {
u16 input_buffers;
u16 input_buffer_size;
u16 status;
u16 hw_id;
u16 hw_subid;
u16 fw_cap;
u16 fw_type;
u16 fw_api;
u16 fw_build;
u16 fw_ver;
char fw_label[128];
u32 config[4];
};
/* ******************************************************************** */
/* WSM commands */
/* 3.1 */
#define WSM_CONFIGURATION_REQ_ID 0x0009
#define WSM_CONFIGURATION_RESP_ID 0x0409
struct wsm_tx_power_range {
int min_power_level;
int max_power_level;
u32 stepping;
};
struct wsm_configuration {
/* [in] */ u32 dot11MaxTransmitMsduLifeTime;
/* [in] */ u32 dot11MaxReceiveLifeTime;
/* [in] */ u32 dot11RtsThreshold;
/* [in, out] */ u8 *dot11StationId;
/* [in] */ const void *dpdData;
/* [in] */ size_t dpdData_size;
/* [out] */ u8 dot11FrequencyBandsSupported;
/* [out] */ u32 supportedRateMask;
/* [out] */ struct wsm_tx_power_range txPowerRange[2];
};
int wsm_configuration(struct cw1200_common *priv,
struct wsm_configuration *arg);
/* 3.3 */
#define WSM_RESET_REQ_ID 0x000A
#define WSM_RESET_RESP_ID 0x040A
struct wsm_reset {
/* [in] */ int link_id;
/* [in] */ bool reset_statistics;
};
int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg);
/* 3.5 */
#define WSM_READ_MIB_REQ_ID 0x0005
#define WSM_READ_MIB_RESP_ID 0x0405
int wsm_read_mib(struct cw1200_common *priv, u16 mib_id, void *buf,
size_t buf_size);
/* 3.7 */
#define WSM_WRITE_MIB_REQ_ID 0x0006
#define WSM_WRITE_MIB_RESP_ID 0x0406
int wsm_write_mib(struct cw1200_common *priv, u16 mib_id, void *buf,
size_t buf_size);
/* 3.9 */
#define WSM_START_SCAN_REQ_ID 0x0007
#define WSM_START_SCAN_RESP_ID 0x0407
Annotation
- Immediate include surface: `linux/spinlock.h`.
- Detected declarations: `struct cw1200_common`, `struct wsm_hdr`, `struct wsm_startup_ind`, `struct wsm_tx_power_range`, `struct wsm_configuration`, `struct wsm_reset`, `struct wsm_ssid`, `struct wsm_scan_ch`, `struct wsm_scan`, `struct wsm_scan_complete`.
- 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.