BACKGROUND OF THE INVENTION

Field of the Invention

The present invention relates to a communication apparatus, a method of controlling the same, and a non-transitory computer-readable storage medium.

Description of the Related Art

A known communication apparatus executes processing to search for an access point near itself (AP search). In Patent Document 1, an information processing device is described that searches for a connectible access point and displays a SSID list.

CITATION LIST

Patent Literature

[PTL 1] Japanese Patent Laid-Open No. 2016-127545

With apparatuses capable of executing AP searches becoming more common, there is a demand for improvement in the user-friendliness of such communication apparatuses capable of executing AP searches.

SUMMARY OF THE INVENTION

One aspect of the present invention provides a communication apparatus capable of operating in at least one of a plurality of modes including a first communication mode in which wireless communication is performed with another apparatus via an external access point and a second communication mode in which wireless communication is performed with another apparatus bypassing the external access point, is characterized by including: controlling means for controlling a communication mode of the communication apparatus by enabling or disabling at least one of the plurality of communication modes; and executing means for executing search processing to search for an external access point near the communication apparatus, wherein in a case where both the first communication mode and the second communication mode are disabled, the second communication mode is enabled and the search processing is executed in the second communication mode.

Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).

