mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 13:58:30 -04:00
net80211: ieee80211_dump_node() check for channel to be set
Avoid panics in case ieee80211_dump_node() gets called before a channel context is set. Sponsored by: The FreeBSD Foundation (cherry picked from commit c93be3079be5f07fe3596ec389826e45f5dc82bd)
This commit is contained in:
parent
bc3ab3badd
commit
826c28fa98
1 changed files with 2 additions and 1 deletions
|
|
@ -2647,7 +2647,8 @@ ieee80211_dump_node(struct ieee80211_node_table *nt __unused,
|
|||
printf("\tbssid %s essid \"%.*s\" channel %u:0x%x\n",
|
||||
ether_sprintf(ni->ni_bssid),
|
||||
ni->ni_esslen, ni->ni_essid,
|
||||
ni->ni_chan->ic_freq, ni->ni_chan->ic_flags);
|
||||
(ni->ni_chan != IEEE80211_CHAN_ANYC) ? ni->ni_chan->ic_freq : 0,
|
||||
(ni->ni_chan != IEEE80211_CHAN_ANYC) ? ni->ni_chan->ic_flags : 0);
|
||||
printf("\tinact %u inact_reload %u txrate %u\n",
|
||||
ni->ni_inact, ni->ni_inact_reload, ni->ni_txrate);
|
||||
printf("\thtcap %x htparam %x htctlchan %u ht2ndchan %u\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue