qcacld-3.0: Fix pdev undeclared issue

In function hdd_ocb_register_sta(), it will call function
cdp_peer_register(soc, (struct cdp_pdev *)pdev, &sta_desc), but pdev
is undeclared.

Change-Id: Ie0341b8ff880c21960a655399378b519fc240631
CRs-Fixed: 2595641
This commit is contained in:
Yu Ouyang 2020-01-02 14:47:34 +08:00 • committed by nshrivas
commit 1d8f5212b6

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2011-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@ -219,6 +219,7 @@ static int hdd_ocb_register_sta(struct hdd_adapter *adapter)
struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
struct ol_txrx_ops txrx_ops;
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
struct cdp_pdev *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
qdf_status = cdp_peer_register_ocb_peer(soc,
adapter->mac_addr.bytes);