Page 1 of 3

Help test fix for Connected Hosts screen

Posted: Wed May 25, 2011 8:16 am
by pbix
My main man DoesItMatter fixed me up with a new WZR-HP-G300NH after my WR741ND decided to flake out. Kudos for that.

Now with the WZR-HP-G300NH I have noticed that the "Connected Hosts" screen is broken. Likely broken on other routers as well.

I attach a possible fix for this issue. I am wary of releasing this because there is a lot of variability between routers on the underlying utilities used to produce the Wifi information on this screen. So I am hoping that some generous Gargoyle users will give this a go and post their results.

To install unzip and copy into /usr/lib/gargoyle after first renaming the existing file of the same name.

In any report be sure to name the router(s) you tested on.

Re: Help test fix for Connected Hosts screen

Posted: Wed May 25, 2011 4:24 pm
by 1an
Thanks pbix, glad to hear of DoesItMatter's generosity!

a couple of quick questions.
* does this only apply to 1.3.14 version (I've been hesitant to upgrade my gzr-hp-300nh from 1.3.13 which has been stable for me)
* is a reboot required after installing as indicated?
* or is there a CLI command to activate?

Otherwise, I can let you know that on my gzr-hp-300nh (gargoyle 1.3.13 ), connected hosts screen now shows all three sections (Current DHCP Leases,
Connected Wireless Hosts, Hosts With Active Connections) as blank after putting new define_hosts_var.sh into /usr/lib/gargoyle.

Ian

Re: Help test fix for Connected Hosts screen

Posted: Wed May 25, 2011 7:42 pm
by pbix
Should work on v1.3.13 and does not require a reboot.

Not sure what is going on here. I am afraid that something on OpenWRT has changed between v1.3.13 and v1.3.14 which is causing this issue. I had the blank screen until I fixed it with this file.

How about posting the output of the command 'iw wlan0 station dump". Also what "Operation Mode" do you have under wireless on the connection page. I have N+G+B.

Re: Help test fix for Connected Hosts screen

Posted: Wed May 25, 2011 10:14 pm
by 1an
pbix wrote:How about posting the output of the command 'iw wlan0 station dump". Also what "Operation Mode" do you have under wireless on the connection page. I have N+G+B.
Also using N+G+B

output of 'iw wlan0 station dump'

Code: Select all

Station 34:15:9e:82:xx:xx (on wlan0)
	inactive time:	60 ms
	rx bytes:	2011707
	rx packets:	83022
	tx bytes:	30778
	tx packets:	149
	signal:  	-39 dBm
	tx bitrate:	48.0 MBit/s
Station 34:15:9e:7a:xx:xx (on wlan0)
	inactive time:	15130 ms
	rx bytes:	10608134
	rx packets:	110467
	tx bytes:	285066402
	tx packets:	194013
	signal:  	-59 dBm
	tx bitrate:	48.0 MBit/s
Station 78:ca:39:dc:xx:xx (on wlan0)
	inactive time:	1570 ms
	rx bytes:	5046239
	rx packets:	36868
	tx bytes:	25391004
	tx packets:	25519
	signal:  	-58 dBm
	tx bitrate:	58.5 MBit/s MCS 6
Station 00:21:bd:fe:xx:xx (on wlan0)
	inactive time:	4460 ms
	rx bytes:	154906
	rx packets:	2007
	tx bytes:	290498
	tx packets:	997
	signal:  	-38 dBm
	tx bitrate:	54.0 MBit/s

Re: Help test fix for Connected Hosts screen

Posted: Sat May 28, 2011 3:35 am
by amorangi
Using 1.3.14 on a TL-WR1043ND using N+G+B connected hosts is empty. I applied the file above and get the same result.

Re: Help test fix for Connected Hosts screen

Posted: Sat May 28, 2011 7:56 am
by pbix
amorangi,
Please post the result of 'iw wlan0 station dump" on this thread. I am very interested in this since you are running v14.

1an,
Your iw output is different than mine so it appears that something in iw (OpenWRT) has changed between v13 & v14. My previous statement that my new file would work on v13 appears to be incorrect.

iw output on WZR-HP-G300NH running v1.3.14 now looks as follows. It appears to have both transmit and receive speeds.

Code: Select all

root@Gargoyle:/tmp# iw wlan0 station dump
Station d8:a2:5e:b6:1b:19 (on wlan0)
        inactive time:  66530 ms
        rx bytes:       376298
        rx packets:     7001
        tx bytes:       949325
        tx packets:     2088
        tx retries:     233
        tx failed:      0
        signal:         -55 dBm
        signal avg:     -55 dBm
        tx bitrate:     54.0 MBit/s
        rx bitrate:     54.0 MBit/s
Variance in the output of this command is responsible for empty tables on this page.

Re: Help test fix for Connected Hosts screen

Posted: Sat May 28, 2011 3:39 pm
by amorangi

Code: Select all

Station f8:db:7f:87:b4:66 (on wlan0)
	inactive time:	100 ms
	rx bytes:	488428
	rx packets:	3796
	tx bytes:	793290
	tx packets:	3701
	tx retries:	5557
	tx failed:	414
	signal:  	-73 dBm
	signal avg:	-73 dBm
	tx bitrate:	26.0 MBit/s MCS 3
	rx bitrate:	26.0 MBit/s MCS 3
Station 00:13:02:20:3f:49 (on wlan0)
	inactive time:	10 ms
	rx bytes:	1345010
	rx packets:	7660
	tx bytes:	7264784
	tx packets:	8027
	tx retries:	5791
	tx failed:	0
	signal:  	-39 dBm
	signal avg:	-39 dBm
	tx bitrate:	48.0 MBit/s
	rx bitrate:	54.0 MBit/s
Station 00:1a:73:4f:6c:4e (on wlan0)
	inactive time:	3280 ms
	rx bytes:	10163919
	rx packets:	69906
	tx bytes:	102629696
	tx packets:	85936
	tx retries:	26662
	tx failed:	4
	signal:  	-74 dBm
	signal avg:	-74 dBm
	tx bitrate:	24.0 MBit/s
	rx bitrate:	1.0 MBit/s
Station 00:23:76:fe:d6:0f (on wlan0)
	inactive time:	7800 ms
	rx bytes:	101664
	rx packets:	1944
	tx bytes:	128961
	tx packets:	425
	tx retries:	1121
	tx failed:	51
	signal:  	-73 dBm
	signal avg:	-73 dBm
	tx bitrate:	12.0 MBit/s
	rx bitrate:	1.0 MBit/s

Re: Help test fix for Connected Hosts screen

Posted: Sun May 29, 2011 12:31 am
by sco77
Assuming the repository/host for the .sh is up (test DL link locally first!)... this will work...

SSH router, root as login and your password.

Code: Select all

1. cd ..   (to root)
2. wget http://www.gargoyle-router.com/gargoyle/projects/gargoyle/repository/revisions/9fd4ae0267f6e242a0e581f424f044a627c06c1b/raw/package/gargoyle/files/usr/lib/gargoyle/define_host_vars.sh
3. mv /define_host_vars.sh /usr/lib/gargoyle/ -f

Re: Help test fix for Connected Hosts screen

Posted: Sun May 29, 2011 1:16 am
by amorangi
Yes, that works, thanks!

Re: Help test fix for Connected Hosts screen

Posted: Wed Jun 08, 2011 10:05 am
by mrg666
Works here on a TEW-652BRP. Thanks to you and also to DoesItMatter for supporting the developers.