An electronic device comprising: a Wi-Fi module comprising circuitry including a first communication interface and a second communication interface, each of the first communication interface and the second communication interface being operable in a first mode as a Wi-Fi station and in a second mode for Wi-Fi Direct communication; and a processor configured to execute at least one instruction to cause the processor to: set an operation mode of the first communication interface to the first mode and an operation mode of the second communication interface to the second mode; establish a first communication connection with a first access point, AP, through the first communication interface while the first communication interface operates in the first mode; in response to a first device including a second access point, AP, being searched, control the Wi-Fi module to change an operation mode of the second communication interface from the second mode for performing communication based on Wi-Fi direct to the first mode for performing communication by operating as the Wi-Fi station, and establish a second communication connection with the second AP through the second communication interface while the second communication interface operates in the first mode and while the first communication connection with the first AP is being maintained through the first communication interface. a Wi-Fi module comprising circuitry including a first communication interface and a second communication interface, each of the first communication interface and the second communication interface being operable in a first mode as a Wi-Fi station and in a second mode for Wi-Fi Direct communication; and a processor configured to execute at least one instruction to cause the processor to: set an operation mode of the first communication interface to the first mode and an operation mode of the second communication interface to the second mode; establish a first communication connection with a first access point, AP, through the first communication interface while the first communication interface operates in the first mode; in response to a first device including a second access point, AP, being searched, control the Wi-Fi module to change an operation mode of the second communication interface from the second mode for performing communication based on Wi-Fi direct to the first mode for performing communication by operating as the Wi-Fi station, and establish a second communication connection with the second AP through the second communication interface while the second communication interface operates in the first mode and while the first communication connection with the first AP is being maintained through the first communication interface. set an operation mode of the first communication interface to the first mode and an operation mode of the second communication interface to the second mode; establish a first communication connection with a first access point, AP, through the first communication interface while the first communication interface operates in the first mode; in response to a first device including a second access point, AP, being searched, control the Wi-Fi module to change an operation mode of the second communication interface from the second mode for performing communication based on Wi-Fi direct to the first mode for performing communication by operating as the Wi-Fi station, and establish a second communication connection with the second AP through the second communication interface while the second communication interface operates in the first mode and while the first communication connection with the first AP is being maintained through the first communication interface.