Question: what is difference between infrastructure and ad hoc?
Answer: Infrastructure mode requires a central access point that all devices connect to. Ad-hoc mode is also known as “peer-to-peer” mode. Ad-hoc networks don't require a centralized access point. Instead, devices on the wireless network connect directly to each other.