mirror of
https://github.com/proski/madwifi
synced 2024-11-21 14:01:54 +03:00
Don't show kernel pointers to procfs, just show if ni is NULL
This commit is contained in:
parent
c95ed6fcf8
commit
eb53410664
@ -504,10 +504,10 @@ proc_iv_bss_print(struct ieee80211vap *vap, char *buf, int space)
|
||||
char *p = buf;
|
||||
const struct ieee80211_node *ni = vap->iv_bss;
|
||||
|
||||
p += sprintf(p, "vap:%p vap->iv_bss: %p\n",
|
||||
vap, ni);
|
||||
if (ni == NULL)
|
||||
if (ni == NULL) {
|
||||
p += sprintf(p, "ni: NULL\n");
|
||||
return (p - buf);
|
||||
}
|
||||
|
||||
p += sprintf(p, "ni_macaddr: " MAC_FMT "\n"
|
||||
"ni_bssid: " MAC_FMT "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user