xiaoxiang781216 commented on code in PR #3893:
URL: https://github.com/apache/nuttx-apps/pull/3893#discussion_r4343495240


##########
include/netutils/wifibridge.h:
##########
@@ -125,6 +135,58 @@ int wifibridge_stop(FAR const struct wifibridge_config_s 
*config);
 int wifibridge_status(FAR const struct wifibridge_config_s *config,
                       FAR struct wifibridge_status_s *status);
 
+#ifdef CONFIG_NETUTILS_WIFIBRIDGE_PERSIST
+
+/****************************************************************************
+ * Name: wifibridge_save
+ *
+ * Description:
+ *   Keep the SSID, passphrase, channel, security, address and DHCP server
+ *   option of the configuration in the storage
+ *   (CONFIG_NETUTILS_WIFIBRIDGE_STORAGE), to survive a reset.
+ *
+ * Returned Value:
+ *   Zero (OK) on success; a negated errno value on failure.
+ *
+ ****************************************************************************/
+
+int wifibridge_save(FAR const struct wifibridge_config_s *config);
+
+/****************************************************************************
+ * Name: wifibridge_load
+ *
+ * Description:
+ *   Read what wifibridge_save() kept and set the matching fields of the
+ *   configuration.  The SSID and the passphrase are copied to the buffers

Review Comment:
   but. I suggest  to change ssid and passphrase in wifibridge_config_s to 
array.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to