d hoc mode:
An Ad-hoc network allows each device to communicate directly with each other. There is no central Access Point controlling device communication. Ad-hoc networks are only able to communicate with other Ad-hoc devices, they are not able to communicate with any Infrastructure devices or any other devices connected to a wired network. In addition, Ad-hoc mode security is less sophisticated compared to an Infrastructure mode network.
An Infrastructure mode network requires the use of an Access Point. The Access Point controls Wireless communication and offers several important advantages over an Ad-hoc network. For example, a Infrastructure based network supports increased levels of security, potentially faster data transmission speeds and integration with a wired network.