Communication apparatus for providing a setting screen having high convenience of user input of communication parameters, control method, and storage medium
A communication apparatus determines whether to use, for connection to another communication apparatus forming a wireless network, an identifier different from a service set identifier (SSID) of the wireless network and a password of the wireless network, based on one of a Beacon, a Probe Response, or a Simultaneous Authentication of Equals (SAE) Commit received from the other communication apparatus, and controls a display unit in such a manner that, in a case where it is determined not to use the identifier for connection to the other communication apparatus, the display unit does not display a screen for inputting the identifier and, in a case where it is determined to use the identifier for connection to the other communication apparatus, the display unit displays the screen for inputting the identifier.
1. A communication apparatus comprising:
at least one memory that stores a set of instructions; and
at least one processor that executes the instructions, the instructions, when executed, causing the communication apparatus to perform operations comprising:
receiving, from another communication apparatus, information about a wireless network identified by a service set identifier (SSID);
selecting a screen to be displayed from among at least a first input screen and a second input screen, wherein selecting the screen to be displayed comprises:
determining, based on the information about the wireless network, whether a password identifier is a required parameter for connection to the another communication apparatus forming the wireless network, the password identifier being associated with a password used to access the wireless network, the password identifier being different from the SSID of the wireless network and different from the password used to access the wireless network; and
selecting the screen to be displayed based on a result of the determining; and
controlling a display to display the selected screen, wherein controlling the display to display the selected screen comprises:
in a case where it is determined in the determining that the password identifier is not a required parameter for the connection to the another communication apparatus, displaying the first input screen on the display, wherein the first input screen includes a first display item for receiving an input of a character string corresponding to the password used to access the wireless network and does not include a display item for receiving an input of a character string corresponding to the password identifier, and,
in a case where it is determined in the determining that the password identifier is a required parameter for the connection to the another communication apparatus, displaying the second input screen on the display, wherein the second input screen includes a second display item for receiving an input of the character string corresponding to the password used to access the wireless network and a third display item for receiving an input of the character string corresponding to the password identifier.
2. The communication apparatus according to claim 1 , wherein the first input screen further includes a fourth display item for notifying a user that an input of the password identifier cannot be received in such a manner that the fourth display item is displayed in gray-out form.
3. The communication apparatus according to claim 1 ,
wherein, in the determining,
in a case where the information about the wireless network includes first information indicating that the another communication apparatus uses the password identifier as a communication parameter, it is determined, based on the first information, that the password identifier is a required parameter for the connection to the another communication apparatus, and,
in a case where the information about the wireless network includes second information indicating that the another communication apparatus does not use the password identifier as a communication parameter, it is determined, based on the second information, that the password identifier is not a required parameter for the connection to the another communication apparatus.
4. The communication apparatus according to claim 1 ,
wherein the information about the wireless network includes a Simultaneous Authentication of Equals (SAE) Password Identifiers In Use sub-field, and
wherein the determining comprises determining whether the password identifier is a required parameter for the connection to the another communication apparatus based on a value specified in the SAE Password Identifiers In Use sub-field.
5. The communication apparatus according to claim 1 , wherein the password identifier is a password identifier (ID) compliant with Wi-Fi Protected Access 3 (WPA3).
6. The communication apparatus according to claim 1 , wherein the display is included in the communication apparatus.
7. The communication apparatus according to claim 1 , wherein the information about the wireless network is a Beacon frame received from the another communication apparatus.
8. The communication apparatus according to claim 1 , wherein the information about the wireless network is a Probe Response frame received from the another communication apparatus.
9. The communication apparatus according to claim 1 , wherein the determining whether the password identifier is a required parameter for the connection to the another communication apparatus comprises:
transmitting, to the another communication apparatus, a Simultaneous Authentication of Equals (SAE) Commit based on the information about the wireless network;
receiving, from the another communication apparatus, a response to the SAE Commit; and
determining whether the password identifier is a required parameter for the connection to the another communication apparatus based on the response to the SAE Commit.
10. The communication apparatus according to claim 1 , wherein the first input screen further includes information indicating that inputting of the password identifier is optional.
11. The communication apparatus according to claim 1 , wherein the first input screen further includes a selectable display item enabling a user, by providing a user input indicating selection of the selectable display item, to access a third input screen for inputting the password identifier.
12. A control method for a communication apparatus, the control method comprising:
receiving, from another communication apparatus, information about a wireless network identified by a service set identifier (SSID);
selecting a screen to be displayed from among at least a first input screen and a second input screen, wherein selecting the screen to be displayed comprises:
determining, based on the information about the wireless network, whether, a password identifier is a required parameter for connection to the another communication apparatus forming the wireless network, the password identifier being associated with a password used to access the wireless network, the password identifier being different from the SSID of the wireless network and different from the password used to access the wireless network; and
selecting the screen to be displayed based on a result of the determining; and
controlling a display to display the selected screen, wherein controlling the display to display the selected screen comprises:
in a case where it is determined in the determining that the password identifier is not a required parameter for the connection to the another communication apparatus, displaying the first input screen on the display, wherein the first input screen includes a first display item for receiving an input of a character string corresponding to the password used to access the wireless network and does not include a display item for receiving an input of a character string corresponding to the password identifier, and,
in a case where it is determined in the determining that the password identifier is a required parameter for the connection to the another communication apparatus, displaying the second input screen on the display, wherein the second input screen includes a second display item for receiving an input of the character string corresponding to the password used to access the wireless network and a third display item for receiving an input of the character string corresponding to the password identifier.
13. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a computer, cause the computer to perform a control method for a communication apparatus, the control method comprising:
receiving, from another communication apparatus, information about a wireless network identified by a service set identifier (SSID);
selecting a screen to be displayed from among at least a first input screen and a second input screen, wherein selecting the screen to be displayed comprises:
determining, based on the information about the wireless network, whether a password identifier is a required parameter for connection to the another communication apparatus forming the wireless network, the password identifier being associated with a password used to access the wireless network, the password identifier being different from the SSID of the wireless network and different from the password used to access the wireless network; and
selecting the screen to be displayed based on a result of the determining; and
controlling a display to display the selected screen, wherein controlling the display to display the selected screen comprises:
in a case where it is determined in the determining that the password identifier is not a required parameter for the connection to the another communication apparatus, displaying the first input screen on the display, wherein the first input screen includes a first display item for receiving an input of a character string corresponding to the password used to access the wireless network and does not include a display item for receiving an input of a character string corresponding to the password identifier, and,
in a case where it is determined in the determining that the password identifier is a required parameter for the connection to the another communication apparatus, displaying the second input screen on the display, wherein the second input screen includes a second display item for receiving an input of the character string corresponding to the password used to access the wireless network and a third display item for receiving an input of the character string corresponding to the password identifier.