To set communication parameters, a communication apparatus identifies a
communication parameter setting wireless network on the basis of a
network identifier provided in itself. If the communication apparatus can
identify any network identifier matching the network identifier provided
in itself, it sets the communication parameters in cooperation with
another communication apparatus in the wireless network. If no identifier
can be identified, the communication apparatus switches the setting of
the communication parameters to a manual operation.