Changeset 3631
- Timestamp:
- 05/16/08 13:34:59 (3 months ago)
- Files:
-
- madwifi/trunk/net80211/ieee80211_node.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/trunk/net80211/ieee80211_node.c
r3490 r3631 921 921 } 922 922 923 static void node_print_message( 923 #ifdef IEEE80211_DEBUG 924 static void 925 node_print_message( 924 926 u_int32_t flags, 925 int show_counter, 927 int show_counter, 926 928 int refcnt_adjust, 927 const struct ieee80211_node *ni, 929 const struct ieee80211_node *ni, 928 930 #ifdef IEEE80211_DEBUG_REFCNT 929 931 const char* func1, int line1, … … 958 960 #endif /* #ifdef IEEE80211_DEBUG_REFCNT */ 959 961 ni->ni_ic->ic_dev->name, 960 ni->ni_vap->iv_dev->name, 962 ni->ni_vap->iv_dev->name, 961 963 node_count, 962 964 #ifdef IEEE80211_DEBUG_REFCNT 963 func1, line1, 965 func1, line1, 964 966 #endif /* #ifdef IEEE80211_DEBUG_REFCNT */ 965 func2, line2, 967 func2, line2, 966 968 expanded_message, 967 ni, MAC_ADDR(ni->ni_macaddr), 969 ni, MAC_ADDR(ni->ni_macaddr), 968 970 ni->ni_table != NULL ? " in " : "", 969 971 ni->ni_table != NULL ? ni->ni_table->nt_name : "", … … 974 976 } 975 977 EXPORT_SYMBOL(node_print_message); 978 #endif 976 979 977 980 static void … … 1110 1113 ni->ni_ic = ic; 1111 1114 atomic_inc(&ni->ni_ic->ic_node_counter); 1115 #ifdef IEEE80211_DEBUG 1112 1116 node_print_message(IEEE80211_MSG_NODE|IEEE80211_MSG_NODE_REF, 1113 1117 1 /* show counter */, … … 1119 1123 __func__, __LINE__, 1120 1124 "alloc" /* message */); 1125 #endif 1121 1126 } else { 1122 1127 /* XXX msg */ … … 1668 1673 1669 1674 atomic_dec(&ni->ni_ic->ic_node_counter); 1675 #ifdef IEEE80211_DEBUG 1670 1676 node_print_message(IEEE80211_MSG_NODE|IEEE80211_MSG_NODE_REF, 1671 1677 1 /* show counter */, … … 1677 1683 __func__, __LINE__, 1678 1684 "free" /* message */); 1685 #endif 1679 1686 if (vap->iv_aid_bitmap != NULL) 1680 1687 IEEE80211_AID_CLR(vap, ni->ni_associd); … … 2403 2410 } 2404 2411 if (atomic_read(&ni->ni_refcnt) < 1) { 2412 #ifdef IEEE80211_DEBUG 2405 2413 node_print_message(IEEE80211_MSG_ANY, 2406 2414 0 /* show counter */, … … 2414 2422 " No changes made." /* message */, 2415 2423 atomic_read(&ni->ni_refcnt)); 2424 #endif 2416 2425 dump_stack(); 2417 2426 return ni; 2418 2427 } 2419 2428 atomic_inc(&ni->ni_refcnt); 2429 #ifdef IEEE80211_DEBUG 2420 2430 node_print_message(IEEE80211_MSG_NODE_REF, 2421 2431 0 /* show counter */, … … 2427 2437 __func__, __LINE__, 2428 2438 "ref" /* message */); 2439 #endif 2429 2440 return ni; 2430 2441 } … … 2455 2466 } 2456 2467 if (atomic_read(&ni->ni_refcnt) < 1) { 2468 #ifdef IEEE80211_DEBUG 2457 2469 node_print_message(IEEE80211_MSG_ANY, 2458 2470 0 /* show counter */, … … 2466 2478 " No changes made." /* message */, 2467 2479 atomic_read(&ni->ni_refcnt)); 2480 #endif 2468 2481 dump_stack(); 2469 2482 return; 2470 2483 } 2471 2484 #ifdef IEEE80211_DEBUG 2472 2485 node_print_message(IEEE80211_MSG_NODE_REF, 2473 2486 0 /* show counter */, … … 2479 2492 __func__, __LINE__, 2480 2493 "unref" /* message */); 2494 #endif 2481 2495 2482 2496 if (atomic_dec_and_test(&ni->ni_refcnt)) {
