Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144955927
D39192.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39192.diff
View Options
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3716,6 +3716,17 @@
mi->ch[3].noise[0]);
}
+static void
+printbssidname(const struct ether_addr *n)
+{
+ char name[MAXHOSTNAMELEN + 1];
+
+ if (ether_ntohost(name, n) != 0)
+ return;
+
+ printf(" (%s)", name);
+}
+
static void
list_scan(int s)
{
@@ -3767,6 +3778,7 @@
);
printies(vp + sr->isr_ssid_len + sr->isr_meshid_len,
sr->isr_ie_len, 24);
+ printbssidname((const struct ether_addr *)sr->isr_bssid);
printf("\n");
cp += sr->isr_len, len -= sr->isr_len;
} while (len >= sizeof(struct ieee80211req_scan_result));
@@ -4904,8 +4916,10 @@
printf(" channel UNDEF");
if (get80211(s, IEEE80211_IOC_BSSID, data, IEEE80211_ADDR_LEN) >= 0 &&
- (memcmp(data, zerobssid, sizeof(zerobssid)) != 0 || verbose))
+ (memcmp(data, zerobssid, sizeof(zerobssid)) != 0 || verbose)) {
printf(" bssid %s", ether_ntoa((struct ether_addr *)data));
+ printbssidname((struct ether_addr *)data);
+ }
if (get80211len(s, IEEE80211_IOC_STATIONNAME, data, sizeof(data), &len) != -1) {
printf("\n\tstationname ");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 15, 11:42 AM (10 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28739465
Default Alt Text
D39192.diff (1 KB)
Attached To
Mode
D39192: ifconfig: ifieee80211: print bssid name
Attached
Detach File
Event Timeline
Log In to Comment