4e224903ce02cea2ef9e650bcce07650a734dc8a
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 380-noderef_hack.patch
1 --- a/net80211/ieee80211_node.c
2 +++ b/net80211/ieee80211_node.c
3 @@ -427,8 +427,8 @@
4 __func__, ni, MAC_ADDR(vap->iv_myaddr));
5 KASSERT(ni != NULL, ("unable to setup inital BSS node"));
6
7 - vap->iv_bss = PASS_NODE(ni);
8 - KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 2),
9 + vap->iv_bss = ieee80211_ref_node(ni);
10 + KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 3),
11 ("wrong refcount for new node."));
12
13 if (obss != NULL) {