35eae45f4e9437c081059002ca375cf444f11733
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
This is CNSS WLAN Host Driver for products starting from iHelium
Description
Languages
C
98.9%
C++
0.7%
Makefile
0.3%
Starlark
0.1%