mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: Populate pdev and vdev legacy_osif_priv pointers
Currently the legacy_osif_priv pointers in the Object Manager's pdev and vdev objects are not populated. As a result it is not possible to get the HDD object given an Object Manager object. Populate these pointers to allow these lookups. Change-Id: If5ee0c785d0496ee4f06f7d230fbcf6ba957b610 CRs-Fixed: 2119155
This commit is contained in:
parent
a713916eae
commit
174c47a211
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ static void hdd_init_pdev_os_priv(struct hdd_context *hdd_ctx,
|
|||
{
|
||||
/* Initialize the OS private structure*/
|
||||
os_priv->wiphy = hdd_ctx->wiphy;
|
||||
os_priv->legacy_osif_priv = hdd_ctx;
|
||||
wlan_cfg80211_scan_priv_init(hdd_ctx->hdd_pdev);
|
||||
}
|
||||
|
||||
|
|
@ -56,6 +57,7 @@ static void hdd_init_vdev_os_priv(struct hdd_adapter *adapter,
|
|||
{
|
||||
/* Initialize the vdev OS private structure*/
|
||||
os_priv->wdev = adapter->dev->ieee80211_ptr;
|
||||
os_priv->legacy_osif_priv = adapter;
|
||||
wlan_cfg80211_tdls_priv_init(os_priv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue