From 8a32edb350700b8ce2529b617c085f44e8cfbd55 Mon Sep 17 00:00:00 2001 From: Unia Date: Tue, 12 Mar 2013 21:17:35 +0100 Subject: [PATCH] wireless interface changed --- PKGBUILD | 2 +- dwmst.c | 6 ++---- dwmst.h | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index c9145d1..0155e10 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ pkgname=dwm-status -pkgver=20130311 +pkgver=20130312 pkgrel=1 pkgdesc='A hardcoded statusbar for DWM' arch=(any) diff --git a/dwmst.c b/dwmst.c index 9c60029..cc0ca8a 100644 --- a/dwmst.c +++ b/dwmst.c @@ -90,11 +90,9 @@ int main() { wifiloops = 0; skfd = iw_sockets_open(); if (iw_get_basic_config(skfd, WIFI, &(winfo->b)) > -1) { - if (iw_get_stats(skfd, WIFI, &(winfo->stats), /* set present winfo variables */ - &winfo->range, winfo->has_range) >= 0) { + if (iw_get_stats(skfd, WIFI, &(winfo->stats), &winfo->range, winfo->has_range) >= 0) winfo->has_stats = 1; - } - if (iw_get_range_info(skfd, WIFI, &(winfo->range)) >= 0) /* set present winfo variables */ + if (iw_get_range_info(skfd, WIFI, &(winfo->range)) >= 0) winfo->has_range = 1; if (winfo->b.has_essid) { if (winfo->b.essid_on) diff --git a/dwmst.h b/dwmst.h index 0661ccb..6bb1f09 100644 --- a/dwmst.h +++ b/dwmst.h @@ -17,7 +17,7 @@ #include #endif -#define WIFI "wlan0" /* Wireless interface */ +#define WIFI "wlp5s0" /* Wireless interface */ #define BATT_LOW_P 11 /* Below BATT_LOW percentage left on battery, the battery display turns red */ #define BATT_LOW_T 3 /* Same as above, but now minutes instead of percentage */ #define INTERVAL 1 /* Sleeps for INTERVAL seconds between updates */