drivers/net/wireless/ti/wlcore/acx.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ti/wlcore/acx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ti/wlcore/acx.c- Extension
.c- Size
- 41497 bytes
- Lines
- 1839
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
acx.hlinux/module.hlinux/platform_device.hlinux/spi/spi.hlinux/slab.hwlcore.hdebug.hwl12xx_80211.hhw_ops.h
Detected Declarations
function Copyrightfunction wl1271_acx_sleep_authfunction wl1271_acx_tx_powerfunction wl1271_acx_feature_cfgfunction wl1271_acx_mem_mapfunction wl1271_acx_rx_msdu_life_timefunction wl1271_acx_slotfunction wl1271_acx_group_address_tblfunction wl1271_acx_service_period_timeoutfunction wl1271_acx_rts_thresholdfunction wl1271_acx_dco_itrim_paramsfunction wl1271_acx_beacon_filter_optfunction wl1271_acx_beacon_filter_tablefunction wl1271_acx_conn_monit_paramsfunction wl1271_acx_sg_enablefunction wl12xx_acx_sg_cfgfunction wl1271_acx_cca_thresholdfunction wl1271_acx_bcn_dtim_optionsfunction wl1271_acx_aidfunction wl1271_acx_event_mbox_maskfunction wl1271_acx_set_preamblefunction wl1271_acx_cts_protectfunction wl1271_acx_statisticsfunction wl1271_acx_sta_rate_policiesfunction wl1271_acx_ap_rate_policyfunction wl1271_acx_ac_cfgfunction wl1271_acx_tid_cfgfunction wl1271_acx_frag_thresholdfunction wl1271_acx_tx_config_optionsfunction wl12xx_acx_mem_cfgfunction wl1271_acx_init_mem_configfunction wl1271_acx_init_rx_interruptfunction wl1271_acx_bet_enablefunction wl1271_acx_arp_ip_filterfunction wl1271_acx_pm_configfunction wl1271_acx_keep_alive_modefunction wl1271_acx_keep_alive_configfunction wl1271_acx_rssi_snr_triggerfunction wl1271_acx_rssi_snr_avg_weightsfunction wl1271_acx_set_ht_capabilitiesfunction wl1271_acx_set_ht_informationfunction wl12xx_acx_set_ba_initiator_policyfunction wl12xx_acx_set_ba_receiver_sessionfunction wl12xx_acx_tsf_infofunction wl1271_acx_ps_rx_streamingfunction wl1271_acx_ap_max_tx_retryfunction wl12xx_acx_config_psfunction wl1271_acx_set_inconnection_sta
Annotated Snippet
if (r->ie == WLAN_EID_VENDOR_SPECIFIC) {
/* only one vendor specific ie allowed */
if (vendor_spec)
continue;
/* for vendor specific rules configure the
additional fields */
memcpy(&(ie_table->table[idx]), r->oui,
CONF_BCN_IE_OUI_LEN);
idx += CONF_BCN_IE_OUI_LEN;
ie_table->table[idx++] = r->type;
memcpy(&(ie_table->table[idx]), r->version,
CONF_BCN_IE_VER_LEN);
idx += CONF_BCN_IE_VER_LEN;
vendor_spec = true;
}
ie_table->num_ie++;
}
ret = wl1271_cmd_configure(wl, ACX_BEACON_FILTER_TABLE,
ie_table, sizeof(*ie_table));
if (ret < 0) {
wl1271_warning("failed to set beacon filter table: %d", ret);
goto out;
}
out:
kfree(ie_table);
return ret;
}
#define ACX_CONN_MONIT_DISABLE_VALUE 0xffffffff
int wl1271_acx_conn_monit_params(struct wl1271 *wl, struct wl12xx_vif *wlvif,
bool enable)
{
struct acx_conn_monit_params *acx;
u32 threshold = ACX_CONN_MONIT_DISABLE_VALUE;
u32 timeout = ACX_CONN_MONIT_DISABLE_VALUE;
int ret;
wl1271_debug(DEBUG_ACX, "acx connection monitor parameters: %s",
enable ? "enabled" : "disabled");
acx = kzalloc_obj(*acx);
if (!acx) {
ret = -ENOMEM;
goto out;
}
if (enable) {
threshold = wl->conf.conn.synch_fail_thold;
timeout = wl->conf.conn.bss_lose_timeout;
}
acx->role_id = wlvif->role_id;
acx->synch_fail_thold = cpu_to_le32(threshold);
acx->bss_lose_timeout = cpu_to_le32(timeout);
ret = wl1271_cmd_configure(wl, ACX_CONN_MONIT_PARAMS,
acx, sizeof(*acx));
if (ret < 0) {
wl1271_warning("failed to set connection monitor "
"parameters: %d", ret);
goto out;
}
out:
kfree(acx);
return ret;
}
int wl1271_acx_sg_enable(struct wl1271 *wl, bool enable)
{
struct acx_bt_wlan_coex *pta;
int ret;
wl1271_debug(DEBUG_ACX, "acx sg enable");
pta = kzalloc_obj(*pta);
if (!pta) {
ret = -ENOMEM;
goto out;
}
if (enable)
pta->enable = wl->conf.sg.state;
else
Annotation
- Immediate include surface: `acx.h`, `linux/module.h`, `linux/platform_device.h`, `linux/spi/spi.h`, `linux/slab.h`, `wlcore.h`, `debug.h`, `wl12xx_80211.h`.
- Detected declarations: `function Copyright`, `function wl1271_acx_sleep_auth`, `function wl1271_acx_tx_power`, `function wl1271_acx_feature_cfg`, `function wl1271_acx_mem_map`, `function wl1271_acx_rx_msdu_life_time`, `function wl1271_acx_slot`, `function wl1271_acx_group_address_tbl`, `function wl1271_acx_service_period_timeout`, `function wl1271_acx_rts_threshold`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: integration 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.