nerves-networking / vintage_net_wifi

WiFi networking for VintageNet
Apache License 2.0
32 stars 18 forks source link

Fix flags from not matching due to prefixes #146

Closed fhunleth closed 1 year ago

fhunleth commented 1 year ago

This fixes:

Ignoring unknown cipher flag: SHA256-CCMP

The problem was that the string contained PSK-SHA256-CCMP. The match for "PSK" came before "PSK-SHA256" so the parser erroneously picked it.

This fixes the issue, adds tests, and fixes a similar issue with EAP.