display a bssid that's zero with the -v option

This commit is contained in:
Sam Leffler 2005-12-14 01:22:26 +00:00
parent 8e292e8ecd
commit aa5eb8878e

View File

@ -1451,7 +1451,7 @@ ieee80211_status(int s)
ireq.i_type = IEEE80211_IOC_BSSID;
ireq.i_len = IEEE80211_ADDR_LEN;
if (ioctl(s, SIOCG80211, &ireq) >= 0 &&
memcmp(ireq.i_data, zerobssid, sizeof(zerobssid)) != 0)
(memcmp(ireq.i_data, zerobssid, sizeof(zerobssid)) != 0 || verbose))
printf(" bssid %s", ether_ntoa(ireq.i_data));
ireq.i_type = IEEE80211_IOC_STATIONNAME;