No subject
bogus at does.not.exist.com
bogus at does.not.exist.com
Sat Jan 3 07:49:37 PST 2009
statement is called
set80211priv(priv, IEEE80211_IOCTL_SETMLME, &mlme,
sizeof(mlme));=20
and it invokes ieee80211_ioctl_setmlme method and time out value is
rested.
=20
I'm new to both madwifi and hostapd and hence cannot comments where the
things went wrong....
=20
Could some one help me to solve this.
=20
Thanks very much.
Sharad.
=20
=20
=20
=20
=20
------_=_NextPart_001_01C9A172.6EF4C6F6
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.3492" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>HI,</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT><FONT face=3D"Trebuchet MS" =
color=3D#000080=20
size=3D2><SPAN class=3D782402910-10032009></SPAN></FONT><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080 size=3D2><SPAN =
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG>My =
configuration:</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>H/W: Fonera=20
(4+1)</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009> &nbs=
p; =20
Atheros2315A<BR></DIV></SPAN></FONT>
<DIV><FONT face=3D"Trebuchet MS"><FONT color=3D#000080><FONT =
size=3D2><SPAN=20
class=3D782402910-10032009>S/W: =
</SPAN></FONT><FONT=20
size=3D2><SPAN class=3D782402910-10032009>Openwrt(kamikaze)=20
7.09.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009> &nbs=
p; =20
hostapd-0.5.7</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009> &nbs=
p; =20
madwifi-trunk-r3314</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>I'm able to set inactivity time out period in =
open and=20
wep mode, </SPAN></FONT><FONT face=3D"Trebuchet MS" color=3D#000080 =
size=3D2><SPAN=20
class=3D782402910-10032009>where as not able to set it up WPA=20
mode.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><BR>The command I have used is:=20
</SPAN></FONT><FONT face=3D"Trebuchet MS" color=3D#000080 =
size=3D2><SPAN=20
class=3D782402910-10032009>$iwpriv ath0 inact_auth=20
<value></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>I debugged both madiwifi and hostapd using=20
printk and here is my observation...</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG>Madwifi:</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>for associated clients the default time out =
is 180 secs=20
and for authenticated clients its 300secs.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>1) When an mu associates=20
to ap, <STRONG><EM>ieee80211_node_join</EM></STRONG> method(of =
ieee80211_node.c) is called and the time out value is set =
at</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM> ni->ni_inact_reload =3D =
vap->iv_inact_auth;<BR> ni->ni_inact =3D=20
ni->ni_inact_reload;<BR></EM></STRONG></SPAN></FONT><FONT =
size=3D2><SPAN=20
class=3D782402910-10032009><FONT face=3D"Trebuchet MS" =
color=3D#000080>till here every=20
thing is fine.</FONT></SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080>2) But this value is <STRONG>rested</STRONG> from=20
<STRONG><EM>ieee80211_ioctl_setmlme</EM></STRONG> method(ieee80211_w=
ireless.c), I.e=20
it call </FONT></SPAN></FONT><FONT size=3D2><SPAN=20
class=3D782402910-10032009><FONT face=3D"Trebuchet MS"=20
color=3D#000080><STRONG><EM>ieee80211_node_authorize(=20
</EM></STRONG>ieee80211_node.c ).</FONT></SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080>and the reload value is updated i.e =
</FONT></SPAN></FONT><FONT=20
size=3D2><SPAN class=3D782402910-10032009><FONT face=3D"Trebuchet MS"=20
color=3D#000080><STRONG><EM>ni->ni_inact_reload =3D=20
ni->ni_vap->iv_inact_run; =
</EM></STRONG></FONT></SPAN></FONT></DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080></FONT></SPAN></FONT> </DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080>3) and it is set to<EM><STRONG> =
</STRONG></EM>ni->ni_inact from=20
ieee80211_input.c,<STRONG><EM> ni->ni_inact =3D=20
ni->ni_inact_reload;</EM></STRONG></FONT></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM></EM></STRONG></SPAN></FONT> =
</DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG>Hostapd:</STRONG></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>From=20
<STRONG><EM>madwifi_set_sta_authorized</EM></STRONG> method( of=20
driver_madwifi.c) this statement is called</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009> &nbs=
p; =20
<STRONG><EM>set80211priv(priv, IEEE80211_IOCTL_SETMLME,=20
&mlme, sizeof(mlme));</EM> </STRONG></SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>and it invokes</SPAN></FONT><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009> </SPAN></FONT><FONT =
face=3D"Trebuchet MS"=20
color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM>ieee80211_ioctl_setmlme</EM></STRO=
NG>=20
method and time out value is rested.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>I'm new to both madwifi and hostapd and hence =
cannot=20
comments where the things went wrong....</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>Could some one help me to solve=20
this.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009></SPAN></FONT> </DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>Thanks very much.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009>Sharad.</SPAN></FONT></DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM></EM></STRONG></SPAN></FONT> =
</DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM></EM></STRONG></SPAN></FONT> =
</DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM></EM></STRONG></SPAN></FONT> =
</DIV>
<DIV><FONT face=3D"Trebuchet MS" color=3D#000080 size=3D2><SPAN=20
class=3D782402910-10032009><STRONG><EM></EM></STRONG></SPAN></FONT> =
</DIV>
<DIV><FONT size=3D2><SPAN class=3D782402910-10032009><FONT=20
face=3DArial></FONT> </DIV></SPAN></FONT></BODY></HTML>
------_=_NextPart_001_01C9A172.6EF4C6F6--
More information about the Hostap
mailing list