mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-03 15:04:39 +00:00
Merge branch 'fix/wifi_wps_pbc_overlap' into 'master'
fix(wpa_supplicant): Add support to detect PBC overlap in wps registrar mode Closes WIFIBUG-56 See merge request espressif/esp-idf!25331
This commit is contained in:
@@ -870,6 +870,9 @@ void wps_registrar_complete(struct wps_registrar *registrar, const u8 *uuid_e,
|
||||
void wps_registrar_probe_req_rx(struct wps_registrar *reg, const u8 *addr,
|
||||
const struct wpabuf *wps_data,
|
||||
int p2p_wildcard);
|
||||
#ifdef ESP_SUPPLICANT
|
||||
bool esp_wps_registrar_check_pbc_overlap(struct wps_context *wps);
|
||||
#endif /* ESP_SUPPLICANT */
|
||||
int wps_registrar_update_ie(struct wps_registrar *reg);
|
||||
int wps_registrar_get_info(struct wps_registrar *reg, const u8 *addr,
|
||||
char *buf, size_t buflen);
|
||||
|
@@ -1228,6 +1228,19 @@ void wps_registrar_probe_req_rx(struct wps_registrar *reg, const u8 *addr,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef ESP_SUPPLICANT
|
||||
bool esp_wps_registrar_check_pbc_overlap(struct wps_context *wps)
|
||||
{
|
||||
|
||||
if (wps_registrar_pbc_overlap(wps->registrar, NULL, NULL)) {
|
||||
wps->registrar->force_pbc_overlap = 1;
|
||||
wps_pbc_overlap_event(wps);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif /* ESP_SUPPLICANT */
|
||||
|
||||
int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr,
|
||||
const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len)
|
||||
|
Reference in New Issue
Block a user