Check set_configuration input to make VTS negative test pass.
Bug: b/33382424
Test: VTS
Change-Id: I11b00e0a9797a30549cca989ea5c6a09c2d513c2
diff --git a/modules/radio/radio_hw.c b/modules/radio/radio_hw.c
index 54707d5..4010507 100644
--- a/modules/radio/radio_hw.c
+++ b/modules/radio/radio_hw.c
@@ -501,6 +501,10 @@
status = -EINVAL;
goto exit;
}
+ if (config->lower_limit > config->upper_limit) {
+ status = -EINVAL;
+ goto exit;
+ }
send_command_l(stub_tuner, CMD_CANCEL, 0, NULL);
send_command_l(stub_tuner, CMD_CONFIG, 500, (void *)config);