Skip to content

Commit 42b2e7c

Browse files
author
Jarkko Paso
committed
Unit tests: channel function tests updated
1 parent b6236f9 commit 42b2e7c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/nanostack/unittest/6LoWPAN/ws_ie_lib/test_ws_ie_lib.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ bool test_ws_wp_nested_hopping_schedule_length()
132132
}
133133

134134
shedule.channel_plan = 1;
135-
shedule.channel_function = 1;
135+
shedule.uc_channel_function = 1;
136136
length = ws_wp_nested_hopping_schedule_length(&shedule, true);
137137
if (length != 4 + 6)
138138
{
139139
return false;
140140
}
141141
shedule.channel_plan = 2;
142-
shedule.channel_function = 3;
142+
shedule.uc_channel_function = 3;
143143

144144
length = ws_wp_nested_hopping_schedule_length(&shedule, true);
145145
if (length != 6)
@@ -168,14 +168,14 @@ bool test_ws_wp_nested_hopping_schedule_write()
168168
}
169169

170170
shedule.channel_plan = 1;
171-
shedule.channel_function = 1;
171+
shedule.uc_channel_function = 1;
172172
ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, true);
173173
if (ptr != temp_buf + 10 + 2) {
174174
return false;
175175
}
176176

177177
shedule.channel_plan = 2;
178-
shedule.channel_function = 3;
178+
shedule.uc_channel_function = 3;
179179
ptr = ws_wp_nested_hopping_schedule_write(temp_buf, &shedule, false);
180180
if (ptr != temp_buf + 10 + 2 + 2) {
181181
return false;

test/nanostack/unittest/6LoWPAN/ws_management_api/test_ws_management_api.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -225,29 +225,29 @@ bool test_ws_management_fhss_channel_function_configure()
225225

226226
protocol_core_stub.entry_ptr = NULL;
227227

228-
if (-1 != ws_management_fhss_channel_function_configure(1,10))
228+
if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10))
229229
{
230230
return false;
231231
}
232232
protocol_core_stub.entry_ptr = &entry;
233233

234-
if (-1 != ws_management_fhss_channel_function_configure(1,10))
234+
if (-1 != ws_management_fhss_unicast_channel_function_configure(1,10))
235235
{
236236
return false;
237237
}
238238
entry.ws_info = &ws_info_entry;
239-
if (-2 != ws_management_fhss_channel_function_configure(1,10))
239+
if (-2 != ws_management_fhss_unicast_channel_function_configure(1,10))
240240
{
241241
return false;
242242
}
243243

244244
entry.lowpan_info = 0;
245-
if (0 != ws_management_fhss_channel_function_configure(1,0))
245+
if (0 != ws_management_fhss_unicast_channel_function_configure(1,0))
246246
{
247247
return false;
248248
}
249249
entry.lowpan_info = INTERFACE_NWK_ACTIVE;
250-
if (0 != ws_management_fhss_channel_function_configure(1,0))
250+
if (0 != ws_management_fhss_unicast_channel_function_configure(1,0))
251251
{
252252
return false;
253253
}

0 commit comments

Comments
 (0)