wlan_bearer/wlanldd/wlan_common/umac_common/inc/UmacPrivacyModeFilter.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Declaration of the MWlanPrivacyModeFilter class
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 8 %
       
    20 */
       
    21 
       
    22 #ifndef MWLANPRIVACYMODEFILTER_H
       
    23 #define MWLANPRIVACYMODEFILTER_H
       
    24 
       
    25 struct SDataFrameHeader;
       
    26 
       
    27 /**
       
    28 * Class declares an interface for privacy mode rx filters
       
    29 */
       
    30 class MWlanPrivacyModeFilter
       
    31     {
       
    32 public:
       
    33 
       
    34     /** Dtor */
       
    35     virtual ~MWlanPrivacyModeFilter() {};
       
    36 
       
    37     /**
       
    38     * Filtering function for Rx-data frames
       
    39     * @param aFrameheader Header of the received frame
       
    40     * @param aUserDataEnabled is protocol stack side datapath 
       
    41     *        enabled or not
       
    42     * @param aEthernetType Ethernet Type of the received frame
       
    43     * @param aUnicastKeyExists AP <-> client unicast key 
       
    44     *        is configured or not
       
    45     * @param aAesOrTkipOrWapiEncrypted ETrue if the frame is encrypted with AES,
       
    46     *        TKIP or WAPI, EFalse otherwise
       
    47     * @return ETrue if frame can be accepted, EFalse otherwise
       
    48     */
       
    49     virtual TBool operator()( 
       
    50         const SDataFrameHeader& aFrameheader, 
       
    51         TBool aUserDataEnabled, 
       
    52         TUint16 aEthernetType,
       
    53         TBool aUnicastKeyExists, 
       
    54         TBool aAesOrTkipOrWapiEncrypted ) const = 0;                
       
    55     };
       
    56 
       
    57 #endif  // MWLANPRIVACYMODEFILTER_H