Joseph Lynn Two Eagle appeals the circuit court’s quashing of a writ of habeas corpus. He alleges he received ineffective assistance of counsel which rendered his 1989 guilty plea unknowing and involuntary. Specifically, Two Eagle alleges his attorney was ineffective by failing to discover that his 1987 aggravated assault guilty plea was neither knowing or voluntary due to alleged ineffective assistance of counsel in the 1987 action. We affirm.
FACTS
Two Eagle was arrested in Pennington County on February 18, 1987, and charged with aggravated assault and resisting arrest after threatening a police officer with a knife. His initial appearance was on February 19, 1987.’ On April 2,1987, he filed a motion for a psychological exam which was performed on April 10, 1987.
At the time, the so-called 180-day rule provided by SDCL 23A-44-5.1 stated:
The prosecution shall dispose of all criminal cases by plea of guilty or nolo conten-dere, trial or dismissal within one hundred eighty days from the date the defendant *767 has first appeared before a judicial officer on the complaint or indictment. Any period of delay shall be excluded if the trial court finds good cause for the delay. In the event of the prosecution’s failure to dispose of the action within the time limit required by this section, the action shall be dismissed. (Emphasis added.) 1
The 180-day interval expired on August 19, 1987. 2 A status hearing was scheduled for August 24, 1987. When Two Eagle did not appear and his counsel was unable to explain his absence, a bench warrant was issued and he was subsequently arrested. 3 On October 5,1987, Two Eagle pled guilty to aggravated assault and a DWI charge in exchange for the State dismissing or not filing charges of resisting arrest, failure to vacate property, two counts of intentional damage to property and a failure to appear charge. Two Eagle was sentenced to three years in the state penitentiary. He neither appealed nor filed a habeas petition concerning the conviction and served out his sentence.
On August 27, 1989, four days after his release, Two Eagle robbed a Sioux Falls 7-11 store by threatening the clerk with a knife. He was indicted on one count of robbery and three counts of burglary. State also filed a Part II Information alleging Two Eagle was a habitual offender based on the 1987 Pennington County conviction. With the advice of counsel, Two Eagle entered into a plea agreement in which State dismissed the three burglary charges and the Part II Information and he pled guilty to robbery and was sentenced to twelve years in prison.
On December 1, 1992, Two Eagle filed an application for a writ of habeas corpus, alleging his guilty plea in the 1989 conviction was not knowing and voluntary because it was based on his counsel’s ineffective assistance in failing to discover the alleged invalidity of his 1987 conviction. A writ of habeas corpus was issued on April 19, 1993, a hearing was held on May 27, 1993, and the habeas court entered an order quashing the writ on September 13, 1993. Two Eagle appeals.
DECISION
Habeas corpus is not a substitute for direct review.
O’Connor v. Leapley,
Habeas corpus can be used only to review (1) whether the court had jurisdiction of the crime and the person of the defendant; (2) whether the sentence was authorized by law; and (3) in certain cases whether an incarcerated defendant has been deprived of basic constitutional rights.
Gross, 446
N.W.2d at 50. Habeas corpus is available only where the defendant is imprisoned or restrained of his liberty.
Flittie v. Solem,
“The standard that applies in evaluating claims of ineffective assistance of counsel challenges to guilty pleas is the same standard set forth by the Supreme Court in
Strickland v. Washington,
When a convicted defendant complains of the ineffectiveness of counsel’s assistance, the defendant must show that counsel’s representation fell below an objective standard of reasonableness.’ Strickland,466 U.S. at 687-88 ,104 S.Ct. at 2064 ,80 L.Ed.2d at 693 . ‘Judicial scrutiny of counsel’s performance must be highly deferential.’ Id. at 689,104 S.Ct. at 2065 ,80 L.Ed.2d at 694 . ‘Because of the difficulties inherent in making the evaluation, a court must indulge a strong presumption that counsel’s conduct falls within the wide range of reasonable professional assistance; that is, the defendant must overcome the presumption that, under the circumstances, the challenged action might be considered sound trial strategy.’ Id. at 689,104 S.Ct, at 2065 ,80 L.Ed.2d at 694-95 (citing Michel v. Louisiana,350 U.S. 91 , 101,76 S.Ct. 158 , 164,100 L.Ed. 83 , 93 (1955)).
Primeaux v. Leapley,
A. The 1987 Action
This Court has consistently followed the general rule that a voluntary and intelligent plea of guilty waives a defendant’s right to appeal all nonjurisdictional defects in the prior proceedings.
State v. Grosh,
When a criminal defendant has solemnly admitted in open court that he is in fact guilty of the offense with which he is charged, he may not thereafter raise independent claims relating to the deprivation of constitutional rights that occurred prior to the entry of the guilty plea. He may only attack the voluntary and intelligent character of the gufity plea.
*769
State v. Crow,
The 180-day period expired on August 19, 1987, only five days before the scheduled August 24, 1987, status hearing. Although this was a prima facie case for dismissal under SDCL 23A-44-5.1, at least eight days of delay, from April 2,1987 to April 10,1987, were attributable to delay at the request of and attributable to Two Eagle’s request for a psychological examination. 5 Subtracting those eight days means the August 24 status hearing was held three days before the statutory limit expired.
Additional delay after the August 24 hearing is directly attributable to Two Eagle. He failed to appear for the scheduled hearing and the trial judge was obliged to issue a bench warrant for his arrest.
See State v. Cross,
Although State neglected to file a motion for delay, this sparse record does not indicate any delay that can be ascribed to the State. This ease reveals none of the prosecutorial abuse or ineffective scheduling practices the 180-day rule was intended to cure.
See State v. Bahm,
Counsel in the 1987 action should have filed a motion for dismissal alleging a 180-day violation or discussed' the situation with his client. However, because the delay was attributable to the defendant, the 180-day limit was tolled.
State v. Kerkhove,
Courts in other jurisdictions have reached similar results when defendants have alleged ineffective assistance of counsel due to counsel’s failure to move for dismissal alleging violations of speedy trial rights.
State v. Hanson,
B. The 1989 conviction.
Two Eagle claims his 1989 attorney was deficient in failing to search the record of his prior conviction for errors. He asserts he asked the attorney if there was any way to “make it [the 1987 conviction] go away.” He asserts counsel’s allegedly deficient investigation negated the voluntary and knowing nature of his plea of guilty.
Two Eagle claims that searching records for prior convictions for statutory deficiencies is a “routine and ministerial” act. We agree that “an attorney must make reasonable investigations or make reasonable decisions to forgo particular investigations.”
Application of Deserly,
There is no clear standard to determine how deeply counsel is required to investigate into a defendant’s criminal background and prior convictions.
Petrilli,
Additionally, Two Eagle has demonstrated no prejudice from any allegedly deficient performance. First, his prior conviction was never used to enhance his 1989 sentence. Second, counsel plea bargained a possible life sentence down to twelve years, half the possible sentence for the single robbery count Two Eagle pleaded guilty to.
Further, even if the former conviction had been overturned, under South Dakota law the trial court would have examined Two Eagle’s behavior and criminal history in determining his sentence. “When determining a fitting sentence, the sentencing court should ‘acquire a thorough acquaintance with the character and history of the man before it.’”
State v. Pack,
Two Eagle did not receive ineffective assistance of counsel in his 1989 conviction. The trial court’s order quashing the writ of habe-as corpus is affirmed.
Notes
.SDCL 23A-44-5.1 was substantially amended in 1991 and now provides in relevant part:
(1) Every person indicted, informed or complained against for any offense shall be brought to trial within one hundred eighty days, and such time shall be computed as provided in this section.
* * * * * *
(4) The following periods shall be excluded in computing the time for trial:
(a) The period of delay resulting from other proceedings concerning the defendant, including but not limited to an examination and hearing on competency and the period during which he is incompetent to stand trial; the time from filing until final disposition of pretrial motions of the defendant, including motions brought under § 23A-8-3; motions for a change of venue; and the time consumed in the trial of other charges against the defendant;
(b) The period of delay resulting from a continuance granted at the request or with the consent of the defendant or his counsel provided it is approved by the court and a written order filed. A defendant without counsel shall not be deemed to have consented to a continuance unless he has been advised by the court of his right to a speedy trial and the effect of his consent;
******
(d) The period of delay resulting from the absence or unavailability of the defendant;
******
(f) Other periods of delay not specifically enumerated herein, but only if the court finds that they are for good cause. A motion for good cause need not be made within the one hundred eighty day period.
. The record indicates subpoenas were issued for a trial scheduled on May 21, 1987. For reasons not indicated in the record, the trial did not take place on that date.
. At a status hearing on September 8, 1987, Two Eagle's counsel stated that he had not had time to confer with his client and that other bench warrants were involved. Two Eagle was apparently involved in other incidents in which charges of intentional damage to property, failure to vacate, and DWI were filed.
. In order for there to have been ineffective assistance of counsel in either the 1989 conviction or the 1987 conviction, Two Eagle must show he was prejudiced because he was entitled to dismissal of the 1987 action for violation of
*768
the 180-day rule. Therefore, this habeas action is, in reality, a collateral attack upon the 1987 conviction under which Two Eagle is not in custody.
See Maleng v. Cook,
. Although not directly applicable to this action, the revised version of SDCL 23A 44 5.1 specifically excludes periods of delay attributed to a request for a competency hearing. At a minimum, this gives a reliable indication of what was intended by good cause for delay.
