mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Add wlan_pdev_reset_ospriv() method
There exists a wlan_vdev_reset_ospriv() method for vdev objects but not a wlan_pdev_reset_ospriv() method for pdev objects, so define that method. Change-Id: I338bfbc1b036221dc828ba9f84e847cb8c0fd2e6 CRs-Fixed: 2024018
This commit is contained in:
parent
62a9257868
commit
7b7ea4d649
1 changed files with 16 additions and 0 deletions
|
|
@ -614,6 +614,22 @@ static inline struct pdev_osif_priv *wlan_pdev_get_ospriv(struct wlan_objmgr_pde
|
|||
return pdev->pdev_nif.pdev_ospriv;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_pdev_reset_ospriv() - reset os priv pointer
|
||||
* @pdev: PDEV object
|
||||
*
|
||||
* API to reset OS private pointer in PDEV
|
||||
*
|
||||
* Caller need to acquire lock with wlan_pdev_obj_lock()
|
||||
*
|
||||
* Return: void
|
||||
*/
|
||||
static inline void wlan_pdev_reset_ospriv(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
/* This API is invoked with lock acquired, do not add log prints */
|
||||
pdev->pdev_nif.pdev_ospriv = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_pdev_set_max_vdev_count() - set pdev max vdev count
|
||||
* @pdev: PDEV object
|
||||
|
|
|
|||
Loading…
Reference in a new issue