wlan_bearer/wlanldd/wlan_common/umac_common/inc/umacprivacymodefilterwapi.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 02:03:13 +0200
changeset 0 c40eb8fe8501
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Declaration of the WlanPrivacyModeFilterWapi class
*
*/

/*
* %version: 3 %
*/

#ifndef WLANPRIVACYMODEFILTERWAPI_H
#define WLANPRIVACYMODEFILTERWAPI_H

#include "UmacPrivacyModeFilter.h"

/**
* Class Implements privacy mode WAPI Rx filter
* which is used when WAPI is the active privacy mode
*/
class WlanPrivacyModeFilterWapi : public MWlanPrivacyModeFilter
    {
public:

    /**
    * C++ default constructor.
    */
    WlanPrivacyModeFilterWapi() {};

    /** Dtor */
    virtual ~WlanPrivacyModeFilterWapi() {};

    /**
    * Filtering function for Rx-data frames
    * @param aFrameheader Header of the received frame
    * @param aUserDataEnabled is protocol stack side datapath 
    *        enabled or not
    * @param aEthernetType Ethernet Type of the received frame
    * @param aUnicastKeyExists AP <-> client unicast key 
    *        is configured or not
    * @param aAesOrTkipOrWapiEncrypted ETrue if the frame is encrypted with AES,
    *        TKIP or WAPI, EFalse otherwise
    * @return ETrue if frame can be accepted, EFalse otherwise
    */
    virtual TBool operator()( 
        const SDataFrameHeader& aFrameheader, 
        TBool aUserDataEnabled, 
        TUint16 aEthernetType,
        TBool aUnicastKeyExists, 
        TBool aAesOrTkipOrWapiEncrypted ) const;
    
private:

    // Prohibit copy constructor
    WlanPrivacyModeFilterWapi( const WlanPrivacyModeFilterWapi& );
    // Prohibit assignment operator
    WlanPrivacyModeFilterWapi& operator= ( 
        const WlanPrivacyModeFilterWapi& );
    };

#endif  // WLANPRIVACYMODEFILTERWAPI_H