wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacprivacymodefilterwapi.h
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 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 WlanPrivacyModeFilterWapi class
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 3 %
       
    20 */
       
    21 
       
    22 #ifndef WLANPRIVACYMODEFILTERWAPI_H
       
    23 #define WLANPRIVACYMODEFILTERWAPI_H
       
    24 
       
    25 #include "UmacPrivacyModeFilter.h"
       
    26 
       
    27 /**
       
    28 * Class Implements privacy mode WAPI Rx filter
       
    29 * which is used when WAPI is the active privacy mode
       
    30 */
       
    31 class WlanPrivacyModeFilterWapi : public MWlanPrivacyModeFilter
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36     * C++ default constructor.
       
    37     */
       
    38     WlanPrivacyModeFilterWapi() {};
       
    39 
       
    40     /** Dtor */
       
    41     virtual ~WlanPrivacyModeFilterWapi() {};
       
    42 
       
    43     /**
       
    44     * Filtering function for Rx-data frames
       
    45     * @param aFrameheader Header of the received frame
       
    46     * @param aUserDataEnabled is protocol stack side datapath 
       
    47     *        enabled or not
       
    48     * @param aEthernetType Ethernet Type of the received frame
       
    49     * @param aUnicastKeyExists AP <-> client unicast key 
       
    50     *        is configured or not
       
    51     * @param aAesOrTkipOrWapiEncrypted ETrue if the frame is encrypted with AES,
       
    52     *        TKIP or WAPI, EFalse otherwise
       
    53     * @return ETrue if frame can be accepted, EFalse otherwise
       
    54     */
       
    55     virtual TBool operator()( 
       
    56         const SDataFrameHeader& aFrameheader, 
       
    57         TBool aUserDataEnabled, 
       
    58         TUint16 aEthernetType,
       
    59         TBool aUnicastKeyExists, 
       
    60         TBool aAesOrTkipOrWapiEncrypted ) const;
       
    61     
       
    62 private:
       
    63 
       
    64     // Prohibit copy constructor
       
    65     WlanPrivacyModeFilterWapi( const WlanPrivacyModeFilterWapi& );
       
    66     // Prohibit assignment operator
       
    67     WlanPrivacyModeFilterWapi& operator= ( 
       
    68         const WlanPrivacyModeFilterWapi& );
       
    69     };
       
    70 
       
    71 #endif  // WLANPRIVACYMODEFILTERWAPI_H