qcacld-3.0: Use vdev_id in wlan_hdd_set_filter()
Currently wlan_hdd_set_filter() uses sessionId as a parameter name. In order to align with converged naming, and to adhere to the Linux coding style, change this to vdev_id. Change-Id: Icf284b27bf72df0bac1c3b7a2a60b5a7129b49e5 CRs-Fixed: 2404328
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -52,13 +52,13 @@ int hdd_disable_default_pkt_filters(struct hdd_adapter *adapter);
|
|||||||
* wlan_hdd_set_filter() - Set packet filter
|
* wlan_hdd_set_filter() - Set packet filter
|
||||||
* @hdd_ctx: Global HDD context
|
* @hdd_ctx: Global HDD context
|
||||||
* @request: Packet filter request struct
|
* @request: Packet filter request struct
|
||||||
* @sessionId: Target session for the request
|
* @vdev_id: Target vdev for the request
|
||||||
*
|
*
|
||||||
* Return: 0 on success, non-zero on error
|
* Return: 0 on success, non-zero on error
|
||||||
*/
|
*/
|
||||||
int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
||||||
struct pkt_filter_cfg *request,
|
struct pkt_filter_cfg *request,
|
||||||
uint8_t sessionId);
|
uint8_t vdev_id);
|
||||||
|
|
||||||
#else /* WLAN_FEATURE_PACKET_FILTERING */
|
#else /* WLAN_FEATURE_PACKET_FILTERING */
|
||||||
|
|
||||||
|
@@ -102,7 +102,7 @@ int hdd_disable_default_pkt_filters(struct hdd_adapter *adapter)
|
|||||||
|
|
||||||
int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
||||||
struct pkt_filter_cfg *request,
|
struct pkt_filter_cfg *request,
|
||||||
uint8_t sessionId)
|
uint8_t vdev_id)
|
||||||
{
|
{
|
||||||
struct pmo_rcv_pkt_fltr_cfg *pmo_set_pkt_fltr_req = NULL;
|
struct pmo_rcv_pkt_fltr_cfg *pmo_set_pkt_fltr_req = NULL;
|
||||||
struct pmo_rcv_pkt_fltr_clear_param *pmo_clr_pkt_fltr_param = NULL;
|
struct pmo_rcv_pkt_fltr_clear_param *pmo_clr_pkt_fltr_param = NULL;
|
||||||
@@ -215,7 +215,7 @@ int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
|||||||
|
|
||||||
status= ucfg_pmo_set_pkt_filter(hdd_ctx->psoc,
|
status= ucfg_pmo_set_pkt_filter(hdd_ctx->psoc,
|
||||||
pmo_set_pkt_fltr_req,
|
pmo_set_pkt_fltr_req,
|
||||||
sessionId);
|
vdev_id);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
hdd_err("Failure to execute Set Filter");
|
hdd_err("Failure to execute Set Filter");
|
||||||
status = QDF_STATUS_E_INVAL;
|
status = QDF_STATUS_E_INVAL;
|
||||||
@@ -238,7 +238,7 @@ int wlan_hdd_set_filter(struct hdd_context *hdd_ctx,
|
|||||||
pmo_clr_pkt_fltr_param->filter_id = request->filter_id;
|
pmo_clr_pkt_fltr_param->filter_id = request->filter_id;
|
||||||
status = ucfg_pmo_clear_pkt_filter(hdd_ctx->psoc,
|
status = ucfg_pmo_clear_pkt_filter(hdd_ctx->psoc,
|
||||||
pmo_clr_pkt_fltr_param,
|
pmo_clr_pkt_fltr_param,
|
||||||
sessionId);
|
vdev_id);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
hdd_err("Failure to execute Clear Filter");
|
hdd_err("Failure to execute Clear Filter");
|
||||||
status = QDF_STATUS_E_INVAL;
|
status = QDF_STATUS_E_INVAL;
|
||||||
|
Reference in New Issue
Block a user