Kernel Tree For Xiaomi 11 Lite NE 5G
Go to file
Sourav Mohapatra a1bbc2660e qcacld-3.0: Use ref count to sync unload and /dev/wlan access
As a part of driver load, a device file /dev/wlan is created to provide
control to the userspace to turn ON and OFF the wifi. This file also acts
as a holding-the-context entity for the userspace till the host driver
and firmware are properly up and ready as a part of driver probe.

In a scenario where driver probe fails, there can be an occurrence of a
race condition wherein the driver gets unloaded in the probe error path
before the userspace releases the control of the /dev/wlan file.
This leads to a NULL pointer access as the file memory gets deleted as
part of driver unload.

To achieve a serialization between the userspace context, where file is
being accessed, and the driver context, where unload is being done,
implement a simple reference counting through which the driver unload
waits till userspace cleanly releases access to the file.

Change-Id: I3dc214397c53b76111da33dc0ae6db296fc98cb4
CRs-Fixed: 2660321
2020-04-14 16:37:22 -07:00
components qcacld-3.0: Move PN replay detect logic in objmgr peer 2020-04-11 15:57:38 -07:00
configs qcacld-3.0: Enable CFR in Kbuild 2020-04-13 21:13:41 -07:00
core qcacld-3.0: Use ref count to sync unload and /dev/wlan access 2020-04-14 16:37:22 -07:00
os_if qcacld-3.0: cleanup NAN/NDP logging 2020-03-19 20:41:40 -07:00
uapi/linux qcacld-3.0: Add PKTLOG_TYPE_RX_STATBUF 2019-10-09 19:10:36 -07:00
Android.mk qcacld-3.0: Avoid softlink creation for ini 2020-03-24 06:42:37 -07:00
Kbuild qcacld-3.0: Enable CFR in Kbuild 2020-04-13 21:13:41 -07:00
Kconfig qcacld-3.0: Combine all NAN related flags with WLAN_FEATURE_NAN 2019-02-04 10:44:30 -08:00
Makefile
README.txt

This is CNSS WLAN Host Driver for products starting from iHelium