No subject

bogus at does.not.exist.com bogus at does.not.exist.com
Sat Jan 3 07:49:37 PST 2009


AP, even the security is not matching.
=20
I check the code, and maybe caused by wpa_supplicant_select_bss in
events.c
=20
In the block about "try to find non-WPA AP", there is no check for WPA
ie liking in block "Try to find WPA-enabled AP".
=20
Check
  if (bss->wpa_ie_len =3D=3D 0 && bss->rsn_ie_len =3D=3D 0) {
   wpa_printf(MSG_DEBUG, "   skip - no WPA/RSN IE");
   continue;
  }

I think to fix, also need reverse check for WPA ie in the block "try to
find non-WPA AP", liking
=20
  e =3D wpa_blacklist_get(wpa_s, bss->bssid);
  if (e && e->count > 1) {
   wpa_printf(MSG_DEBUG, "   skip - blacklisted");
   continue;
  }
=20
+  if (bss->wpa_ie_len !=3D 0 || bss->rsn_ie_len !=3D 0) {
+   wpa_printf(MSG_DEBUG, "   skip - WPA/RSN IE");
+   continue;
+  }
=20
  for (ssid =3D group; ssid; ssid =3D ssid->pnext) {
=20
=20
Does anyone encounter same issue?
=20
BRs
Baozhong

------_=_NextPart_001_01CA4E3C.B78644A3
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3603" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>Hi,=20
all</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>Does it be=20
possible bug?</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>I tested=20
with wpa_supplicant 0.5.11 and 0.6.9, same behavior.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>I have one=20
AP with "test" SSID, and wpapsk security.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>I add one=20
network with "test" SSID and WEP security.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>From log, AP=20
is found by scan and wpa_supplicant tries to associate with AP, even the =

security is not matching.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>I check the=20
code, and maybe caused by wpa_supplicant_select_bss in=20
events.c</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>In the block=20
about "try to find non-WPA AP", there is no check for WPA ie =
liking in=20
block "Try to find WPA-enabled AP".</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>Check</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>  if (bss->wpa_ie_len =3D=3D 0 =
&&=20
bss->rsn_ie_len =3D=3D 0) =
{<BR>   wpa_printf(MSG_DEBUG,=20
"   skip - no WPA/RSN=20
IE");<BR>   continue;<BR>  }<BR></SPAN></FONT></=
DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>I think to=20
fix, also need reverse check for WPA ie in the block "try to find =
non-WPA AP",=20
liking</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>  e =3D wpa_blacklist_get(wpa_s,=20
bss->bssid);<BR>  if (e && e->count > 1)=20
{<BR>   wpa_printf(MSG_DEBUG, "   skip -=20
blacklisted");<BR>   continue;<BR>  }</SPAN></FO=
NT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>+  if (bss->wpa_ie_len !=3D =
0 ||=20
bss->rsn_ie_len !=3D 0) {<BR>+   wpa_printf(MSG_DEBUG, =

"   skip - WPA/RSN=20
IE");<BR>+   continue;<BR>+  }</SPAN></FONT></DI=
V>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>  for (ssid =3D group; ssid; ssid =
=3D=20
ssid->pnext) {</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN =
class=3D272164207-16102009>Does anyone=20
encounter same issue?</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>BRs</SPAN></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2><SPAN=20
class=3D272164207-16102009>Baozhong</DIV></SPAN></FONT></BODY></HTML>

------_=_NextPart_001_01CA4E3C.B78644A3--



More information about the Hostap mailing list