Skip to content

Commit 5b1b052

Browse files
icsys-omhcarlescufi
authored andcommitted
net: wifi: Pass ssid as const
There shouldn't be any reason to be able to modify the passed in SSID, and having this non-const gives application warnings if passing a constant string. Signed-off-by: Ole Morten Haaland <[email protected]>
1 parent 46fb950 commit 5b1b052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct wifi_scan_result {
9797
};
9898

9999
struct wifi_connect_req_params {
100-
uint8_t *ssid;
100+
const uint8_t *ssid;
101101
uint8_t ssid_length; /* Max 32 */
102102

103103
uint8_t *psk;

0 commit comments

Comments
 (0)