From 9e63f62530bcea147b861bbae93b6f0e40900d9c Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sat, 23 Dec 2017 17:48:31 +0100 Subject: [PATCH] add bssid --- src/utils/dawn_iwinfo.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/dawn_iwinfo.c b/src/utils/dawn_iwinfo.c index 4928de0..d94cc83 100644 --- a/src/utils/dawn_iwinfo.c +++ b/src/utils/dawn_iwinfo.c @@ -33,7 +33,13 @@ int get_essid(const char *ifname, uint8_t *bssid_addr) if (iw->ssid(ifname, buf)) memset(buf, 0, sizeof(buf)); + static char buf_bssid[18] = { 0 }; + if (iw->bssid(ifname, buf_bssid)) + snprintf(buf, sizeof(buf), "00:00:00:00:00:00"); + printf("ESSID is: %s\n", buf); + printf("BSSID is: %s\n", buf_bssid); + return 0; }