A discovery control unit 202 executes device discovery processing for searching for a communication apparatus serving as a communication partner. A GO Negotiation control unit 203 executes GO Negotiation processing based on the specifications of Wi-Fi Direct protocols to determine which one of the digital camera 100 and an external communication apparatus plays a role of a wireless LAN access point (or a wireless LAN station). According to Wi-Fi Direct, a communication apparatus that provides a wireless LAN access point function is called a P2P group owner (hereinafter also referred to as a GO), whereas a communication apparatus that provides a wireless LAN station function is called a P2P client (hereinafter also referred to as a CL). When the digital camera 100 is a GO or a wireless LAN access point, a later-described wireless LAN access point function control unit 211 is activated. On the other hand, when the digital camera 100 is a CL or a wireless LAN station, a later-described wireless LAN station function control unit 210 is activated. As protocols related to this GO Negotiation processing are defined by the Wi-Fi Direct specification, a detailed description thereof will be omitted. According to Wi-Fi Direct, a network formed by a GO is called a P2P group. A network of the same meaning may be referred to as a P2P group. Furthermore, a P2P group owner (GO), a P2P client (CL), and a group of communication apparatuses whose roles have not been determined yet are collectively referred to as P2P devices.