Ticket #914: wds-fixes.diff
| File wds-fixes.diff, 1.7 kB (added by Žilvinas Valinskas <valins@soften.ktu.lt>, 2 years ago) |
|---|
-
madwifi-ng-trunk/net80211/ieee80211_node.c
old new 961 961 ieee80211_del_wds_node(struct ieee80211_node_table *nt, struct ieee80211_node *ni) 962 962 { 963 963 int hash; 964 struct ieee80211_wds_addr *wds ;964 struct ieee80211_wds_addr *wds, *next; 965 965 966 966 IEEE80211_NODE_LOCK_IRQ(nt); 967 967 for (hash = 0; hash < IEEE80211_NODE_HASHSIZE; hash++) { 968 LIST_FOREACH (wds, &nt->nt_wds_hash[hash], wds_hash) {968 LIST_FOREACH_SAFE(wds, &nt->nt_wds_hash[hash], wds_hash, next) { 969 969 if (wds->wds_ni == ni) { 970 970 if (ieee80211_node_dectestref(ni)) { 971 971 _ieee80211_free_node(ni); … … 984 984 { 985 985 struct ieee80211_node_table *nt = (struct ieee80211_node_table *)data; 986 986 int hash; 987 struct ieee80211_wds_addr *wds ;987 struct ieee80211_wds_addr *wds, *next; 988 988 989 989 IEEE80211_NODE_LOCK_IRQ(nt); 990 990 for (hash = 0; hash < IEEE80211_NODE_HASHSIZE; hash++) { 991 LIST_FOREACH (wds, &nt->nt_wds_hash[hash], wds_hash) {991 LIST_FOREACH_SAFE(wds, &nt->nt_wds_hash[hash], wds_hash, next) { 992 992 if (wds->wds_agingcount != WDS_AGING_STATIC) { 993 993 if (!wds->wds_agingcount) { 994 994 if (ieee80211_node_dectestref(wds->wds_ni)) {
