summaryrefslogtreecommitdiff
path: root/src/print_wireless_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_wireless_info.c')
-rw-r--r--src/print_wireless_info.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c
index 946c589..968ff66 100644
--- a/src/print_wireless_info.c
+++ b/src/print_wireless_info.c
@@ -38,7 +38,7 @@ static const char *get_wireless_essid(const char *interface) {
*/
void print_wireless_info(const char *interface, const char *format_up, const char *format_down) {
char buf[1024];
- int quality = -1;
+ int quality = 0;
char *interfaces;
const char *walk;
memset(buf, 0, sizeof(buf));
@@ -57,10 +57,6 @@ void print_wireless_info(const char *interface, const char *format_up, const cha
break;
}
- /* Interface could not be found */
- if (quality == -1)
- return;
-
if ((quality == UCHAR_MAX) || (quality == 0)) {
walk = format_down;
printf("%s", color("#FF0000"));