Make CHANNEL_FOREACH slightly more readable

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3275 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
mentor 2008-01-27 06:49:24 +00:00
parent cf6e609462
commit c4952a9d3d

View File

@ -700,14 +700,14 @@ void ieee80211_expire_channel_non_occupancy_restrictions(struct ieee80211com *);
* It relies on the assumption that ic_ieee cannot be 0 and that all the
* duplicates in ic_channels occur subsequently.
*
* _i and prevchan are temporary variables
* _i and _prevchan are temporary variables
*/
#define CHANNEL_FOREACH(i, _ic, _i, _prevchan) \
#define CHANNEL_FOREACH(_chan, _ic, _i, _prevchan) \
for ((_i) = 0, (_prevchan) = 0; \
(_i) < (_ic)->ic_nchans && ((i) = \
(_i) < (_ic)->ic_nchans && ((_chan) = \
(_ic)->ic_channels[(_i)].ic_ieee); \
(_prevchan) = (i), (_i)++ \
) if ((i) != (_prevchan))
(_prevchan) = (_chan), (_i)++ \
) if ((_chan) != (_prevchan))
/* Key update synchronization methods. XXX should not be visible. */
static __inline void