A method of notifying cancellation of a connection in an electronic device using Wi-Fi direct technology, Wi-Fi direct being a wireless technology for providing a direct connection between Wi-Fi devices using a Wi-Fi interface, the method comprising: performing a provision discovery process with a counterpart Wi-Fi electronic device; performing a group owner negotiation process with the counterpart Wi-Fi electronic device; when a connection request is cancelled by a user without performing a push button input or a PIN input, re-performing a group owner negotiation process with the counterpart Wi-Fi electronic device, failing in a Wi-Fi Simple Configuration, WSC, process of the counterpart Wi-Fi electronic device intentionally; and sending a cancellation notification to the counterpart Wi-Fi electronic device, wherein the failing in the WSC process comprises: in response to receiving a first message for operating the WSC process from the counterpart Wi-Fi electronic device, sending a second message of the WSC process to the counterpart Wi-Fi electronic device, wherein the provision discovery process includes receiving a message for operating the WSC process, the WSC process requiring a push button input or a PIN input from a user of the electronic device to activate a connection with the counterpart Wi-Fi electronic device and wherein the group owner negotiation process includes receiving a group owner negotiation request from the counterpart Wi-Fi electronic device while waiting for push button input or PIN input from the user and wherein the cancellation notification includes a message indicating a cause of the end of the connection. performing a provision discovery process with a counterpart Wi-Fi electronic device; performing a group owner negotiation process with the counterpart Wi-Fi electronic device; when a connection request is cancelled by a user without performing a push button input or a PIN input, re-performing a group owner negotiation process with the counterpart Wi-Fi electronic device, failing in a Wi-Fi Simple Configuration, WSC, process of the counterpart Wi-Fi electronic device intentionally; and sending a cancellation notification to the counterpart Wi-Fi electronic device, wherein the failing in the WSC process comprises: in response to receiving a first message for operating the WSC process from the counterpart Wi-Fi electronic device, sending a second message of the WSC process to the counterpart Wi-Fi electronic device, wherein the provision discovery process includes receiving a message for operating the WSC process, the WSC process requiring a push button input or a PIN input from a user of the electronic device to activate a connection with the counterpart Wi-Fi electronic device and wherein the group owner negotiation process includes receiving a group owner negotiation request from the counterpart Wi-Fi electronic device while waiting for push button input or PIN input from the user and wherein the cancellation notification includes a message indicating a cause of the end of the connection. in response to receiving a first message for operating the WSC process from the counterpart Wi-Fi electronic device, sending a second message of the WSC process to the counterpart Wi-Fi electronic device, wherein the provision discovery process includes receiving a message for operating the WSC process, the WSC process requiring a push button input or a PIN input from a user of the electronic device to activate a connection with the counterpart Wi-Fi electronic device and wherein the group owner negotiation process includes receiving a group owner negotiation request from the counterpart Wi-Fi electronic device while waiting for push button input or PIN input from the user and wherein the cancellation notification includes a message indicating a cause of the end of the connection.