pacakge/iw: don't show a stray ']' if the chain signal attribute list is empty
authorGabor Juhos <juhosg@openwrt.org>
Wed, 9 Nov 2011 11:47:44 +0000 (11:47 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 9 Nov 2011 11:47:44 +0000 (11:47 +0000)
commit806a25bb99337c86940764e66427c5a7e0da7d7c
tree5fd233c07ea90e399ec02754dbc178001e2f1dcd
parent3f4137d170e4b223fb42c49465f7429f29a56891
pacakge/iw: don't show a stray ']' if the chain signal attribute list is empty

Without the patch, the output of 'station dump' command looks weird in
some cases:

root@OpenWrt:/# iw dev wlan0 station dump
Station 00:21:27:cb:57:02 (on wlan0)
        inactive time:  190 ms
        rx bytes:       36652
        rx packets:     149
        tx bytes:       1998
        tx packets:     16
        tx retries:     0
        tx failed:      0
        signal:         -31 ] dBm
        signal avg:     -30 [-32, -36] dBm
        tx bitrate:     5.5 MBit/s
        rx bitrate:     54.0 MBit/s
root@OpenWrt:/#

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28879 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/iw/Makefile
package/iw/patches/120-per_chain_signal_strength.patch