In infrastructure mode, wireless devices connect to a central device called an access point (AP), which provides a link to a wired network or the internet. In ad hoc mode, wireless devices form a peer-to-peer network without an AP, and rely on each other to forward data