Преглед на файлове

qcacld-3.0: Fix incompatible pointer compilation error in OCB

Typecast adapter->hdd_vdev to pointer of struct cdp_ctrl_objmgr_vdev
when invoking cdp_vdev_register().

Change-Id: Idc284726e1008ef69ec6ab0b53bc984f2bbb16b5
CRs-Fixed: 2313265
Lin Bai преди 6 години
родител
ревизия
05195a5483
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      core/hdd/src/wlan_hdd_ocb.c

+ 2 - 1
core/hdd/src/wlan_hdd_ocb.c

@@ -256,7 +256,8 @@ static int hdd_ocb_register_sta(struct hdd_adapter *adapter)
 	cdp_vdev_register(soc,
 		(struct cdp_vdev *)cdp_get_vdev_from_vdev_id(soc,
 		(struct cdp_pdev *)pdev, adapter->session_id),
-		adapter, adapter->vdev, &txrx_ops);
+		adapter, (struct cdp_ctrl_objmgr_vdev *)adapter->vdev,
+		&txrx_ops);
 	txrx_ops.rx.stats_rx = hdd_tx_rx_collect_connectivity_stats_info;
 	adapter->tx_fn = txrx_ops.tx.tx;