OCS_MAX_HBA_PORTS
if (port_index > OCS_MAX_HBA_PORTS) {
uint8_t prev_port_state[OCS_MAX_HBA_PORTS] = {0,};
if ((port_index >= OCS_MAX_HBA_PORTS))