saramonteiro commented on a change in pull request #2939:
URL: https://github.com/apache/incubator-nuttx/pull/2939#discussion_r593178367



##########
File path: arch/xtensa/src/esp32/esp32_wifi_adapter.h
##########
@@ -152,26 +235,178 @@ int esp_wifi_sta_register_recv_cb(int (*recv_cb)(void 
*buffer,
 int esp_wifi_sta_read_mac(uint8_t *mac);
 
 /****************************************************************************
- * Name: esp_wifi_free_eb
+ * Name: esp_wifi_set_password
  *
  * Description:
- *   Free WiFi receive callback input eb pointer
+ *   Set WiFi station password
  *
  * Input Parameters:
- *   eb - WiFi receive callback input eb pointer
+ *   pdata - Password buffer pointer
+ *   len   - Password length
+ *
+ * Returned Value:
+ *   0 if success or -1 if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_sta_set_password(const uint8_t *pdata, uint8_t len);
+
+/****************************************************************************
+ * Name: esp_wifi_set_ssid
+ *
+ * Description:
+ *   Set WiFi station SSID
+ *
+ * Input Parameters:
+ *   pdata - SSID buffer pointer
+ *   len   - SSID length
  *
  * Returned Value:
+ *   0 if success or -1 if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_sta_set_ssid(const uint8_t *pdata, uint8_t len);
+
+/****************************************************************************
+ * Name: esp_wifi_sta_connect
+ *
+ * Description:
+ *   Trigger WiFi station connection action
+ *
+ * Input Parameters:
  *   None
  *
+ * Returned Value:
+ *   0 if success or -1 if fail
+ *
  ****************************************************************************/
 
-void esp_wifi_free_eb(void *eb);
+int esp_wifi_sta_connect(void);
 
 /****************************************************************************
- * Name: esp_wifi_set_password
+ * Name: esp_wifi_sta_disconnect
  *
  * Description:
- *   Set WiFi password
+ *   Trigger WiFi station disconnection action
+ *
+ * Input Parameters:
+ *   None
+ *
+ * Returned Value:
+ *   0 if success or -1 if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_sta_disconnect(void);
+#endif
+
+#ifdef ESP32_WLAN_HAS_SOFTAP
+
+/****************************************************************************
+ * Name: esp_wifi_softap_start
+ *
+ * Description:
+ *   Start WiFi softAP.
+ *
+ * Input Parameters:
+ *   None
+ *
+ * Returned Value:
+ *   0 if success or -1 if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_softap_start(void);
+
+/****************************************************************************
+ * Name: esp_wifi_softap_stop
+ *
+ * Description:
+ *   Stop WiFi softAP.
+ *
+ * Input Parameters:
+ *   None
+ *
+ * Returned Value:
+ *   0 if success or -1 if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_softap_stop(void);
+
+/****************************************************************************
+ * Name: esp_wifi_softap_send_data
+ *
+ * Description:
+ *   Use WiFi softAP interface to send 802.3 frame
+ *
+ * Input Parameters:
+ *   pbuf - Packet buffer pointer
+ *   len  - Packet length
+ *
+ * Returned Value:
+ *   0 if success or others if fail
+ *
+ ****************************************************************************/
+
+int esp_wifi_softap_send_data(void *pbuf, uint32_t len);
+
+/****************************************************************************
+ * Name: esp_wifi_softap_register_recv_cb
+ *
+ * Description:
+ *   Regitser WiFi softAP receive packet callback function

Review comment:
       ```suggestion
    *   Register WiFi softAP receive packet callback function
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to