wlan_bearer/wlanldd/wlan_common/umac_common/src/UmacDot11Idle.cpp
changeset 39 3d23268b50f6
parent 19 629e60dfa279
equal deleted inserted replaced
36:1c425781161e 39:3d23268b50f6
    14 * Description:   Implementation of the UmacDot11Idle class
    14 * Description:   Implementation of the UmacDot11Idle class
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 42 %
    19 * %version: 43 %
    20 */
    20 */
    21 
    21 
    22 #include "config.h"
    22 #include "config.h"
    23 #include "UmacDot11Idle.h"
    23 #include "UmacDot11Idle.h"
    24 #include "UmacContextImpl.h"
    24 #include "UmacContextImpl.h"
   313     // pointers supplied are valid to the point the
   313     // pointers supplied are valid to the point the
   314     // corresponding completion method is called
   314     // corresponding completion method is called
   315     aCtxImpl.IeData( aIeData );
   315     aCtxImpl.IeData( aIeData );
   316     aCtxImpl.IeDataLength( aIeDataLength );
   316     aCtxImpl.IeDataLength( aIeDataLength );
   317 
   317 
       
   318     TInt status(KErrNone);
   318 
   319 
   319     // check do we meet the requirements for the network
   320     // check do we meet the requirements for the network
   320     // and construct necessary objects for establishing the connection
   321     // and construct necessary objects for establishing the connection
   321     if ( InitNetworkConnect( 
   322     if ( ( status = InitNetworkConnect( 
   322             aCtxImpl, 
   323             aCtxImpl, 
   323             aScanResponseFrameBodyLength, 
   324             aScanResponseFrameBodyLength, 
   324             aScanResponseFrameBody ) )
   325             aScanResponseFrameBody ) ) == KErrNone )
   325         {
   326         {
   326         // continue
   327         // continue
   327 
   328 
   328         // make WHA types
   329         // make WHA types
   329         WHA::SSSID ssid;
   330         WHA::SSSID ssid;
   348         }
   349         }
   349     else    // --- InitNetworkConnect failure ---
   350     else    // --- InitNetworkConnect failure ---
   350         {
   351         {
   351         // abort
   352         // abort
   352         ret = EFalse;
   353         ret = EFalse;
   353         OnOidComplete( aCtxImpl, KErrGeneral );
   354         OnOidComplete( aCtxImpl, status );
   354         }
   355         }
   355 
   356 
   356     return ret;    
   357     return ret;    
   357     }
   358     }
   358 
   359