An electronic device comprising: at least one communication module; a processor operatively connected with the at least one communication module; and a memory operatively connected with the at least one communication module and the processor; wherein the memory stores instructions configured to, when executed, enable the electronic device to: configure, based on a first communication protocol, through the at least one communication module, a neighbor awareness network, NAN, cluster including the electronic device and a plurality of external electronic devices (102, 104), identify, based on configuring the NAN cluster, a service target device among the plurality of external electronic devices (102, 104), while operating with the plurality of external electronic devices (102, 104) based on the first communication protocol, and control, based on identifying the service target device, by transmitting a service group information message through the at least one communication module, at least one external electronic device (102, 104) except for the service target device among the plurality of external electronic devices (102, 104), to deactivate at least one active function related to the first communication protocol. at least one communication module; a processor operatively connected with the at least one communication module; and a memory operatively connected with the at least one communication module and the processor; wherein the memory stores instructions configured to, when executed, enable the electronic device to: configure, based on a first communication protocol, through the at least one communication module, a neighbor awareness network, NAN, cluster including the electronic device and a plurality of external electronic devices (102, 104), identify, based on configuring the NAN cluster, a service target device among the plurality of external electronic devices (102, 104), while operating with the plurality of external electronic devices (102, 104) based on the first communication protocol, and control, based on identifying the service target device, by transmitting a service group information message through the at least one communication module, at least one external electronic device (102, 104) except for the service target device among the plurality of external electronic devices (102, 104), to deactivate at least one active function related to the first communication protocol. configure, based on a first communication protocol, through the at least one communication module, a neighbor awareness network, NAN, cluster including the electronic device and a plurality of external electronic devices (102, 104), identify, based on configuring the NAN cluster, a service target device among the plurality of external electronic devices (102, 104), while operating with the plurality of external electronic devices (102, 104) based on the first communication protocol, and control, based on identifying the service target device, by transmitting a service group information message through the at least one communication module, at least one external electronic device (102, 104) except for the service target device among the plurality of external electronic devices (102, 104), to deactivate at least one active function related to the first communication protocol.