mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(esp_supplicant): Fix compilation issues with btm and rrm status funcs
- Ensure that the btm and rrm status funcs can be used even if 80211.kv are not enabled in menuconfig. They will return false in such cases.
This commit is contained in:
parent
fba9b50456
commit
e2ba2cfbe2
@ -53,6 +53,15 @@ int esp_wnm_send_bss_transition_mgmt_query(enum btm_query_reason query_reason,
|
||||
*/
|
||||
bool esp_wnm_is_btm_supported_connection(void);
|
||||
|
||||
/**
|
||||
* @brief Check RRM capability of connected AP
|
||||
*
|
||||
* @return
|
||||
* - true: AP supports RRM
|
||||
* - false: AP does not support RRM or station not connected to AP
|
||||
*/
|
||||
bool esp_rrm_is_rrm_supported_connection(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -744,15 +744,6 @@ static uint8_t get_extended_caps_ie(uint8_t *ie, size_t len)
|
||||
}
|
||||
|
||||
#else /* CONFIG_IEEE80211KV */
|
||||
bool esp_rrm_is_rrm_supported_connection(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool esp_wnm_is_btm_supported_connection(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* CONFIG_IEEE80211KV */
|
||||
|
||||
void esp_set_scan_ie(void)
|
||||
@ -920,6 +911,20 @@ int esp_supplicant_post_evt(uint32_t evt_id, uint32_t data)
|
||||
}
|
||||
#endif /* CONFIG_SUPPLICANT_TASK */
|
||||
#else /* defined(CONFIG_IEEE80211KV) || defined(CONFIG_IEEE80211R) */
|
||||
void esp_set_scan_ie(void) { }
|
||||
#endif /* defined(CONFIG_IEEE80211KV) || defined(CONFIG_IEEE80211R) */
|
||||
|
||||
#ifndef CONFIG_IEEE80211KV
|
||||
bool esp_rrm_is_rrm_supported_connection(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool esp_wnm_is_btm_supported_connection(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
int esp_rrm_send_neighbor_report_request(void)
|
||||
{
|
||||
return -1;
|
||||
@ -937,8 +942,7 @@ int esp_wnm_send_bss_transition_mgmt_query(enum btm_query_reason query_reason,
|
||||
return -1;
|
||||
}
|
||||
|
||||
void esp_set_scan_ie(void) { }
|
||||
#endif /* defined(CONFIG_IEEE80211KV) || defined(CONFIG_IEEE80211R) */
|
||||
#endif /* !CONFIG_IEEE80211KV */
|
||||
|
||||
#if defined(CONFIG_IEEE80211KV) || defined(CONFIG_IEEE80211R) || defined(CONFIG_WPA3_SAE)
|
||||
void esp_set_assoc_ie(uint8_t *bssid, const u8 *ies, size_t ies_len, bool mdie)
|
||||
|
Loading…
Reference in New Issue
Block a user