One or more non-transitory computer-readable storage media storing one or more computer programs including computer-executable instructions that, when executed by one or more processors of an electronic device individually or collectively, cause the electronic device to perform operations, the operations comprising:
- performing a connection with a second external electronic device via a neighbor awareness network (NAN) communication in a state of being connected to a first external electronic device via a short-range wireless communication;
- based on first schedule information related to a first interval configured between at least one discovery window configured in a NAN cluster to which the electronic device belongs, performing the NAN communication with the second external electronic device and the short-range wireless communication with the first external electronic device in a second interval configured between the at least one discovery window and the first interval;
- upon receiving second schedule information for the short-range wireless communication that deactivates the short-range wireless communication in a partial interval of the second interval, generating third schedule information for performing the NAN communication in the partial interval based on the second schedule information;
- and
- transmitting the third schedule information to the second external electronic device.