net: wifi: Pass psk and sae as const

There shouldn't be any reason to be able to modify the passed psk,
and having this non-const gives application warnings if passing a
constant string.

Signed-off-by: Maciej Zagrabski <mzi@trackunit.com>
This commit is contained in:
Maciej Zagrabski 2023-11-09 21:33:17 +01:00 committed by Carles Cufí
parent 38373aa599
commit b2fb570635

View file

@ -302,11 +302,11 @@ struct wifi_connect_req_params {
/** SSID length */
uint8_t ssid_length; /* Max 32 */
/** Pre-shared key */
uint8_t *psk;
const uint8_t *psk;
/** Pre-shared key length */
uint8_t psk_length; /* Min 8 - Max 64 */
/** SAE password (same as PSK but with no length restrictions), optional */
uint8_t *sae_password;
const uint8_t *sae_password;
/** SAE password length */
uint8_t sae_password_length; /* No length restrictions */
/** Frequency band */