wpa: fix bug

This commit is contained in:
cinap_lenrek 2013-06-16 01:20:35 +02:00
parent 4be3d64abb
commit 0d1801902d

View file

@ -208,7 +208,7 @@ trunc: sysfatal("invalid or truncated RSNE; brsne: %s", buf);
if(rsne[0] == 0x30){
if(memcmp(p, rsnccmpoui, 4) == 0)
groupcipher = &ccmp;
else if(memcmp(p, rsnccmpoui, 4) == 0)
else if(memcmp(p, rsntkipoui, 4) == 0)
groupcipher = &tkip;
else {
sysfatal("unrecognized RSN group cipher; brsne: %s", buf);