[ar71xx] fix dir-825-b1 default network config after r21905
[openwrt.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 @@ ieee80211_reset_bss(struct ieee80211vap
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) {
This page took 0.049497 seconds and 5 git commands to generate.