How tomaspinho/rtl8821ce works
This is a Linux kernel driver for Realtek RTL8821CE Wi-Fi hardware, with related Bluetooth coexistence support. The principal workflow is kernel/network configuration entering the driver, association and packet handling in its wireless core, then chip-specific control and PCIe transmission to the device. The tree also contains PHY/radio management, eFuse configuration, mesh/P2P, and coexistence features. The README documents the product and operational capabilities, but most call paths are not shown in the supplied excerpts; dashed edges mark architectural relationships that remain unverified here.
Main entry points: rtw_mlme_ext.c Connection management · rtl8821ce_xmit.c PCIe transport · rtl8821c_ops.c RTL8821C operations · hal_com.c Common hardware control
Components 20
Linux integration
- cfg80211 interface
os_dep/linux/ioctl_cfg80211.c - Wireless ioctls
os_dep/linux/ioctl_linux.c
Wireless services
- Connection management
core/rtw_mlme_ext.c - Transmit processing
core/rtw_xmit.c - Receive processing
core/rtw_recv.c
Chip and transport
- eFuse configuration
core/efuse/rtw_efuse.c - Common hardware control
hal/hal_com.c - HALMAC interface
hal/hal_halmac.h - RTL8821C operations
hal/rtl8821c/rtl8821c_ops.c - PCIe transport
hal/rtl8821c/pci/rtl8821ce_xmit.c - HALMAC chip support
hal/halmac/halmac_88xx/halmac_8821c/halmac_init_8821c.c - HALMAC API and registers
hal/halmac/halmac_api.h
Radio management
- PHY and radio control
hal/phydm/phydm_precomp.h - RTL8821C RF tables
hal/phydm/rtl8821c/halhwimg8821c_rf.c
Additional features
- Mesh networking
core/mesh/rtw_mesh.c - Wi-Fi Direct
core/rtw_p2p.c - Bluetooth coexistence
hal/btc/halbtc8822b1ant.c
Other components
- Network manager
- Linux kernel
- RTL8821CE device
Connections 21
- Network manager → cfg80211 interface: configures Wi-Fi
- Linux kernel → cfg80211 interface: exposes interface
- Linux kernel → Wireless ioctls: exposes ioctls
- cfg80211 interface → Connection management: requests connection
- Wireless ioctls → Connection management: requests connection
- Connection management → Common hardware control: controls link
- Transmit processing → PCIe transport: submits frames
- PCIe transport → RTL8821CE device: transfers frames
- RTL8821CE device → PCIe transport: delivers received frames
- PCIe transport → Receive processing: passes received frames
- Common hardware control → HALMAC interface: uses interface
hal/hal_com.c - RTL8821C operations → HALMAC API and registers: uses API
- HALMAC chip support → HALMAC API and registers: implements chip support
- RTL8821C operations → PCIe transport: configures transport
- RTL8821C operations → eFuse configuration: loads eFuse data
- RTL8821C operations → PHY and radio control: configures radio
- PHY and radio control → RTL8821C RF tables: applies RF settings
hal/phydm/rtl8821c/halhwimg8821c_rf.c - Connection management → Mesh networking: supports mesh mode
- Connection management → Wi-Fi Direct: supports peer discovery
- Common hardware control → Bluetooth coexistence: coordinates radio use
- Linux kernel → RTL8821CE device: loads driver for