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:
Jeff Johnson 2017-09-29 10:11:03 -07:00 • committed by snandini
commit 174c47a211

View file

@ -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);
}