<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">HI all,
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">I noticed a wrong behavior in the supplicant's algorithm for selecting networks.<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">Here is the scenario:
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">First, a connection to a wep access point.<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">Here are its characteristics (Android framework trace):
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): Current config: ID: 0 SSID: &quot;Paulx&quot; BSSID: null PRIO: 0<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): KeyMgmt: NONE Protocols: WPA RSN<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): AuthAlgorithms: OPEN SHARED<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): PairwiseCiphers: TKIP CCMP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): GroupCiphers: WEP40 WEP104 TKIP CCMP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): PSK:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): eap:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): phase1:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): phase2:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): identity:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): anonymous_identity:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): password: *<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): client_cert:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): engine: 0<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): engine_id:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): key_id:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): ca_cert:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): pcsc:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): pac_file:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): IP assignment: DHCP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): Proxy settings: NONE<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:08:42.259 I/WifiConfigStore( 463): LinkAddresses: [] Routes: [] DnsAddresses: []
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">I dynamically change the access point's security and switch to wpa2 personal:
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">Characteristics are:
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): Current config: ID: 0 SSID: &quot;Paulx&quot; BSSID: null PRIO: 0<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): KeyMgmt: WPA_PSK Protocols: WPA RSN<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): AuthAlgorithms:<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): PairwiseCiphers: TKIP CCMP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): GroupCiphers: WEP40 WEP104 TKIP CCMP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): PSK: *<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): eap:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): phase1:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): phase2:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): identity:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): anonymous_identity:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): password: *<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): client_cert:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): engine: 0<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): engine_id:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): key_id:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): ca_cert:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): pcsc:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): pac_file:
<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): IP assignment: DHCP<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): Proxy settings: NONE<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">07-16 15:53:31.315 I/WifiConfigStore( 463): LinkAddresses: [] Routes: [] DnsAddresses: []
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">So it has the same ssid, the same bssid, the same protocols, pairwise ciphers and group ciphers. The only difference here is the difference
 between key management. A bit wise operator between the scanned keymgmt and the remembered keymgmt returns 0.<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">What happens is : first the station is deauthenticated from the wep Ap (obviously), but when the wpa2 ap appears in the scan results, the
 supplicant tries to connect to this ap as if it was the prevously remembered WEP one. The association fails but the supplicant keeps trying to reconnect to this wrong AP 10 times before it is disabled.<o:p></o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">What is wrong here is that the wpa_scan_res_match function, and specifically wpa_supplicant_ssid_bss_match does not manage to filter out
 this particular case. I think that after all the tests performed in wpa_supplicant_ssid_bss_match, if the key management is different, we can safely say that the scanned ap and the remembered one are two different networks and that the supplicant should not
 think that it can connect to the newly appeared wpa2 AP.<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">What are your comments about this issue?<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="-qt-block-indent:0"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">Thanks,
<o:p></o:p></span></p>
<p style="-qt-paragraph-type:empty;-qt-block-indent:0"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal" style="-qt-block-indent:0"><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:black">Paul Naoumenko</span><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"><o:p></o:p></span></p>
</div>
<p>---------------------------------------------------------------------<br>
Intel Corporation SAS (French simplified joint stock company)<br>
Registered headquarters: "Les Montalets"- 2, rue de Paris, <br>
92196 Meudon Cedex, France<br>
Registration Number:&nbsp; 302 456 199 R.C.S. NANTERRE<br>
Capital: 4,572,000 Euros</p>

<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></body>
</html>