MAC protocols in ad hoc wireless networks: Aloha versus PR-CSMA