drivers/net/wireless/intel/iwlwifi/mld/coex.c
Source file repositories/reference/linux-study-clean/drivers/net/wireless/intel/iwlwifi/mld/coex.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/intel/iwlwifi/mld/coex.c- Extension
.c- Size
- 994 bytes
- Lines
- 41
- 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
fw/api/coex.hcoex.hmld.hhcmd.hmlo.h
Detected Declarations
function Copyrightfunction iwl_mld_handle_bt_coex_notif
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
/*
* Copyright (C) 2024-2025 Intel Corporation
*/
#include "fw/api/coex.h"
#include "coex.h"
#include "mld.h"
#include "hcmd.h"
#include "mlo.h"
int iwl_mld_send_bt_init_conf(struct iwl_mld *mld)
{
struct iwl_bt_coex_cmd cmd = {
.mode = cpu_to_le32(BT_COEX_NW),
.enabled_modules = cpu_to_le32(BT_COEX_MPLUT_ENABLED |
BT_COEX_HIGH_BAND_RET),
};
return iwl_mld_send_cmd_pdu(mld, BT_CONFIG, &cmd);
}
void iwl_mld_handle_bt_coex_notif(struct iwl_mld *mld,
struct iwl_rx_packet *pkt)
{
const struct iwl_bt_coex_profile_notif *notif = (void *)pkt->data;
const struct iwl_bt_coex_profile_notif zero_notif = {};
/* zeroed structure means that BT is OFF */
bool bt_is_active = memcmp(notif, &zero_notif, sizeof(*notif));
if (bt_is_active == mld->bt_is_active)
return;
IWL_DEBUG_INFO(mld, "BT was turned %s\n", bt_is_active ? "ON" : "OFF");
mld->bt_is_active = bt_is_active;
iwl_mld_emlsr_check_bt(mld);
}
Annotation
- Immediate include surface: `fw/api/coex.h`, `coex.h`, `mld.h`, `hcmd.h`, `mlo.h`.
- Detected declarations: `function Copyright`, `function iwl_mld_handle_bt_coex_notif`.
- 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.