mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
add bssid
This commit is contained in:
parent
5e068e7762
commit
9e63f62530
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue