carl9170 firmware: put CAB flush into a sub procedure