Page 3 of 4

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Tue Jun 03, 2014 8:14 am
by pmerrill
Just thought I would clear up the misunderstanding with ani.

First, ssh or telnet into the router, then from the prompt run the following:

Code: Select all

# ls /sys/kernel/debug/ieee80211/phy0/ath9k
you will see a list of devices one of which is ani and NOT disable_ani as has been mentioned. If you now do the following:

Code: Select all

# cat /sys/kernel/debug/ieee80211/phy0/ath9k/ani
You will see infomation about the ani settings. If you then execute the command:

Code: Select all

# echo 0 >/sys/kernel/debug/ieee80211/phy0/ath9k/ani
This will now disable ani. You can execute the cat again and it will say ani disabled.

I have done this on my TP-Link 4300 and it now seems to behaving itself. I did have a Zopo mobile that would not connect to the router before disabling ani that now seems to connect ok.

Just remember, if you have a TP-Link 4300 you may also have to do the same thing for phy1, which is the 5 GHz radio.

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Tue Jun 03, 2014 2:54 pm
by nieroster
pmerrill,

thanks a lot for your explanations, it finally works!

I have put two lines to /etc/rc.local (before the exit 0 line)

Code: Select all

echo 0 >/sys/kernel/debug/ieee80211/phy0/ath9k/ani
echo 0 >/sys/kernel/debug/ieee80211/phy1/ath9k/ani
This disables ANI for the 2.4 and the 5 GHz Wifi on my Netgear WNDR3700 after every restart automatically.

Let's see if this stops my mobile from beeing dropped constantly.

Regards,
nieroster

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Tue Jun 03, 2014 3:15 pm
by pomah
How can I make this change permanent? If I reboot the router ANI is back on.

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Tue Jun 03, 2014 3:29 pm
by nieroster
pomah,

just read my post above yours.

Regards,
nieroster

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Tue Jun 03, 2014 4:36 pm
by pomah
Worked like a charm, thank you both!

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Wed Jun 04, 2014 2:54 pm
by dieselz
pmerrill wrote:Just thought I would clear up the misunderstanding with ani.

First, ssh or telnet into the router, then from the prompt run the following:

Code: Select all

# ls /sys/kernel/debug/ieee80211/phy0/ath9k
you will see a list of devices one of which is ani and NOT disable_ani as has been mentioned. If you now do the following:

Code: Select all

# cat /sys/kernel/debug/ieee80211/phy0/ath9k/ani
You will see infomation about the ani settings. If you then execute the command:

Code: Select all

# echo 0 >/sys/kernel/debug/ieee80211/phy0/ath9k/ani
This will now disable ani. You can execute the cat again and it will say ani disabled.

I have done this on my TP-Link 4300 and it now seems to behaving itself. I did have a Zopo mobile that would not connect to the router before disabling ani that now seems to connect ok.

Just remember, if you have a TP-Link 4300 you may also have to do the same thing for phy1, which is the 5 GHz radio.

thank you for that guide it worked!
what i need is to make sure it starts automatically in start up, i tried to google how to add those lines in /etc/local and all i could figure out is the command sed but i always get this error sed: unsupported command e
can you tell me if this is even the right command or how do i put them lines in there.
thank you.

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Wed Jun 04, 2014 4:17 pm
by nieroster
dieselz,

You can use WinSCP to edit /etc/rc.local

Regards,
nieroster

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Wed Jun 04, 2014 5:31 pm
by dieselz
THANK YOU!!
finally i feel like i am on wireless N <3

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Wed Jun 04, 2014 8:46 pm
by pmerrill
nieroster wrote:dieselz,

You can use WinSCP to edit /etc/rc.local

Regards,
nieroster
One can also login to the router with ssh or telnet and use vi as it's been installed on the router. If you're not old enough to know what vi is, then WinSCP is a fine solution.

:D

Re: Gargoyle-ispy 2014-April-28.7z

Posted: Wed Jun 04, 2014 10:00 pm
by calculoso
WinSCP won't always work. On my router (WNDR3700v2), it says:
Using username "root".
ash: /usr/libexec/sftp-server: not found

Authentication failed.
So I use this link for 'vi' commands
http://www.cs.colostate.edu/helpdocs/vi.html