Skip to content

Commit 229b618

Browse files
committed
lib: net: softap_wifi_provision: Align with SFM API changes
From the upstream migration guide: The SMF_CREATE_STATE macro now always takes 5 arguments. The amount of arguments is now independent of the values of CONFIG_SMF_ANCESTOR_SUPPORT and CONFIG_SMF_INITIAL_TRANSITION. If the additional arguments are not used, they have to be set to NULL Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
1 parent eb5326d commit 229b618

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

subsys/net/lib/softap_wifi_provision/softap_wifi_provision.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -798,22 +798,24 @@ static void reset_entry(void *o)
798798
static const struct smf_state state[] = {
799799
[STATE_INIT] = SMF_CREATE_STATE(init_entry,
800800
init_run,
801-
NULL),
801+
NULL, NULl, NULl),
802802
[STATE_UNPROVISIONED] = SMF_CREATE_STATE(unprovisioned_entry,
803803
unprovisioned_run,
804-
unprovisioned_exit),
804+
unprovisioned_exit,
805+
NULl, NULl),
805806
[STATE_PROVISIONING] = SMF_CREATE_STATE(provisioning_entry,
806807
provisioning_run,
807-
provisioning_exit),
808+
provisioning_exit,
809+
NULl, NULl),
808810
[STATE_PROVISIONED] = SMF_CREATE_STATE(NULL,
809811
provisioned_run,
810-
provisioned_exit),
812+
provisioned_exit,
813+
NULl, NULl),
811814
[STATE_FINISHED] = SMF_CREATE_STATE(finished_entry,
812815
finished_run,
813-
NULL),
816+
NULL, NULl, NULl),
814817
[STATE_RESET] = SMF_CREATE_STATE(reset_entry,
815-
NULL,
816-
NULL),
818+
NULL, NULL, NULl, NULl),
817819
};
818820

819821
static int send_response(struct http_req *request, char *response, size_t len, int socket)

0 commit comments

Comments
 (0)