]> granicus.if.org Git - esp-idf/commitdiff
wifi: bugfix of assert when do wps with mikrotik
authorDeng Xin <dengxin@espressif.com>
Mon, 29 Oct 2018 07:28:32 +0000 (15:28 +0800)
committerbot <bot@espressif.com>
Mon, 29 Oct 2018 13:29:41 +0000 (13:29 +0000)
Problem Decribe

The problem happenned when do wps with a mikrotik router
1. router always want to do connect with 32 without EAP-WSC step
2. after 4 way timeour, 32 crash

Root Cause

The reason why can not start EAP-WSC step is router's check method is RSN > WPA > WPS, when it found there include RSN and WPS in assoc, it will choice do 4 way rather than WPS
The reason of second problem is 32's EAPOL start timer didn't stop and send EAPOL start to a null pointer

Soultion
1. remove RSN and WPA ie when do WPS step
2. check mac address's pointer before send EAPOL start

closes: https://github.com/espressif/esp-idf/issues/2382

components/esp32/lib

index b9b1d799752caa19897c8f60087b29127864cdcc..ee0d0b152f4101ec42ef458f176773b9b7d791e5 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b9b1d799752caa19897c8f60087b29127864cdcc
+Subproject commit ee0d0b152f4101ec42ef458f176773b9b7d791e5