Gargoyle-ispy 2014-April-28.7z

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

pmerrill
Posts: 290
Joined: Wed Feb 15, 2012 8:23 pm

Re: Gargoyle-ispy 2014-April-28.7z

Post 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.
Paul
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W

nieroster
Posts: 27
Joined: Sun Apr 14, 2013 10:56 am

Re: Gargoyle-ispy 2014-April-28.7z

Post 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

pomah
Posts: 7
Joined: Wed Oct 30, 2013 5:36 am

Re: Gargoyle-ispy 2014-April-28.7z

Post by pomah »

How can I make this change permanent? If I reboot the router ANI is back on.

nieroster
Posts: 27
Joined: Sun Apr 14, 2013 10:56 am

Re: Gargoyle-ispy 2014-April-28.7z

Post by nieroster »

pomah,

just read my post above yours.

Regards,
nieroster

pomah
Posts: 7
Joined: Wed Oct 30, 2013 5:36 am

Re: Gargoyle-ispy 2014-April-28.7z

Post by pomah »

Worked like a charm, thank you both!

dieselz
Posts: 41
Joined: Fri Jun 07, 2013 3:39 am
Location: Dubai, UAE
Contact:

Re: Gargoyle-ispy 2014-April-28.7z

Post 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.
Linksys WRT1900ACS V2 1.12.x gargoyle-iSpy

nieroster
Posts: 27
Joined: Sun Apr 14, 2013 10:56 am

Re: Gargoyle-ispy 2014-April-28.7z

Post by nieroster »

dieselz,

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

Regards,
nieroster

dieselz
Posts: 41
Joined: Fri Jun 07, 2013 3:39 am
Location: Dubai, UAE
Contact:

Re: Gargoyle-ispy 2014-April-28.7z

Post by dieselz »

THANK YOU!!
finally i feel like i am on wireless N <3
Linksys WRT1900ACS V2 1.12.x gargoyle-iSpy

pmerrill
Posts: 290
Joined: Wed Feb 15, 2012 8:23 pm

Re: Gargoyle-ispy 2014-April-28.7z

Post 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
Paul
Gargoyle 1.11.x on TP-Link Archer C7 V2 H/W

calculoso
Posts: 32
Joined: Wed Mar 12, 2014 8:30 am

Re: Gargoyle-ispy 2014-April-28.7z

Post 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

Post Reply