Skip to content

Commit f43620f

Browse files
Add support for India band (#2166)
1 parent 0e65ee5 commit f43620f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/6LoWPAN/ws/ws_common.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,16 @@ int8_t ws_common_regulatory_domain_config(protocol_interface_info_entry_t *cur)
161161
} else {
162162
return -1;
163163
}
164+
} else if (cur->ws_info->hopping_schdule.regulatory_domain == REG_DOMAIN_IN) {
165+
if (cur->ws_info->hopping_schdule.operating_class == 1) {
166+
cur->ws_info->hopping_schdule.ch0_freq = 8651;
167+
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_100;
168+
} else if (cur->ws_info->hopping_schdule.operating_class == 2) {
169+
cur->ws_info->hopping_schdule.ch0_freq = 8651;
170+
cur->ws_info->hopping_schdule.channel_spacing = CHANNEL_SPACING_200;
171+
} else {
172+
return -1;
173+
}
164174
} else if (cur->ws_info->hopping_schdule.regulatory_domain == REG_DOMAIN_NA) {
165175
if (cur->ws_info->hopping_schdule.operating_class == 1) {
166176
cur->ws_info->hopping_schdule.ch0_freq = 9022;
@@ -228,6 +238,12 @@ uint16_t ws_common_channel_number_calc(uint8_t regulatory_domain, uint8_t operat
228238
} else if (operating_class == 4) {
229239
return 27;
230240
}
241+
} else if (regulatory_domain == REG_DOMAIN_IN) {
242+
if (operating_class == 1) {
243+
return 19;
244+
} else if (operating_class == 2) {
245+
return 10;
246+
}
231247
} else if (regulatory_domain == REG_DOMAIN_NA) {
232248
if (operating_class == 1) {
233249
return 129;

0 commit comments

Comments
 (0)