Hey it works, but I actually ended going with minstrel solution, that uses /sys instead of /proc.

Érico V. Porto

On Wed, Aug 31, 2011 at 10:04 PM, Érico Porto <ericoporto2008@gmail.com> wrote:
Thanks Wright!

I will look on that!

Érico V. Porto

On Wed, Aug 31, 2011 at 2:23 AM, Wright, Brett <Brett.Wright@cooperindustries.com> wrote:



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’s really easy to do – just have a look at ATH_SYSCTL_DECL() in if_ath.c and do same as one of the other basic ones…




From: Érico Porto [mailto:ericoporto2008@gmail.com]
Sent: Tuesday, 30 August 2011 1:58 AM
To: madwifi-users@lists.sourceforge.net
Subject: [Madwifi-users] adding parameters to iwpriv




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. This code is n the ieee80211_wireless.c . But how does this work? I mean, what do I have to include in my original ath rate file and stuff?



Érico V. Porto