-
Notifications
You must be signed in to change notification settings - Fork 13.3k
optionally allow WPS #4889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optionally allow WPS #4889
Changes from 9 commits
3fddf2a
e346d06
852b6a8
24e2aa7
a962930
69a185b
9614781
5439698
a049162
b2220de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -571,6 +571,9 @@ int32_t ESP8266WiFiSTAClass::RSSI(void) { | |
// -------------------------------------------------- STA remote configure ----------------------------------------------- | ||
// ----------------------------------------------------------------------------------------------------------------------- | ||
|
||
#ifdef NO_EXTRA_4K_HEAP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a descriptive comment about what the #define means, or at least reference the issue. |
||
/* NO_EXTRA_4K_HEAP's description in cores/esp8266/core_esp8266_main.cpp */ | ||
|
||
void wifi_wps_status_cb(wps_cb_status status); | ||
|
||
/** | ||
|
@@ -650,7 +653,7 @@ void wifi_wps_status_cb(wps_cb_status status) { | |
esp_schedule(); // resume the beginWPSConfig function | ||
} | ||
|
||
|
||
#endif // NO_EXTRA_4K_HEAP | ||
|
||
bool ESP8266WiFiSTAClass::_smartConfigStarted = false; | ||
bool ESP8266WiFiSTAClass::_smartConfigDone = false; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
|
||
#include "ESP8266WiFiType.h" | ||
#include "ESP8266WiFiGeneric.h" | ||
#include "user_interface.h" | ||
|
||
|
||
class ESP8266WiFiSTAClass { | ||
|
@@ -92,7 +93,13 @@ class ESP8266WiFiSTAClass { | |
|
||
public: | ||
|
||
#ifdef NO_EXTRA_4K_HEAP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a descriptive comment about what the #define means, or at least reference the issue. |
||
bool beginWPSConfig(void); | ||
#else | ||
inline bool beginWPSConfig(void) __attribute__((always_inline)) { | ||
return WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool(); | ||
} | ||
#endif | ||
|
||
bool beginSmartConfig(); | ||
bool stopSmartConfig(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -575,13 +575,27 @@ enum wps_cb_status { | |
WPS_CB_ST_UNK, | ||
}; | ||
|
||
typedef void (*wps_st_cb_t)(int status); | ||
|
||
#ifdef NO_EXTRA_4K_HEAP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a descriptive comment about what the #define means, or at least reference the issue. @igrr In this case, should the change be moved into a patch that gets applied over the original user_interface.h file? I'm thinking of migration to future sdk versions, and what will happen with our own changes to this file. |
||
/* check cores/esp8266/core_esp8266_main.cpp for comments about this */ | ||
|
||
bool wifi_wps_enable(WPS_TYPE_t wps_type); | ||
bool wifi_wps_disable(void); | ||
bool wifi_wps_start(void); | ||
|
||
typedef void (*wps_st_cb_t)(int status); | ||
bool wifi_set_wps_cb(wps_st_cb_t cb); | ||
|
||
#else | ||
|
||
bool WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool (); | ||
#define wifi_wps_enable(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool() | ||
#define wifi_wps_disable() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool() | ||
#define wifi_wps_start() WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool() | ||
#define wifi_set_wps_cb(...) WPS_is_unavailable_in_this_configuration__Please_check_FAQ_or_board_generator_tool() | ||
|
||
#endif | ||
|
||
|
||
typedef void (*freedom_outside_cb_t)(uint8 status); | ||
int wifi_register_send_pkt_freedom_cb(freedom_outside_cb_t cb); | ||
void wifi_unregister_send_pkt_freedom_cb(void); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a descriptive comment about what the #define means (explain it's either WPS or stack optimization, but not both), or at least reference the issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this (above, below) be a clear enough explanation with its references ?