qcacld-3.0: Create adapter features update work for all interfaces
Currently the adapter features update work is created only for the STA types of interfaces, since this feature is only used for STA mode. But this can cause an issue when a SAP interface is changed to STA runtime, since the workqueue will not be initialized (since create adapter was of SAP type) but it will be attempted to be destroyed (since the adapter is of STA type) during the cleanup of adapter. The creation/destruction of this workqueue cannot be done in the start/stop adapter, since the rtnl lock will be held during this operation and the cancelling of the adapter features workqueue can cause it to wait on rtnl lock, leading to a possible scenario of a deadlock. Hence as a mitigation for this issue, we create the adapter features update workqueue for all the interfaces and clean it up for all the interfaces as well. Change-Id: I598480e9f248f50e46764f7f32b876a8efaeee8d CRs-Fixed: 2811934
Loading
Please register or sign in to comment