Skip to content

Commit 5094614

Browse files
author
Juha Heiskanen
committed
Added opeation mode validation for detect unsupported values.
Change-Id: Ie41ae8d5e1ebc25b7bb9011f247891c3ecbd34ab
1 parent 44f85aa commit 5094614

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

source/6LoWPAN/ws/ws_common.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ static int ws_set_domain_rf_config(protocol_interface_info_entry_t *cur)
137137

138138
int8_t ws_common_regulatory_domain_config(protocol_interface_info_entry_t *cur)
139139
{
140+
if (ws_get_datarate_using_operating_mode(cur->ws_info->hopping_schdule.operating_mode) == 0) {
141+
//Unsupported operation mode
142+
return -1;
143+
}
144+
140145
cur->ws_info->hopping_schdule.channel_plan = 0;
141146

142147
if (cur->ws_info->hopping_schdule.regulatory_domain == REG_DOMAIN_KR) {

0 commit comments

Comments
 (0)