mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
insure ic_bss always has a "valid" channel; avoids problems where users could
query the state of a card and find a null channel since allocating the node left ni_chan zero
This commit is contained in:
parent
b9ee58c4af
commit
58f40303c4
1 changed files with 2 additions and 1 deletions
|
|
@ -87,7 +87,8 @@ ieee80211_node_attach(struct ifnet *ifp)
|
|||
ic->ic_node_free = ieee80211_node_free;
|
||||
ic->ic_node_copy = ieee80211_node_copy;
|
||||
ic->ic_bss = (*ic->ic_node_alloc)(ic);
|
||||
/* XXX KASSERT != NULL? */
|
||||
KASSERT(ic->ic_bss != NULL, ("unable to setup inital BSS node"));
|
||||
ic->ic_bss->ni_chan = IEEE80211_CHAN_ANYC;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue