No subject


Mon Jun 3 00:10:54 EDT 2013


get rid of the issue (depending on the value of bss_expiration_scan_count).
I understand that one solution would be to change Android to mitigate this =
problem, and I can surely do that but I thought that the rationale behind b=
ss_expiration_age was to complement the bss_expiration_scan_count in this s=
cenario. The "hack" we are using in our android test cases right now is to =
trigger the behaviour of bss_expiration_scan_count, i.e make two scan reque=
sts before fetching the scan result.
If I may ask, what is the reason for having this bss_expiration_age  variab=
le? And why is it 180 seconds?

[Jouni]
If you are trying to modify UI behavior, the correct place to do that is in=
 the UI implementation..

[Ola]
No, not really, I just mentioned the settings menu because that is the plac=
e where the frequency of scans is highest and I based my new value dependin=
g on that. Of course I will get the same error by calling WifiManager. getS=
canResults() outside any UI context.

[Jouni]
This does not sound desirable. Why would Android behave any differently her=
e?

[Ola]
You are right but since I don't know a lot about other supported platforms =
and people probably are happy on those, I found it kind of drastic to chang=
e it everywhere. My mistake.

To sum up. I just want to make sure that you understand my problem. If you =
do, and you still think that I should fix the problem somewhere in the Andr=
oid framework, I will go ahead and do that. As you said, the preferable sol=
ution in that case would be to make new scans depending on the age of the B=
SS.

Thanks for helping me out,
Ola

--_000_E9A9E8106200C64AB9ECC8CAE21CE73A05651C241A95seldmbx02co_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:11.0pt;
	font-family:"Calibri","sans-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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle19
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.EmailStyle20
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle22
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'c=
olor:#1F497D'>Hi again,<o:p></o:p></span></p><p class=3DMsoNormal><span sty=
le=3D'color:#1F497D'>I apologize that I haven&#8217;t answered before.<o:p>=
</o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&n=
bsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>[Jo=
uni]<o:p></o:p></span></p><p class=3DMsoNormal>Could you please clarify why=
 wpa_supplicant maintaining a BSS entry in<o:p></o:p></p><p class=3DMsoNorm=
al>its internal cache for a longer time than the BSS is in radio range is<o=
:p></o:p></p><p class=3DMsoNormal>an issue? If any component needs to know =
whether the BSS is still<o:p></o:p></p><p class=3DMsoNormal>present, it wou=
ld need to look at the age of the entry and potentially<o:p></o:p></p><p cl=
ass=3DMsoNormal>request a new scan to be performed.<o:p></o:p></p><p class=
=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p c=
lass=3DMsoNormal><span style=3D'color:#1F497D'>[Ola]<o:p></o:p></span></p><=
p class=3DMsoNormal><span style=3D'color:#1F497D'>From I higher layer API, =
asking for scan results will include these non wanted BSS:es aswell. As men=
tioned, a scan does not help, </span><span style=3D'color:#1F497D'>I</span>=
<span style=3D'color:#1F497D'> need two scans to get rid of the issue (depe=
nding on the value of bss_expiration_scan_count).<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span style=3D'color:#1F497D'>I understand that one soluti=
on would be to change Android to mitigate this problem, and I can surely do=
 that but I thought that the rationale behind bss_expiration_age was to com=
plement the bss_expiration_scan_count in this scenario. The &#8220;hack&#82=
21; we are using in our android test cases right now is to trigger the beha=
viour of bss_expiration_scan_count, i.e make two scan requests before fetch=
ing the </span><span style=3D'color:#1F497D'>scan </span><span style=3D'col=
or:#1F497D'>result.<o:p></o:p></span></p><p class=3DMsoNormal><span style=
=3D'color:#1F497D'>If I may ask, what is the reason for having this bss_exp=
iration_age &nbsp;variable? And why is it 180 seconds?<o:p></o:p></span></p=
><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span=
></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>[Jouni]<o:p></o:p><=
/span></p><p class=3DMsoNormal>If you are trying to modify UI behavior, the=
 correct place to do that is<span style=3D'color:#1F497D'> </span>in the UI=
 implementation..<o:p></o:p></p><p class=3DMsoNormal><span style=3D'color:#=
1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span style=3D'col=
or:#1F497D'>[Ola]</span><span style=3D'color:#1F497D'><o:p></o:p></span></p=
><p class=3DMsoNormal><span style=3D'color:#1F497D'>No, not really, I just =
mentioned the settings menu because that is the place where the frequency o=
f scans </span><span style=3D'color:#1F497D'>is</span><span style=3D'color:=
#1F497D'> highest and I based my new value depending on that. Of course I w=
ill get the same error by calling WifiManager.</span> <span style=3D'color:=
#1F497D'>getScanResults() outside any UI context.<o:p></o:p></span></p><p c=
lass=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p>=
<p class=3DMsoNormal><span style=3D'color:#1F497D'>[Jouni]<o:p></o:p></span=
></p><p class=3DMsoNormal>This does not sound desirable. Why would Android =
behave any differently<span style=3D'color:#1F497D'> </span>here?<span styl=
e=3D'color:#1F497D'><o:p></o:p></span></p><p class=3DMsoNormal><span style=
=3D'color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal>[Ola]<s=
pan style=3D'color:#1F497D'><o:p></o:p></span></p><p class=3DMsoNormal>You =
are right but since I don&#8217;t know a lot about other supported platform=
s and people probably are happy on those, I found it kind of drastic to cha=
nge it everywhere. My mistake.<span style=3D'color:#1F497D'><o:p></o:p></sp=
an></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:p>=
</span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>To sum up. I =
just want to make sure that </span><span style=3D'color:#1F497D'>you unders=
tand my problem</span><span style=3D'color:#1F497D'>. </span><span style=3D=
'color:#1F497D'>If you do, and </span><span style=3D'color:#1F497D'>you sti=
ll think that I should fix the problem somewhere in the Android framework, =
I will go ahead and do that.</span><span style=3D'color:#1F497D'> As you sa=
id, the preferable solution in that case would be to make new scans dependi=
ng on the age of the BSS.</span><span style=3D'color:#1F497D'><o:p></o:p></=
span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'><o:p>&nbsp;</o:=
p></span></p><p class=3DMsoNormal><span style=3D'color:#1F497D'>Thanks</spa=
n><span style=3D'color:#1F497D'> for helping me out</span><span style=3D'co=
lor:#1F497D'>,<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'col=
or:#1F497D'>Ola</span><span style=3D'color:#1F497D'><o:p></o:p></span></p><=
/div></body></html>=

--_000_E9A9E8106200C64AB9ECC8CAE21CE73A05651C241A95seldmbx02co_--


More information about the HostAP mailing list