My Intel AX201/Ubuntu 20.04 was getting hit hard by the PTK0 rekey issue:
traffic would slow down to dialup speeds after the first rekey. Fixing this and having the fix work with NetworkManager
requires recompiling wpa_supplicant
with a patch. Steps:
- Get current Ubuntu/Debian source:
apt-get source wpasupplicant
- Get latest version:
git clone git://w1.fi/hostap.git
- Install packaged version config:
cp wpa-2.9/debian/config/wpasupplicant/linux hostap/wpa_supplicant/.config
- Save below patch to
supplicant.patch
and apply:patch -p1 < supplicant.patch
- Rebuild supplicant:
cd hostap/wpa_supplicant && make
- Move original binary aside (as root):
mv /sbin/wpa_supplicant /sbin/wpa_supplicant.orig