Asutosh Mohapatra 35eae45f4e qcacld-3.0: Handling Dummy Netdev Allocation in Kernel 6.13+
With the introduction of kernel version 6.13, the init_dummy_netdev
symbol has been made static and is no longer exported. Consequently,
drivers must now utilize alloc_netdev_dummy() to allocate and
initialize dummy network devices.

The current implementation defines the net_device structure as a
static instance within the driver. However, since alloc_netdev_dummy()
dynamically allocates and initializes the dummy netdev, assigning its
return value to a statically defined structure is incorrect and leads
to undefined behavior.

To address this, a pointer to a net_device structure should be added to
the host context. The driver should store the pointer returned by
alloc_netdev_dummy() in this new member. Additionally, appropriate
cleanup logic must be implemented to free the allocated dummy netdev
during driver teardown.

Change-Id: I8eda57fd3ece411579f2d3eb2f1249c2905bbeac
CRs-Fixed: 4158431
2025-06-09 23:06:40 -07:00
2025-06-09 21:11:51 -07:00
2023-05-31 21:20:30 -07:00

This is CNSS WLAN Host Driver for products starting from iHelium
Description
No description provided
Readme 217 MiB
Languages
C 98.9%
C++ 0.7%
Makefile 0.3%
Starlark 0.1%