Medium access control protocol for CDMA ad hoc networks