You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "pkarashchenko (via GitHub)" <gi...@apache.org> on 2023/04/05 18:04:10 UTC
[GitHub] [nuttx] pkarashchenko commented on a diff in pull request #8963: esp32/wifi: Fix Wi-Fi driver parameter settings
pkarashchenko commented on code in PR #8963:
URL: https://github.com/apache/nuttx/pull/8963#discussion_r1158847254
##########
arch/xtensa/src/esp32/esp32_wlan.c:
##########
@@ -1763,12 +1763,46 @@ static void wlan_softap_tx_done(uint8_t *data, uint16_t *len, bool status)
wlan_tx_done(priv);
}
-#endif
+#endif /* ESP32_WLAN_HAS_SOFTAP */
/****************************************************************************
* Public Functions
****************************************************************************/
+/****************************************************************************
+ * Name: esp32_wlan_sta_set_linkstatus
+ *
+ * Description:
+ * Set Wi-Fi station link status
+ *
+ * Parameters:
+ * linkstatus - true Notifies the networking layer about an available
+ * carrier, false Notifies the networking layer about an
+ * disappeared carrier.
+ *
+ * Returned Value:
+ * OK on success; Negated errno on failure.
+ *
+ ****************************************************************************/
+
+#ifdef ESP32_WLAN_HAS_STA
+int esp32_wlan_sta_set_linkstatus(bool linkstatus)
+{
+ int ret = -EINVAL;
+ FAR struct wlan_priv_s *priv = &g_wlan_priv[ESP32_WLAN_STA_DEVNO];
Review Comment:
Remove FAR
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org