qcacld-3.0: Refactor HDD according to cdp_peer_get_vdev_by_sta_id
Currently, cdp_peer_get_vdev_by_sta_id takes as input the sta_id. As a part of cleaning up the usage of sta_id, replace it by peer mac address. Change-Id: Ibb7f3489899ac3fda48ad5e54891cd2d7623c6c8 CRs-Fixed: 2507219
This commit is contained in:

committed by
nshrivas

parent
6a8802ff1a
commit
a93de1c382
@@ -402,8 +402,17 @@ static inline bool hdd_is_roam_sync_in_progress(struct csr_roam_info *roaminfo)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* hdd_update_dp_vdev_flags() - update datapath vdev flags
|
||||||
|
* @cbk_data: callback data
|
||||||
|
* @mac_addr: mac address of the station
|
||||||
|
* @vdev_param: vdev parameter
|
||||||
|
* @is_link_up: link state up or down
|
||||||
|
*
|
||||||
|
* Return: QDF status
|
||||||
|
*/
|
||||||
QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
||||||
uint8_t sta_id,
|
struct qdf_mac_addr *mac_addr,
|
||||||
uint32_t vdev_param,
|
uint32_t vdev_param,
|
||||||
bool is_link_up);
|
bool is_link_up);
|
||||||
|
|
||||||
|
@@ -2040,17 +2040,8 @@ QDF_STATUS hdd_change_peer_state(struct hdd_adapter *adapter,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* hdd_update_dp_vdev_flags() - update datapath vdev flags
|
|
||||||
* @cbk_data: callback data
|
|
||||||
* @sta_id: station id
|
|
||||||
* @vdev_param: vdev parameter
|
|
||||||
* @is_link_up: link state up or down
|
|
||||||
*
|
|
||||||
* Return: QDF status
|
|
||||||
*/
|
|
||||||
QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
||||||
uint8_t sta_id,
|
struct qdf_mac_addr *mac_addr,
|
||||||
uint32_t vdev_param,
|
uint32_t vdev_param,
|
||||||
bool is_link_up)
|
bool is_link_up)
|
||||||
{
|
{
|
||||||
@@ -2075,7 +2066,7 @@ QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
|||||||
if (!hdd_ctx->tdls_nap_active)
|
if (!hdd_ctx->tdls_nap_active)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
data_vdev = cdp_peer_get_vdev_by_sta_id(soc, pdev, sta_id);
|
data_vdev = cdp_peer_get_vdev_by_peer_addr(soc, pdev, *mac_addr);
|
||||||
if (!data_vdev) {
|
if (!data_vdev) {
|
||||||
status = QDF_STATUS_E_FAILURE;
|
status = QDF_STATUS_E_FAILURE;
|
||||||
return status;
|
return status;
|
||||||
|
Reference in New Issue
Block a user