summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2016-04-29 14:15:47 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-05-18 16:33:28 -0700
commit9db91ba92c6e75f05327438f999aeddbdda968ad (patch)
treeb3305a5f0ad91683deb40c180ca9d134dd9b8e68
parent80dea79636e96b6c5d5150a3180366174ae8232b (diff)
qcacld-3.0: Add target bus type field in qdf context
Add target bus type field in qdf context, as bus type needs to accessed at multiple layer. Change-Id: I62b23d68743fedf205bb3859c0de50568ca09b7a CRs-Fixed: 1009993
-rw-r--r--core/hdd/src/wlan_hdd_driver_ops.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_driver_ops.c b/core/hdd/src/wlan_hdd_driver_ops.c
index c5fc181def9b..0bccd0c76559 100644
--- a/core/hdd/src/wlan_hdd_driver_ops.c
+++ b/core/hdd/src/wlan_hdd_driver_ops.c
@@ -303,12 +303,14 @@ static void hdd_hif_close(void *hif_ctx)
*
* Return: void
*/
-void hdd_init_qdf_ctx(struct device *dev, void *bdev)
+void hdd_init_qdf_ctx(struct device *dev, void *bdev,
+ enum qdf_bus_type bus_type)
{
qdf_device_t qdf_dev = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
qdf_dev->dev = dev;
qdf_dev->drv_hdl = bdev;
+ qdf_dev->bus_type = bus_type;
}
/**
@@ -362,7 +364,7 @@ static int wlan_hdd_probe(struct device *dev, void *bdev, const hif_bus_id *bid,
goto err_hdd_deinit;
}
- hdd_init_qdf_ctx(dev, bdev);
+ hdd_init_qdf_ctx(dev, bdev, bus_type);
ret = hdd_hif_open(dev, bdev, bid, bus_type, reinit);