BT/WiFi coex fix needed for IDF4.1
This commit is contained in:
parent
6b3e8d00c2
commit
dceab074ca
@ -82,7 +82,12 @@ void wifi_sniffer_init(void) {
|
|||||||
|
|
||||||
void switch_wifi_sniffer(uint8_t state) {
|
void switch_wifi_sniffer(uint8_t state) {
|
||||||
if (state) {
|
if (state) {
|
||||||
// start sniffer
|
// start sniffer
|
||||||
|
#if (BLECOUNTER)
|
||||||
|
// workaround needed for IDF 4.1
|
||||||
|
// see https://github.com/espressif/esp-idf/issues/5427
|
||||||
|
esp_wifi_set_ps(WIFI_PS_MIN_MODEM);
|
||||||
|
#endif
|
||||||
esp_wifi_start();
|
esp_wifi_start();
|
||||||
esp_wifi_set_promiscuous(true);
|
esp_wifi_set_promiscuous(true);
|
||||||
esp_wifi_set_channel(WIFI_CHANNEL_MIN, WIFI_SECOND_CHAN_NONE);
|
esp_wifi_set_channel(WIFI_CHANNEL_MIN, WIFI_SECOND_CHAN_NONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user