wlan_bearer/wlanldd/wlan_common/umac_common/src/umacdot11ibssnormalmode.cpp
branchRCL_3
changeset 14 13838cf40350
parent 0 c40eb8fe8501
equal deleted inserted replaced
12:af3fb27c7511 14:13838cf40350
     1 /*
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 * Description:   Implementation of the WlanDot11IbssNormalMode class.
    14 * Description:   Implementation of the WlanDot11IbssNormalMode class.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 14 %
    19 * %version: 15 %
    20 */
    20 */
    21 
    21 
    22 #include "config.h"
    22 #include "config.h"
    23 #include "umacdot11ibssnormalmode.h"
    23 #include "umacdot11ibssnormalmode.h"
    24 #include "UmacContextImpl.h"
    24 #include "UmacContextImpl.h"
   108     // pointers supplied are valid to the point the
   108     // pointers supplied are valid to the point the
   109     // corresponding completion method is called
   109     // corresponding completion method is called
   110     aCtxImpl.IeData( aIeData );
   110     aCtxImpl.IeData( aIeData );
   111     aCtxImpl.IeDataLength( aIeDataLength );
   111     aCtxImpl.IeDataLength( aIeDataLength );
   112 
   112 
       
   113     TInt status(KErrNone);
   113 
   114 
   114     // check do we meet the requirements for the network
   115     // check do we meet the requirements for the network
   115     // and construct necessary objects for establishing the connection
   116     // and construct necessary objects for establishing the connection
   116     if ( InitNetworkConnect( 
   117     if ( ( status = InitNetworkConnect( 
   117             aCtxImpl,
   118             aCtxImpl,
   118             aScanResponseFrameBodyLength, 
   119             aScanResponseFrameBodyLength, 
   119             aScanResponseFrameBody ) )
   120             aScanResponseFrameBody ) ) == KErrNone )
   120         {
   121         {
   121         // continue
   122         // continue
   122 
   123 
   123         // make WHA types
   124         // make WHA types
   124         WHA::SSSID ssid;
   125         WHA::SSSID ssid;
   132         }
   133         }
   133     else    // --- InitNetworkConnect failure ---
   134     else    // --- InitNetworkConnect failure ---
   134         {
   135         {
   135         // abort
   136         // abort
   136         ret = EFalse;
   137         ret = EFalse;
   137         OnOidComplete( aCtxImpl, KErrGeneral );
   138         OnOidComplete( aCtxImpl, status );
   138         }
   139         }
   139 
   140 
   140     return ret;
   141     return ret;
   141     }
   142     }
   142 
   143