wlan_bearer/wlanengine/wlan_common/wlanengine_common_3.1/src/core_operation_configure_multicast_group.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Statemachine for configuring multicast address to drivers |
14 * Description: Statemachine for configuring multicast address to drivers |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 /* |
|
19 * %version: 7 % |
|
20 */ |
18 |
21 |
19 #include "core_operation_configure_multicast_group.h" |
22 #include "core_operation_configure_multicast_group.h" |
20 #include "core_server.h" |
23 #include "core_server.h" |
21 #include "am_debug.h" |
24 #include "am_debug.h" |
22 |
25 |
58 switch ( operation_state_m ) |
61 switch ( operation_state_m ) |
59 { |
62 { |
60 case core_state_init: |
63 case core_state_init: |
61 { |
64 { |
62 operation_state_m = core_state_req_configure_multicast_group; |
65 operation_state_m = core_state_req_configure_multicast_group; |
63 |
66 |
|
67 if ( !server_m->get_core_settings().is_connected() ) |
|
68 { |
|
69 DEBUG( "core_operation_configure_multicast_group_c::next_state() - not connected, nothing to do" ); |
|
70 |
|
71 return core_error_general; |
|
72 } |
|
73 |
64 drivers_m->configure_multicast_group( |
74 drivers_m->configure_multicast_group( |
65 request_id_m, |
75 request_id_m, |
66 is_join_m, |
76 is_join_m, |
67 multicast_addr_m ); |
77 multicast_addr_m ); |
|
78 |
68 break; |
79 break; |
69 } |
80 } |
70 case core_state_req_configure_multicast_group: |
81 case core_state_req_configure_multicast_group: |
71 { |
82 { |
72 DEBUG( "core_operation_configure_multicast_group_c::next_state() - DONE" ); |
83 DEBUG( "core_operation_configure_multicast_group_c::next_state() - DONE" ); |