#include <net80211/ieee80211_proto.h>
#include <net80211/ieee80211_scan.h>
-/*
-Note: Atheros chips use 6 bits when power is specified in whole dBm units, with a value range from 0 to 63.
-Note: Atheros chips use 7 bits when power is specified in half dBm units, with a value range from 0 to 127.
-*/
+/* NB:
+ * - Atheros chips use 6 bits when power is specified in whole dBm units, with
+ * a value range from 0 to 63.
+ * - Atheros chips use 7 bits when power is specified in half dBm units, with
+ * a value range from 0 to 127.
+ */
#define IEEE80211_TXPOWER_MAX 127 /* .5 dBm units */
#define IEEE80211_TXPOWER_MIN 0 /* kill radio */
*
* _i and prevchan are temporary variables
*/
-#define CHANNEL_FOREACH(i, ic, _i, prevchan) \
- for (_i = 0, prevchan = 0; \
- _i<ic->ic_nchans && (i = ic->ic_channels[_i].ic_ieee); \
- prevchan = i, _i++ \
- ) if (i != prevchan)
+#define CHANNEL_FOREACH(i, _ic, _i, _prevchan) \
+ for ((_i) = 0, (_prevchan) = 0; \
+ (_i) < (_ic)->ic_nchans && ((i) = \
+ (_ic)->ic_channels[(_i)].ic_ieee); \
+ (_prevchan) = (i), (_i)++ \
+ ) if ((i) != (_prevchan))
/* Key update synchronization methods. XXX should not be visible. */
static __inline void