An electronic device comprising: at least one wireless communication circuit configured to transmit or receive a wireless signal according to IEEE 802.11 standards; a processor operatively connected to the wireless communication circuit; and a memory operatively connected to the processor, wherein the memory stores instructions which, when executed, cause the processor to: receive a first request message for a tunneled direct link setup, TDLS, session defined by IEEE 802.11 standards, from a first access point, AP, through the wireless communication circuit; based on the first request message, determine that an external electronic device that has requested the TDLS session is connected to a second AP; the electronic device characterized in that the instructions, when executed, further cause the processor to: based on the determination, establish a connection with the second AP through the wireless communication circuit; transmit a second request message for the TDLS session to the second AP; and based on reception of a response message on the second request message from the external electronic device, establish the TDLS session with the external electronic device through the second AP. at least one wireless communication circuit configured to transmit or receive a wireless signal according to IEEE 802.11 standards; a processor operatively connected to the wireless communication circuit; and a memory operatively connected to the processor, wherein the memory stores instructions which, when executed, cause the processor to: receive a first request message for a tunneled direct link setup, TDLS, session defined by IEEE 802.11 standards, from a first access point, AP, through the wireless communication circuit; based on the first request message, determine that an external electronic device that has requested the TDLS session is connected to a second AP; the electronic device characterized in that the instructions, when executed, further cause the processor to: based on the determination, establish a connection with the second AP through the wireless communication circuit; transmit a second request message for the TDLS session to the second AP; and based on reception of a response message on the second request message from the external electronic device, establish the TDLS session with the external electronic device through the second AP. receive a first request message for a tunneled direct link setup, TDLS, session defined by IEEE 802.11 standards, from a first access point, AP, through the wireless communication circuit; based on the first request message, determine that an external electronic device that has requested the TDLS session is connected to a second AP; the electronic device characterized in that the instructions, when executed, further cause the processor to: based on the determination, establish a connection with the second AP through the wireless communication circuit; transmit a second request message for the TDLS session to the second AP; and based on reception of a response message on the second request message from the external electronic device, establish the TDLS session with the external electronic device through the second AP. based on the determination, establish a connection with the second AP through the wireless communication circuit; transmit a second request message for the TDLS session to the second AP; and based on reception of a response message on the second request message from the external electronic device, establish the TDLS session with the external electronic device through the second AP.