Changeset 18291


Ignore:
Timestamp:
2009-11-04T01:06:55+01:00 (8 years ago)
Author:
nbd
Message:

madwifi: merge refcounting fix from r18290 to 8.09

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/package/madwifi/patches/451-ibss_race_fix.patch

    r18054 r18291  
    195195  
    196196        IEEE80211_ADDR_COPY(ni->ni_bssid, vap->iv_myaddr); 
    197 @@ -429,8 +425,8 @@ ieee80211_reset_bss(struct ieee80211vap  
    198                           __func__, ni, MAC_ADDR(vap->iv_myaddr)); 
    199         KASSERT(ni != NULL, ("unable to setup inital BSS node")); 
    200   
    201 -       vap->iv_bss = ieee80211_ref_node(ni); 
    202 -       KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 3),  
    203 +       vap->iv_bss = ni; 
    204 +       KASSERT((atomic_read(&vap->iv_bss->ni_refcnt) == 2), 
    205                 ("wrong refcount for new node.")); 
    206   
    207         if (obss != NULL) { 
    208197@@ -647,7 +643,7 @@ ieee80211_sta_join1(struct ieee80211_nod 
    209198                (vap->iv_state == IEEE80211_S_RUN) && bssid_equal(obss, selbs)); */ 
Note: See TracChangeset for help on using the changeset viewer.