diff --git a/components/esp8266/include/internal/esp_wifi_internal.h b/components/esp8266/include/internal/esp_wifi_internal.h index 97ea9ad0..fc100bb0 100644 --- a/components/esp8266/include/internal/esp_wifi_internal.h +++ b/components/esp8266/include/internal/esp_wifi_internal.h @@ -40,6 +40,29 @@ wifi_rx_pbuf_mem_type_t esp_wifi_get_rx_pbuf_mem_type(void); int8_t esp_wifi_get_ap_rssi(void); +/** + * @brief The RX callback function when receive probe request packet. + * When probe request packet is received, the callback function will be called. + * + * @param frame Data of received probe request. + * @param len length of received probe request. + * @param rssi rssi of received probe request. + */ +typedef void (*wifi_sta_rx_probe_req_t)(const uint8_t *frame, int len, int rssi); + +/** + * @brief Register the RX callback function when receive probe request. + * + * When probe request packet is received, the registered callback function will be called. + * + * @param cb callback + * + * @return + * - ESP_OK: succeed + * - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init + */ +esp_err_t esp_wifi_set_sta_rx_probe_req(wifi_sta_rx_probe_req_t cb); + #ifdef __cplusplus } #endif diff --git a/components/esp8266/lib/VERSION b/components/esp8266/lib/VERSION index f43477f0..b480b08f 100644 --- a/components/esp8266/lib/VERSION +++ b/components/esp8266/lib/VERSION @@ -1,7 +1,7 @@ gwen: core: 254208c - net80211: 254208c - pp: cd2eae1 + net80211: 8ec2d94 + pp: 8ec2d94 wpa: 4e2372f espnow: 4e2372f wps: 4e2372f diff --git a/components/esp8266/lib/libnet80211.a b/components/esp8266/lib/libnet80211.a index 1217cf75..c0c09367 100644 Binary files a/components/esp8266/lib/libnet80211.a and b/components/esp8266/lib/libnet80211.a differ diff --git a/components/esp8266/lib/libpp.a b/components/esp8266/lib/libpp.a old mode 100755 new mode 100644 index 48c46f5d..520e080b Binary files a/components/esp8266/lib/libpp.a and b/components/esp8266/lib/libpp.a differ