diff --git a/core/hdd/inc/wlan_hdd_packet_filter_api.h b/core/hdd/inc/wlan_hdd_packet_filter_api.h index ca239ad988..dee4eb36d4 100644 --- a/core/hdd/inc/wlan_hdd_packet_filter_api.h +++ b/core/hdd/inc/wlan_hdd_packet_filter_api.h @@ -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 * 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 * @hdd_ctx: Global HDD context * @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 */ int wlan_hdd_set_filter(struct hdd_context *hdd_ctx, struct pkt_filter_cfg *request, - uint8_t sessionId); + uint8_t vdev_id); #else /* WLAN_FEATURE_PACKET_FILTERING */ diff --git a/core/hdd/src/wlan_hdd_packet_filter.c b/core/hdd/src/wlan_hdd_packet_filter.c index 8125713c0b..dee12e768c 100644 --- a/core/hdd/src/wlan_hdd_packet_filter.c +++ b/core/hdd/src/wlan_hdd_packet_filter.c @@ -102,7 +102,7 @@ int hdd_disable_default_pkt_filters(struct hdd_adapter *adapter) int wlan_hdd_set_filter(struct hdd_context *hdd_ctx, 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_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, pmo_set_pkt_fltr_req, - sessionId); + vdev_id); if (QDF_IS_STATUS_ERROR(status)) { hdd_err("Failure to execute Set Filter"); 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; status = ucfg_pmo_clear_pkt_filter(hdd_ctx->psoc, pmo_clr_pkt_fltr_param, - sessionId); + vdev_id); if (QDF_IS_STATUS_ERROR(status)) { hdd_err("Failure to execute Clear Filter"); status = QDF_STATUS_E_INVAL;