mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(openthread): use the actual receive sensitivity for link quality evaluation
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_check.h"
|
||||
#include "esp_ieee802154.h"
|
||||
#include "esp_ieee802154_types.h"
|
||||
#include "esp_mac.h"
|
||||
#include "esp_openthread_common.h"
|
||||
#include "esp_openthread_common_macro.h"
|
||||
@@ -37,7 +36,6 @@
|
||||
#include "esp_coex_i154.h"
|
||||
#endif
|
||||
|
||||
#define ESP_RECEIVE_SENSITIVITY -120
|
||||
#define ESP_OPENTHREAD_XTAL_ACCURACY CONFIG_OPENTHREAD_XTAL_ACCURACY
|
||||
#define ESP_OPENTHREAD_CSL_ACCURACY CONFIG_OPENTHREAD_CSL_ACCURACY
|
||||
#define ESP_OPENTHREAD_CSL_UNCERTAIN CONFIG_OPENTHREAD_CSL_UNCERTAIN
|
||||
@@ -484,7 +482,7 @@ otError otPlatRadioSetCcaEnergyDetectThreshold(otInstance *aInstance, int8_t aTh
|
||||
|
||||
int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance)
|
||||
{
|
||||
return ESP_RECEIVE_SENSITIVITY;
|
||||
return esp_ieee802154_get_receive_sensitivity();
|
||||
}
|
||||
|
||||
#if CONFIG_OPENTHREAD_DIAG
|
||||
|
||||
Reference in New Issue
Block a user