Skip to content

Commit e283e62

Browse files
author
Jarkko Paso
authored
Fixed channel mask usage with OFDM configurations (ARMmbed#2633)
* Fixed channel mask usage with OFDM configurations * Updated change log
1 parent 24168f8 commit e283e62

File tree

2 files changed

+8
-20
lines changed

2 files changed

+8
-20
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
### Bug fixes
1515
* Added ignoring of retry messages from RADIUS server when waiting EAP-TLS
1616
* Removed empty EAPOL-key message send after 4WH completion to nodes on relay
17+
* Fixed channel mask usage with OFDM configurations
1718

1819

1920
## Release v13.0.0 (15-04-2021)

source/6LoWPAN/ws/ws_common.c

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,6 @@ int8_t ws_generate_channel_list(uint32_t *channel_mask, uint16_t number_of_chann
7575
channel_mask[0 + (i / 32)] |= (1 << (i % 32));
7676
}
7777
// Disable unsupported channels per regional frequency bands
78-
if (regulatory_domain == REG_DOMAIN_NA) {
79-
if (channel_plan_id == 1) {
80-
ws_disable_channels_in_range(channel_mask, number_of_channels, 1, 7);
81-
} else if (channel_plan_id == 5) {
82-
ws_disable_channels_in_range(channel_mask, number_of_channels, 5, 7);
83-
}
84-
}
8578
if (regulatory_domain == REG_DOMAIN_BZ) {
8679
if (channel_plan_id == 255) {
8780
if (operating_class == 1) {
@@ -93,17 +86,11 @@ int8_t ws_generate_channel_list(uint32_t *channel_mask, uint16_t number_of_chann
9386
}
9487
} else {
9588
if (channel_plan_id == 1) {
96-
ws_disable_channels_in_range(channel_mask, number_of_channels, 1, 7);
97-
ws_disable_channels_in_range(channel_mask, number_of_channels, 64, 64);
98-
ws_disable_channels_in_range(channel_mask, number_of_channels, 72, 103);
99-
ws_disable_channels_in_range(channel_mask, number_of_channels, 106, 111);
89+
ws_disable_channels_in_range(channel_mask, number_of_channels, 26, 64);
10090
} else if (channel_plan_id == 2) {
101-
ws_disable_channels_in_range(channel_mask, number_of_channels, 24, 24);
102-
ws_disable_channels_in_range(channel_mask, number_of_channels, 32, 47);
103-
ws_disable_channels_in_range(channel_mask, number_of_channels, 52, 55);
91+
ws_disable_channels_in_range(channel_mask, number_of_channels, 12, 32);
10492
} else if (channel_plan_id == 5) {
105-
ws_disable_channels_in_range(channel_mask, number_of_channels, 5, 10);
106-
ws_disable_channels_in_range(channel_mask, number_of_channels, 19, 23);
93+
ws_disable_channels_in_range(channel_mask, number_of_channels, 3, 10);
10794
}
10895
}
10996
}
@@ -424,11 +411,11 @@ uint16_t ws_common_channel_number_calc(uint8_t regulatory_domain, uint8_t operat
424411
}
425412
} else {
426413
if (channel_plan_id == 1) {
427-
return 136;
414+
return 129;
428415
} else if (channel_plan_id == 2) {
429416
return 64;
430417
} else if (channel_plan_id == 5) {
431-
return 24;
418+
return 21;
432419
}
433420
}
434421
} else if (regulatory_domain == REG_DOMAIN_JP) {
@@ -450,11 +437,11 @@ uint16_t ws_common_channel_number_calc(uint8_t regulatory_domain, uint8_t operat
450437
}
451438
} else {
452439
if (channel_plan_id == 1) {
453-
return 136;
440+
return 129;
454441
} else if (channel_plan_id == 2) {
455442
return 64;
456443
} else if (channel_plan_id == 5) {
457-
return 24;
444+
return 21;
458445
}
459446
}
460447
} else if (regulatory_domain == REG_DOMAIN_WW) {

0 commit comments

Comments
 (0)