SNAP: capi_maint did not decode all actions.
Need to check range of action type.
dev1 is start and dev2 is end.
@@ -256,8 +256,8 @@ static bool decode_action(uint32_t atype)
int md_size = sizeof(snap_actions)/sizeof(struct actions_tab);
for (i = 0; i < md_size; i++) {
- if (atype == snap_actions[i].dev1) {
- if (snap_actions[i].dev1 == snap_actions[i].dev2) {
+ if (atype >= snap_actions[i].dev1) {
+ if (atype <= snap_actions[i].dev2) {
VERBOSE1("%s %s\n", snap_actions[i].vendor,
snap_actions[i].description);
return true;
