wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_operation_check_rcpi.cpp
branchRCL_3
changeset 7 0abc8c98be24
parent 0 c40eb8fe8501
child 14 13838cf40350
equal deleted inserted replaced
6:e0f767079796 7:0abc8c98be24
    14 * Description:  Statemachine for requesting RCPI values for roaming.
    14 * Description:  Statemachine for requesting RCPI values for roaming.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 21 %
    19 * %version: 22 %
    20 */
    20 */
    21 
    21 
    22 #include "core_operation_check_rcpi.h"
    22 #include "core_operation_check_rcpi.h"
    23 #include "core_operation_roam.h"
    23 #include "core_operation_roam.h"
    24 #include "core_operation_handle_bss_lost.h"
    24 #include "core_operation_handle_bss_lost.h"
   297             {
   297             {
   298             operation_state_m = core_state_rcpi_trigger;
   298             operation_state_m = core_state_rcpi_trigger;
   299 
   299 
   300             DEBUG( "core_operation_check_rcpi_c::next_state() - roamed successfully" );
   300             DEBUG( "core_operation_check_rcpi_c::next_state() - roamed successfully" );
   301                         
   301                         
   302             /**
       
   303              * If moving from weak level to normal, notify client.
       
   304              */
       
   305             if ( server_m->get_connection_data()->last_rcp_class() != core_rcp_normal )
       
   306                 {
       
   307                 DEBUG( "core_operation_check_rcpi_c::next_state() - sending a notification about the normal signal level" );
       
   308 
       
   309                 u8_t buf[5];
       
   310                 buf[0] = static_cast<u8_t>( core_rcp_normal );
       
   311                 buf[1] = server_m->get_connection_data()->current_ap_data()->rcpi();
       
   312                 
       
   313                 adaptation_m->notify(
       
   314                     core_notification_rcp_changed,
       
   315                     sizeof( buf ),
       
   316                     buf );
       
   317                 server_m->get_connection_data()->set_last_rcp_class( core_rcp_normal );
       
   318                 }
       
   319 
       
   320             /** 
   302             /** 
   321              * Send an indication to adaptation to indicate that this
   303              * Send an indication to adaptation to indicate that this
   322              * roam attempt has been completed.
   304              * roam attempt has been completed.
   323              */  
   305              */  
   324             adaptation_m->notify(                
   306             adaptation_m->notify(