Re: adding parameters to iwpriv
Érico Porto <[email protected]> Fri, 2 Sep 2011 19:27:20 -0300
| Newsgroups | gmane.linux.drivers.madwifi.user |
|---|---|
| Message-ID | <CAG1KTJeYGYDj13FChuPvbFkVfKp3xUVwBYYqi9pCe9tWjdzaqw@mail.gmail.com> |
--===============4679039906238937836== Content-Type: multipart/alternative; boundary=0015173fe50a86ae5104abfcde32 --0015173fe50a86ae5104abfcde32 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hey it works, but I actually ended going with minstrel solution, that uses /sys instead of /proc. =C9rico V. Porto On Wed, Aug 31, 2011 at 10:04 PM, =C9rico Porto <[email protected]>w= rote: > Thanks Wright! > > I will look on that! > > =C9rico V. Porto > > > > On Wed, Aug 31, 2011 at 2:23 AM, Wright, Brett < > [email protected]> wrote: > >> Hi,**** >> >> ** ** >> >> Just an idea, but if you are going to modify madwifi you could just add = a >> sysctl for the variable you want access to so that you could then >> view/modify its value via the proc file system.**** >> >> It=92s really easy to do =96 just have a look at ATH_SYSCTL_DECL() in if= _ath.c >> and do same as one of the other basic ones=85**** >> >> ** ** >> >> Brett**** >> >> ** ** >> >> *From:* =C9rico Porto [mailto:[email protected]] >> *Sent:* Tuesday, 30 August 2011 1:58 AM >> *To:* [email protected] >> *Subject:* [Madwifi-users] adding parameters to iwpriv**** >> >> ** ** >> >> Hello,**** >> >> ** ** >> >> Just one thought. If I want to access some hardcoded variable, from the >> ath_rate, and change or view it's value. It seems I just need to add it = in >> the iwpriv, somewhere (like ieee80211_priv_args) and it should work. Thi= s >> code is n the ieee80211_wireless.c . But how does this work? I mean, wha= t do >> I have to include in my original ath rate file and stuff?**** >> >> ** ** >> >> Thanks,**** >> >> >> =C9rico V. Porto**** >> > > --0015173fe50a86ae5104abfcde32 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hey it works, but I actually ended going with minstrel solution, that uses = /sys instead of /proc.<br><br clear=3D"all">=C9rico V. Porto<br> <br><br><div class=3D"gmail_quote">On Wed, Aug 31, 2011 at 10:04 PM, =C9ric= o Porto <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">e= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail= _quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:= 1ex;"> Thanks Wright!<br><br>I will look on that!<br><br clear=3D"all">=C9rico V. = Porto<div><div></div><div class=3D"h5"><br> <br><br><div class=3D"gmail_quote">On Wed, Aug 31, 2011 at 2:23 AM, Wright,= Brett <span dir=3D"ltr"><<a href=3D"mailto:Brett.Wright@cooperindustrie= s.com" target=3D"_blank">[email protected]</a>></span> w= rote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div link=3D"blue" vlink=3D"purple" lang=3D"EN-US"><div><p class=3D"MsoNorm= al"><span style=3D"font-size:11.0pt;color:#1F497D">Hi,<u></u><u></u></span>= </p><p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D"><= u></u>=A0<u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Just = an idea, but if you are going to modify madwifi you could just add a sysctl= for the variable you want access to so that you could then view/modify its= value via the proc file system.<u></u><u></u></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">It=92= s really easy to do =96 just have a look at ATH_SYSCTL_DECL() in if_ath.c a= nd do same as one of the other basic ones=85<u></u><u></u></span></p><p cla= ss=3D"MsoNormal"> <span style=3D"font-size:11.0pt;color:#1F497D"><u></u>=A0<u></u></span></p>= <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;color:#1F497D">Brett= <u></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:11= .0pt;color:#1F497D"><u></u>=A0<u></u></span></p> <div style=3D"border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm = 4.0pt"><div><div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;paddin= g:3.0pt 0cm 0cm 0cm"><p class=3D"MsoNormal"><b><span style=3D"font-size:10.= 0pt">From:</span></b><span style=3D"font-size:10.0pt"> =C9rico Porto [mailt= o:<a href=3D"mailto:[email protected]" target=3D"_blank">ericoporto2= [email protected]</a>] <br> <b>Sent:</b> Tuesday, 30 August 2011 1:58 AM<br><b>To:</b> <a href=3D"mailt= o:[email protected]" target=3D"_blank">madwifi-users@list= s.sourceforge.net</a><br><b>Subject:</b> [Madwifi-users] adding parameters = to iwpriv<u></u><u></u></span></p> </div></div><div><div></div><div><p class=3D"MsoNormal"><u></u>=A0<u></u></= p><div><p class=3D"MsoNormal">Hello,<u></u><u></u></p></div><div><p class= =3D"MsoNormal"><u></u>=A0<u></u></p></div><div><p class=3D"MsoNormal">Just = one thought. If I want to access some hardcoded variable, from the ath_rate= , and change or view it's value. It seems I just need to add it in the = iwpriv, somewhere (like<span><span>=A0ieee80211_priv_args) and it should wo= rk. This code is n the ieee80211_wireless.c . But how does this work? I mea= n, what do I have to include in my original ath rate file and stuff?</span>= </span><u></u><u></u></p> </div><div><p class=3D"MsoNormal"><u></u>=A0<u></u></p></div><div><p class= =3D"MsoNormal"><span><span>Thanks,</span></span><u></u><u></u></p></div><p = class=3D"MsoNormal"><br clear=3D"all">=C9rico V. Porto<u></u><u></u></p></d= iv></div> </div></div></div></blockquote></div><br> </div></div></blockquote></div><br> --0015173fe50a86ae5104abfcde32-- --===============4679039906238937836== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev --===============4679039906238937836== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Madwifi-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/madwifi-users --===============4679039906238937836==--