When a predetermined application (for example, a game application) is executed using the first communication module, the processor 120 may perform a control to deactivate the second communication module while the application is executed using the first communication module in operation 410. Specifically, when the electronic device 101 enters the Wi-Fi network area even though the processor 120 executes the predetermined application using the first communication module, the priority of the second communication module is higher than that of the first communication module in the state in which both the first communication module and the second communication module are activated, so that an operation for attempting access to the Wi-Fi network may be performed. In order to prevent the access attempt, the processor 120 may deactivate the second communication module.
According to various embodiments of the present disclosure, the processor 120 may disable the Wi-Fi function when the predetermined application is executed. Accordingly, even though the electronic device 101 enters the Wi-Fi network accessible area according to movement of the user, the Wi-Fi function itself is disabled, so that an operation for Wi-Fi access, such as an operation for periodically searching for an AP, may be blocked.
Thereafter, the processor 120 may determine whether the executed application ends in operation 415. For example, when an end request of the user, such as a touch input, for the application being executed is input, execution of the application may end. According to the end of the execution of the application, the processor 210 may return the inactive state of the second communication module to the active state in operation 420.