Skip to content

Commit cad5122

Browse files
author
Mika Leppänen
authored
Removed automatic network size configuration (ARMmbed#2673)
1 parent 35d3132 commit cad5122

File tree

8 files changed

+353
-1067
lines changed

8 files changed

+353
-1067
lines changed

source/6LoWPAN/ws/ws_bbr_api.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ int ws_bbr_rpl_parameters_set(int8_t interface_id, uint8_t dio_interval_min, uin
11991199
protocol_interface_info_entry_t *cur = protocol_stack_interface_info_get_by_id(interface_id);
12001200

12011201
ws_bbr_cfg_t cfg;
1202-
if (ws_cfg_bbr_get(&cfg, NULL) < 0) {
1202+
if (ws_cfg_bbr_get(&cfg) < 0) {
12031203
return -1;
12041204
}
12051205

@@ -1213,7 +1213,7 @@ int ws_bbr_rpl_parameters_set(int8_t interface_id, uint8_t dio_interval_min, uin
12131213
cfg.dio_redundancy_constant = dio_redundancy_constant;
12141214
}
12151215

1216-
if (ws_cfg_bbr_set(cur, NULL, &cfg, 0) < 0) {
1216+
if (ws_cfg_bbr_set(cur, &cfg, 0) < 0) {
12171217
return -2;
12181218
}
12191219

@@ -1235,7 +1235,7 @@ int ws_bbr_rpl_parameters_get(int8_t interface_id, uint8_t *dio_interval_min, ui
12351235
}
12361236

12371237
ws_bbr_cfg_t cfg;
1238-
if (ws_cfg_bbr_get(&cfg, NULL) < 0) {
1238+
if (ws_cfg_bbr_get(&cfg) < 0) {
12391239
return -2;
12401240
}
12411241

@@ -1257,7 +1257,7 @@ int ws_bbr_rpl_parameters_validate(int8_t interface_id, uint8_t dio_interval_min
12571257
(void) interface_id;
12581258
#ifdef HAVE_WS_BORDER_ROUTER
12591259
ws_bbr_cfg_t cfg;
1260-
if (ws_cfg_bbr_get(&cfg, NULL) < 0) {
1260+
if (ws_cfg_bbr_get(&cfg) < 0) {
12611261
return -2;
12621262
}
12631263

@@ -1271,7 +1271,7 @@ int ws_bbr_rpl_parameters_validate(int8_t interface_id, uint8_t dio_interval_min
12711271
cfg.dio_redundancy_constant = dio_redundancy_constant;
12721272
}
12731273

1274-
if (ws_cfg_bbr_validate(NULL, &cfg) < 0) {
1274+
if (ws_cfg_bbr_validate(&cfg) < 0) {
12751275
return -3;
12761276
}
12771277

@@ -1318,13 +1318,13 @@ int ws_bbr_pan_configuration_set(int8_t interface_id, uint16_t pan_id)
13181318
protocol_interface_info_entry_t *cur = protocol_stack_interface_info_get_by_id(interface_id);
13191319

13201320
ws_gen_cfg_t cfg;
1321-
if (ws_cfg_gen_get(&cfg, NULL) < 0) {
1321+
if (ws_cfg_gen_get(&cfg) < 0) {
13221322
return -1;
13231323
}
13241324

13251325
cfg.network_pan_id = pan_id;
13261326

1327-
if (ws_cfg_gen_set(cur, NULL, &cfg, 0) < 0) {
1327+
if (ws_cfg_gen_set(cur, &cfg, 0) < 0) {
13281328
return -2;
13291329
}
13301330

@@ -1344,7 +1344,7 @@ int ws_bbr_pan_configuration_get(int8_t interface_id, uint16_t *pan_id)
13441344
}
13451345

13461346
ws_gen_cfg_t cfg;
1347-
if (ws_cfg_gen_get(&cfg, NULL) < 0) {
1347+
if (ws_cfg_gen_get(&cfg) < 0) {
13481348
return -2;
13491349
}
13501350

@@ -1362,13 +1362,13 @@ int ws_bbr_pan_configuration_validate(int8_t interface_id, uint16_t pan_id)
13621362
(void) interface_id;
13631363
#ifdef HAVE_WS_BORDER_ROUTER
13641364
ws_gen_cfg_t cfg;
1365-
if (ws_cfg_gen_get(&cfg, NULL) < 0) {
1365+
if (ws_cfg_gen_get(&cfg) < 0) {
13661366
return -1;
13671367
}
13681368

13691369
cfg.network_pan_id = pan_id;
13701370

1371-
if (ws_cfg_gen_validate(NULL, &cfg) < 0) {
1371+
if (ws_cfg_gen_validate(&cfg) < 0) {
13721372
return -2;
13731373
}
13741374

source/6LoWPAN/ws/ws_bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3346,7 +3346,7 @@ static void ws_bootstrap_nw_info_updated(protocol_interface_info_entry_t *cur, u
33463346
if (cur->bootsrap_mode == ARM_NWK_BOOTSRAP_MODE_6LoWPAN_BORDER_ROUTER) {
33473347
// Get PAN ID and network name
33483348
ws_gen_cfg_t gen_cfg;
3349-
if (ws_cfg_gen_get(&gen_cfg, NULL) < 0) {
3349+
if (ws_cfg_gen_get(&gen_cfg) < 0) {
33503350
return;
33513351
}
33523352

@@ -3364,7 +3364,7 @@ static void ws_bootstrap_nw_info_updated(protocol_interface_info_entry_t *cur, u
33643364
}
33653365

33663366
// Stores the settings
3367-
ws_cfg_gen_set(cur, NULL, &gen_cfg, 0);
3367+
ws_cfg_gen_set(cur, &gen_cfg, 0);
33683368
}
33693369
}
33703370

0 commit comments

Comments
 (0)