A printing apparatus arranged to operate in a plurality of modes including at least a first mode and a second mode, wherein the first mode is a mode in which setting information of a wireless network for connecting to an external access point, received from an external device via a function of a software access point activated by the printing apparatus, is set, and wherein the second mode is a mode in which printing is performed on a basis of print data received from the external device via the function of the software access point activated by the printing apparatus, the printing apparatus comprising: first setting means arranged to set a service set identifier, SSID, that is used when the function of the software access point is activated in the second mode; first control means arranged to, in the case that the printing apparatus is configured to operate in the first mode, perform control to: generate a SSID obtained by adding a predetermined character string to the SSID set by the first setting means, activate, using the generated SSID, the functions of a software access point, and activate a setting service which is arranged to receive, from an external device, setting information of the wireless network; second setting means arranged to set setting information of the wireless network provided by the external access point based on the received setting information; and second control means arranged, in the case that the printing apparatus is arranged to operate in the second mode, to: activate, using the SSID set by the first setting means, the function of the software access point, and perform control such that the setting service is not available for use from the external device. first setting means arranged to set a service set identifier, SSID, that is used when the function of the software access point is activated in the second mode; first control means arranged to, in the case that the printing apparatus is configured to operate in the first mode, perform control to: generate a SSID obtained by adding a predetermined character string to the SSID set by the first setting means, activate, using the generated SSID, the functions of a software access point, and activate a setting service which is arranged to receive, from an external device, setting information of the wireless network; generate a SSID obtained by adding a predetermined character string to the SSID set by the first setting means, activate, using the generated SSID, the functions of a software access point, and activate a setting service which is arranged to receive, from an external device, setting information of the wireless network; second setting means arranged to set setting information of the wireless network provided by the external access point based on the received setting information; and second control means arranged, in the case that the printing apparatus is arranged to operate in the second mode, to: activate, using the SSID set by the first setting means, the function of the software access point, and perform control such that the setting service is not available for use from the external device. activate, using the SSID set by the first setting means, the function of the software access point, and perform control such that the setting service is not available for use from the external device. <EOS>