carl9170 firmware: fix error code handling