Map specific cwmp faults to general failure for usp proto

This commit is contained in:
vdutta 2020-11-18 16:13:53 +05:30 committed by Vivek Kumar Dutta
parent 34f9f678f9
commit 420f0b1873

View file

@ -64,7 +64,7 @@ int usp_fault_map(int fault)
out_fault = USP_FAULT_PARAM_READ_ONLY;
break;
default:
if (fault)
if (fault >= FAULT_9000)
out_fault = USP_FAULT_GENERAL_FAILURE;
else
out_fault = fault;