tmiw / ezDV

A FreeDV device based on the ESP32.
89 stars 4 forks source link

Add support for Wi-Fi roaming. #36

Closed tmiw closed 3 months ago

tmiw commented 3 months ago

This PR fixes a bug encountered after upgrading the Ubiquiti management interface to 8.1.113 from 6.x (with UAC-HD firmware now being version 6.6.55.15189). Basically, after a minute or two, ezDV would no longer be responsive on the network and need to be rebooted. This is despite disabling the various settings on the AP that could be contributing (such as fast roaming and band steering).

To fix this bug, the PR does the following:

  1. Enables all Wi-Fi roaming related options in ESP-IDF menuconfig.
  2. Adds support code in ezdv::network::WirelessTask to actually enable the use of (1).
  3. Tweaks the memory usage of the FlexRadio and Icom tasks in the system to compensate (these were allocating way more memory than absolutely necessary).
  4. Disables WPA Enterprise support in ESP-IDF (not related, but reduces the RAM and flash usage a bit since ezDV doesn't actually support configuring this).
  5. Bumps the TX AMPDU window up to 16 (from 6) due to some packet dropouts noted after doing 1-4 above.

Before merging: