Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1dba10e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Handle mode change commands properly"

parents 698fed40 b60b25f7
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -699,11 +699,16 @@ struct diag_cmd_reg_entry_t *diag_cmd_search(
			if ((temp_entry->cmd_code_hi >= entry->cmd_code) &&
			    (temp_entry->cmd_code_lo <= entry->cmd_code) &&
			    (proc == item->proc || proc == ALL_PROC)) {
				if (entry->cmd_code == MODE_CMD &&
				    entry->subsys_id == RESET_ID &&
				if (entry->cmd_code == MODE_CMD) {
					if (entry->subsys_id == RESET_ID &&
						item->proc != APPS_DATA) {
						continue;
					}
					if (entry->subsys_id != RESET_ID &&
						item->proc == APPS_DATA) {
						continue;
					}
				}
				return &item->entry;
			}
		}