diff options
| author | Prashanth Bhatta <bhattap@qca.qualcomm.com> | 2014-01-30 18:44:03 -0800 |
|---|---|---|
| committer | Prakash Dhavali <pdhavali@qca.qualcomm.com> | 2014-01-31 20:36:00 -0800 |
| commit | fdf9f0897055f48a94dca9da3ccb3c2090a5b3dc (patch) | |
| tree | 7188fbef845e38dabd16c3133bf9a299432d6697 | |
| parent | 8fe9f2ba3fe9c03f759091640b0ee43cef898685 (diff) | |
qcacld: hdd: Fix version dump during SSR
During SSR, version dump code crashes because of using wrong
device pointer to get the adapter context. Fixed the issue by
getting the adapter context using hardware MAC address.
Change-Id: I54bb5aad952259ad64924c6983f0112ffc48e244
CRs-fixed: 589633
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_early_suspend.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CORE/HDD/src/wlan_hdd_early_suspend.c b/CORE/HDD/src/wlan_hdd_early_suspend.c index d4ba45286df4..1fdfff007156 100644 --- a/CORE/HDD/src/wlan_hdd_early_suspend.c +++ b/CORE/HDD/src/wlan_hdd_early_suspend.c @@ -1830,7 +1830,10 @@ VOS_STATUS hdd_wlan_re_init(void *hif_sc) goto err_vosclose; } #if defined(QCA_WIFI_2_0) && !defined(QCA_WIFI_ISOC) - pAdapter = WLAN_HDD_GET_PRIV_PTR((struct net_device *)pHddCtx->parent_dev); + + /* Get the Adapter context based on hardware address */ + pAdapter = hdd_get_adapter_by_macaddr(pHddCtx, + pHddCtx->cfg_ini->intfMacAddr[0].bytes); if ((NULL == pAdapter)) { |
