From 174c47a21192c67931b13f8115ebf664ae77578f Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Fri, 29 Sep 2017 10:11:03 -0700 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_object_manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_object_manager.c b/core/hdd/src/wlan_hdd_object_manager.c index 4b690a9eeb49..3ea998f8b57c 100644 --- a/core/hdd/src/wlan_hdd_object_manager.c +++ b/core/hdd/src/wlan_hdd_object_manager.c @@ -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); }