Kismet Wireless

Kismet Forums

 

Posted by:thebodzio
Subject:Sig columns in network view
Date:22:22:49 28/09/2010

Hi!

Using kismet one thing bothered me a bit: both columns for RSSI and signal power are labeled "Sig" and are 3 characters wide. Because of this width signal that is lower than 100 dBm is unelegantly truncated. So, I took liberty to make a little patch that labels mentioned columns "RSSI" and " dBm" respectively and makes them 4 characters wide. IMHO it looks somewhat better now. If someone wants to try it here it is:

--- src/kismet-2010-07-R1.old/kis_panel_network.cc 2010-08-05 23:47:15.944652373 +0200
+++ src/kismet-2010-07-R1/kis_panel_network.cc 2010-08-06 00:21:35.241060782 +0200
@@ -2528,20 +2528,20 @@
rofft += 8;
} else if (b == bcol_signal_dbm) {
if (time(0) - net->last_time > 5) {
- snprintf(rline + rofft, max - rofft, "---");
+ snprintf(rline + rofft, max - rofft, "----");
} else {
- snprintf(rline + rofft, max - rofft, "%3d",
+ snprintf(rline + rofft, max - rofft, "%4d",
net->snrdata.last_signal_dbm);
}
- rofft += 3;
+ rofft += 4;
} else if (b == bcol_signal_rssi) {
if (time(0) - net->last_time > 5) {
- snprintf(rline + rofft, max - rofft, "---");
+ snprintf(rline + rofft, max - rofft, "----");
} else {
- snprintf(rline + rofft, max - rofft, "%3d",
+ snprintf(rline + rofft, max - rofft, "%4d",
net->snrdata.last_signal_rssi);
}
- rofft += 3;
+ rofft += 4;
} else if (b == bcol_manuf) {
snprintf(rline + rofft, max - rofft, "%-10.10s", net->manuf.c_str());
rofft += 10;
@@ -2714,11 +2714,11 @@
snprintf(rline + rofft, 1024 - rofft, "Bcn%%");
rofft += 4;
} else if (b == bcol_signal_dbm) {
- snprintf(rline + rofft, 1024 - rofft, "Sig");
- rofft += 3;
+ snprintf(rline + rofft, 1024 - rofft, " dBm");
+ rofft += 4;
} else if (b == bcol_signal_rssi) {
- snprintf(rline + rofft, 1024 - rofft, "Sig");
- rofft += 3;
+ snprintf(rline + rofft, 1024 - rofft, "RSSI");
+ rofft += 4;
} else if (b == bcol_manuf) {
snprintf(rline + rofft, 1024 - rofft, "%-10.10s", "Manuf");
rofft += 10;

Best regards!
thebodzio


Reply to this message