mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Update cdp_peer_update_last_real_peer
Update function prototype to pass pointer to vdev instead of peer structure Change-Id: I66546b7a524c9d9f90e91876333912e36b99e230 CRs-Fixed: 2407085
This commit is contained in:
parent
8ffebb8063
commit
a52e28ea45
2 changed files with 4 additions and 4 deletions
|
|
@ -1255,7 +1255,7 @@ struct cdp_peer_ops {
|
|||
void (*add_last_real_peer)(struct cdp_pdev *pdev,
|
||||
struct cdp_vdev *vdev, uint8_t *peer_id);
|
||||
bool (*is_vdev_restore_last_peer)(void *peer);
|
||||
void (*update_last_real_peer)(struct cdp_pdev *pdev, void *peer,
|
||||
void (*update_last_real_peer)(struct cdp_pdev *pdev, void *vdev,
|
||||
uint8_t *peer_id, bool restore_last_peer);
|
||||
void (*peer_detach_force_delete)(void *peer);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2019 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
|
||||
|
|
@ -606,7 +606,7 @@ cdp_peer_is_vdev_restore_last_peer(ol_txrx_soc_handle soc, void *peer)
|
|||
*/
|
||||
static inline void
|
||||
cdp_peer_update_last_real_peer(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
|
||||
void *peer, uint8_t *peer_id, bool restore_last_peer)
|
||||
void *vdev, uint8_t *peer_id, bool restore_last_peer)
|
||||
{
|
||||
if (!soc || !soc->ops || !soc->ops->peer_ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_FATAL,
|
||||
|
|
@ -615,7 +615,7 @@ cdp_peer_update_last_real_peer(ol_txrx_soc_handle soc, struct cdp_pdev *pdev,
|
|||
}
|
||||
|
||||
if (soc->ops->peer_ops->update_last_real_peer)
|
||||
return soc->ops->peer_ops->update_last_real_peer(pdev, peer,
|
||||
return soc->ops->peer_ops->update_last_real_peer(pdev, vdev,
|
||||
peer_id, restore_last_peer);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue