From f7b542bdb163547d42f07e9744338a2d2e0c06c3 Mon Sep 17 00:00:00 2001 From: Vulupala Shashank Reddy Date: Thu, 21 Oct 2021 10:53:57 +0530 Subject: [PATCH] qcacld-3.0: Change enum pkt_capture_mode to bit map In packet capture component change enum pkt_capture_mode from value to bit map. Change-Id: Ic777b5091e85ed8c906d7e855b5cadb0fa3319d5 CRs-Fixed: 3048502 --- .../dispatcher/inc/wlan_pkt_capture_public_structs.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/pkt_capture/dispatcher/inc/wlan_pkt_capture_public_structs.h b/components/pkt_capture/dispatcher/inc/wlan_pkt_capture_public_structs.h index 3c1316af8957..946d812f4eaf 100644 --- a/components/pkt_capture/dispatcher/inc/wlan_pkt_capture_public_structs.h +++ b/components/pkt_capture/dispatcher/inc/wlan_pkt_capture_public_structs.h @@ -1,5 +1,6 @@ /* * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved. + * Copyright (c) 2021 Qualcomm Innovation Center, Inc. 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 @@ -28,13 +29,11 @@ * @PACKET_CAPTURE_MODE_DISABLE: packet capture mode disable * @PACKET_CAPTURE_MODE_MGMT_ONLY: capture mgmt packets only * @PACKET_CAPTURE_MODE_DATA_ONLY: capture data packets only - * @PACKET_CAPTURE_MODE_DATA_MGMT: capture both data and mgmt packets */ enum pkt_capture_mode { PACKET_CAPTURE_MODE_DISABLE = 0, - PACKET_CAPTURE_MODE_MGMT_ONLY, - PACKET_CAPTURE_MODE_DATA_ONLY, - PACKET_CAPTURE_MODE_DATA_MGMT, + PACKET_CAPTURE_MODE_MGMT_ONLY = BIT(0), + PACKET_CAPTURE_MODE_DATA_ONLY = BIT(1), }; /**