mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +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;
|
char *p = buf;
|
||||||
const struct ieee80211_node *ni = vap->iv_bss;
|
const struct ieee80211_node *ni = vap->iv_bss;
|
||||||
|
|
||||||
p += sprintf(p, "vap:%p vap->iv_bss: %p\n",
|
if (ni == NULL) {
|
||||||
vap, ni);
|
p += sprintf(p, "ni: NULL\n");
|
||||||
if (ni == NULL)
|
|
||||||
return (p - buf);
|
return (p - buf);
|
||||||
|
}
|
||||||
|
|
||||||
p += sprintf(p, "ni_macaddr: " MAC_FMT "\n"
|
p += sprintf(p, "ni_macaddr: " MAC_FMT "\n"
|
||||||
"ni_bssid: " MAC_FMT "\n"
|
"ni_bssid: " MAC_FMT "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user