qcacld-3.0: Remove cds_ctx param from register_ocb_peer()
The cdp_peer_ops register_ocb_peer() method currently takes a cds_ctx
parameter. Converged datapath APIs should not require the MCL-specific
CDS context, and in fact it is not required by the MCL implementation,
so remove it from all OCB peer registration APIs.
Change-Id: I873eeb472f463ac76f30de5a9013783565be916d
CRs-Fixed: 2103451
diff --git a/core/hdd/src/wlan_hdd_ocb.c b/core/hdd/src/wlan_hdd_ocb.c
index 9144309..832b60f 100644
--- a/core/hdd/src/wlan_hdd_ocb.c
+++ b/core/hdd/src/wlan_hdd_ocb.c
@@ -239,7 +239,7 @@
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
void *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
- qdf_status = cdp_peer_register_ocb_peer(soc, hdd_ctx->pcds_context,
+ qdf_status = cdp_peer_register_ocb_peer(soc,
adapter->macAddressCurrent.bytes,
&peer_id);
if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
@@ -478,7 +478,7 @@
ENTER_DEV(dev);
- hdd_ctx = WLAN_HDD_GET_CTX(pAdapter);
+ hdd_ctx = WLAN_HDD_GET_CTX(adapter);
rc = wlan_hdd_validate_context(hdd_ctx);
if (0 != rc)
return rc;