1 /* 2 * Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for 5 * any purpose with or without fee is hereby granted, provided that the 6 * above copyright notice and this permission notice appear in all 7 * copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 10 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 12 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 13 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 14 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 15 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 16 * PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef WLAN_PMO_PACKET_FILTER_CFG_H__ 20 #define WLAN_PMO_PACKET_FILTER_CFG_H__ 21 22 /* 23 * <ini> 24 * gDisablePacketFilter - Disable packet filter disable 25 * @Min: 0 26 * @Max: 1 27 * @Default: 1 28 * 29 * 30 * Related: None 31 * 32 * Usage: External 33 * 34 * </ini> 35 */ 36 #define CFG_PMO_DISABLE_PKT_FILTER CFG_INI_BOOL( \ 37 "gDisablePacketFilter", \ 38 true, \ 39 "Disable packet filter feature") 40 41 #ifdef WLAN_FEATURE_PACKET_FILTERING 42 /* 43 * <ini> 44 * g_enable_packet_filter_bitmap - Packet filters configuration 45 * @Min: 0 46 * @Max: 63 47 * @Default: 0 48 * 49 * To enable packet filters when target goes to suspend, clear when resume: 50 * bit-0 : IPv6 multicast 51 * bit-1 : IPv4 multicast 52 * bit-2 : IPv4 broadcast 53 * bit-3 : XID - Exchange station Identification packet, solicits the 54 * identification of the receiving station 55 * bit-4 : STP - Spanning Tree Protocol, builds logical loop free topology 56 * bit-5 : DTP/LLC/CDP 57 * DTP - Dynamic Trunking Protocol is used by Cisco switches to 58 * negotiate whether an interconnection between two switches 59 * should be put into access or trunk mode 60 * LLC - Logical link control, used for multiplexing, flow & error 61 * control 62 * CDP - Cisco Discovery Protocol packet contains information 63 * about the cisco devices in the network 64 * 65 * Supported Feature: Packet filtering 66 * 67 * Usage: Internal/External 68 * 69 * </ini> 70 */ 71 #define CFG_PMO_PKT_FILTER CFG_INI_UINT( \ 72 "g_enable_packet_filter_bitmap", \ 73 0, 63, 0, \ 74 CFG_VALUE_OR_DEFAULT, \ 75 "Packet filter bitmap configure") 76 77 #define CFG_PACKET_FILTER_ALL \ 78 CFG(CFG_PMO_PKT_FILTER) \ 79 CFG(CFG_PMO_DISABLE_PKT_FILTER) 80 #else 81 #define CFG_PACKET_FILTER_ALL \ 82 CFG(CFG_PMO_DISABLE_PKT_FILTER) 83 #endif /* WLAN_FEATURE_PACKET_FILTERING */ 84 #endif /* WLAN_PMO_PACKET_FILTER_CFG_H__ */ 85