2828
2929#define  TRACE_GROUP  "wsmg"
3030
31+ #ifdef  HAVE_WS 
32+ 
3133int  ws_management_node_init (
3234    int8_t  interface_id ,
3335    char  * network_name_ptr ,
3436    fhss_timer_t  * fhss_timer_ptr )
3537{
36- #ifdef  HAVE_WS 
3738    protocol_interface_info_entry_t  * cur ;
3839
3940    cur  =  protocol_stack_interface_info_get_by_id (interface_id );
@@ -46,12 +47,6 @@ int ws_management_node_init(
4647    strncpy (cur -> ws_info -> network_name ,network_name_ptr ,32 );
4748    cur -> ws_info -> fhss_timer_ptr  =  fhss_timer_ptr ;
4849    return  0 ;
49- #else 
50-     (void )interface_id ;
51-     (void )network_name_ptr ;
52-     (void )fhss_timer_ptr ;
53-     return  -1 ;
54- #endif 
5550}
5651
5752int  ws_management_regulatory_domain_set (
@@ -60,7 +55,6 @@ int ws_management_regulatory_domain_set(
6055    uint8_t  operating_class ,
6156    uint8_t  operating_mode )
6257{
63- #ifdef  HAVE_WS 
6458    uint8_t  regulatory_domain_saved ;
6559    uint8_t  operating_class_saved ;
6660    uint8_t  operating_mode_saved ;
@@ -87,20 +81,12 @@ int ws_management_regulatory_domain_set(
8781    // TODO update fields to llc 
8882
8983    return  0 ;
90- #else 
91-     (void )interface_id ;
92-     (void )regulatory_domain ;
93-     (void )operating_class ;
94-     (void )operating_mode ;
95-     return  -1 ;
96- #endif 
9784}
9885
9986int  ws_management_channel_mask_set (
10087    int8_t  interface_id ,
10188    uint32_t  channel_mask [8 ])
10289{
103- #ifdef  HAVE_WS 
10490    protocol_interface_info_entry_t  * cur ;
10591
10692    cur  =  protocol_stack_interface_info_get_by_id (interface_id );
@@ -109,12 +95,6 @@ int ws_management_channel_mask_set(
10995    }
11096    memcpy (cur -> ws_info -> hopping_schdule .channel_mask , channel_mask , sizeof (uint32_t )* 8 );
11197    return  0 ;
112- 
113- #else 
114-     (void )interface_id ;
115-     (void )channel_mask ;
116-     return  -1 ;
117- #endif 
11898}
11999
120100int  ws_management_channel_plan_set (
@@ -125,7 +105,6 @@ int ws_management_channel_plan_set(
125105    uint8_t  channel_spacing ,// Stack can not modify this 
126106    uint8_t  number_of_channels )
127107{
128- #ifdef  HAVE_WS 
129108    protocol_interface_info_entry_t  * cur ;
130109
131110    cur  =  protocol_stack_interface_info_get_by_id (interface_id );
@@ -140,15 +119,6 @@ int ws_management_channel_plan_set(
140119
141120    // TODO update fields to llc 
142121    return  0 ;
143- #else 
144-     (void )interface_id ;
145-     (void )channel_plan ;
146-     (void )channel_function ;
147-     (void )ch0_freq ;
148-     (void )channel_spacing ;
149-     (void )number_of_channels ;
150-     return  -1 ;
151- #endif 
152122}
153123
154124int  ws_management_fhss_timing_configure (
@@ -157,7 +127,6 @@ int ws_management_fhss_timing_configure(
157127    uint32_t  fhss_broadcast_interval ,
158128    uint8_t  fhss_bc_dwell_interval )
159129{
160- #ifdef  HAVE_WS 
161130    protocol_interface_info_entry_t  * cur ;
162131
163132    cur  =  protocol_stack_interface_info_get_by_id (interface_id );
@@ -168,11 +137,6 @@ int ws_management_fhss_timing_configure(
168137    cur -> ws_info -> hopping_schdule .fhss_broadcast_interval  =  fhss_broadcast_interval ;
169138    cur -> ws_info -> hopping_schdule .fhss_bc_dwell_interval  =  fhss_bc_dwell_interval ;
170139    return  0 ;
171- #else 
172-     (void )interface_id ;
173-     (void )fhss_uc_dwell_interval ;
174-     (void )fhss_broadcast_interval ;
175-     (void )fhss_bc_dwell_interval ;
176-     return  -1 ;
177- #endif 
178140}
141+ 
142+ #endif  // HAVE_WS 
0 commit comments