Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203308
b: refs/heads/master
c: 38bdb65
h: refs/heads/master
v: v3
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jun 28, 2010
1 parent 1fe9a0d commit f6ad3b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78c4653a2274479547e259e1f416d2b3d04c42a8
refs/heads/master: 38bdb650f902d275d6b2f9c2d8247fd960525583
16 changes: 8 additions & 8 deletions trunk/net/mac80211/sta_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,20 +427,20 @@ void for_each_sta_info_type_check(struct ieee80211_local *local,
{
}

#define for_each_sta_info(local, _addr, sta, nxt) \
#define for_each_sta_info(local, _addr, _sta, nxt) \
for ( /* initialise loop */ \
sta = rcu_dereference(local->sta_hash[STA_HASH(_addr)]),\
nxt = sta ? rcu_dereference(sta->hnext) : NULL; \
_sta = rcu_dereference(local->sta_hash[STA_HASH(_addr)]),\
nxt = _sta ? rcu_dereference(_sta->hnext) : NULL; \
/* typecheck */ \
for_each_sta_info_type_check(local, (_addr), sta, nxt), \
for_each_sta_info_type_check(local, (_addr), _sta, nxt),\
/* continue condition */ \
sta; \
_sta; \
/* advance loop */ \
sta = nxt, \
nxt = sta ? rcu_dereference(sta->hnext) : NULL \
_sta = nxt, \
nxt = _sta ? rcu_dereference(_sta->hnext) : NULL \
) \
/* compare address and run code only if it matches */ \
if (memcmp(sta->sta.addr, (_addr), ETH_ALEN) == 0)
if (memcmp(_sta->sta.addr, (_addr), ETH_ALEN) == 0)

/*
* Get STA info by index, BROKEN!
Expand Down

0 comments on commit f6ad3b4

Please sign in to comment.