new: added wifi.show clients and encryption sorting

This commit is contained in:
evilsocket 2019-01-24 14:36:26 +01:00
commit 58738b7723
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 43 additions and 36 deletions

View file

@ -146,7 +146,6 @@ func (w *WiFiModule) doSelection() (err error, stations []*network.Station) {
}
stations = filtered
// "encryption"}, "rssi"
switch w.selector.SortBy {
case "seen":
sort.Sort(ByWiFiSeenSorter(stations))
@ -156,6 +155,10 @@ func (w *WiFiModule) doSelection() (err error, stations []*network.Station) {
sort.Sort(ByBssidSorter(stations))
case "channel":
sort.Sort(ByChannelSorter(stations))
case "clients":
sort.Sort(ByClientsSorter(stations))
case "encryption":
sort.Sort(ByEncryptionSorter(stations))
case "sent":
sort.Sort(ByWiFiSentSorter(stations))
case "rcvd":