wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_operation_check_rcpi.cpp
branchRCL_3
changeset 14 13838cf40350
parent 7 0abc8c98be24
equal deleted inserted replaced
12:af3fb27c7511 14:13838cf40350
    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: 22 %
    19 * %version: 23 %
    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"
   363                 DEBUG( "core_operation_check_rcpi_c::next_state() - sending a notification about the weak signal level" );
   363                 DEBUG( "core_operation_check_rcpi_c::next_state() - sending a notification about the weak signal level" );
   364 
   364 
   365                 u8_t buf[5];
   365                 u8_t buf[5];
   366                 buf[0] = static_cast<u8_t>( core_rcp_weak );
   366                 buf[0] = static_cast<u8_t>( core_rcp_weak );
   367                 buf[1] = static_cast<u8_t>( current_rcpi_m );
   367                 buf[1] = static_cast<u8_t>( current_rcpi_m );
   368                   
   368 
   369                 /**
       
   370                  * Get current IAP Id value and add it to the weak list. 
       
   371                  */
       
   372                 server_m->get_core_settings().add_iap_id_to_weak_iap_list(
       
   373                      server_m->get_connection_data()->iap_data().iap_id());
       
   374                  
       
   375                 adaptation_m->notify(
   369                 adaptation_m->notify(
   376                     core_notification_rcp_changed,
   370                     core_notification_rcp_changed,
   377                     sizeof( buf ),
   371                     sizeof( buf ),
   378                     buf );
   372                     buf );
   379                 server_m->get_connection_data()->set_last_rcp_class( core_rcp_weak ); 
   373                 server_m->get_connection_data()->set_last_rcp_class( core_rcp_weak );