diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2008-09-01 20:00:20 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2008-09-01 20:00:20 +0000 |
commit | 1affb2997563f7f2f93eb6223cf40e0f3a9d7157 (patch) | |
tree | a21a8ba3a59af7844699d01b4cfbc3b402ab97ec /sys | |
parent | aff5f1e46fc7d647102fe4892378e6afb416d8c4 (diff) |
use C99 style struct initializer instead of GCC specific one (from NetBSD).
some whitespace cleanup too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_rssadapt.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/net80211/ieee80211_rssadapt.c b/sys/net80211/ieee80211_rssadapt.c index 1bb268bca12..f9b347cd9b5 100644 --- a/sys/net80211/ieee80211_rssadapt.c +++ b/sys/net80211/ieee80211_rssadapt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_rssadapt.c,v 1.6 2007/06/16 13:17:05 damien Exp $ */ +/* $OpenBSD: ieee80211_rssadapt.c,v 1.7 2008/09/01 20:00:19 damien Exp $ */ /* $NetBSD: ieee80211_rssadapt.c,v 1.7 2004/05/25 04:33:59 dyoung Exp $ */ /*- @@ -73,13 +73,13 @@ int ieee80211_rssadapt_debug = 0; #define RSSADAPT_PRINTF(X) #endif -static struct ieee80211_rssadapt_expavgctl master_expavgctl = { - rc_decay_denom : 16, - rc_decay_old : 15, - rc_thresh_denom : 8, - rc_thresh_old : 4, - rc_avgrssi_denom : 8, - rc_avgrssi_old : 4 +static const struct ieee80211_rssadapt_expavgctl master_expavgctl = { + .rc_decay_denom = 16, + .rc_decay_old = 15, + .rc_thresh_denom = 8, + .rc_thresh_old = 4, + .rc_avgrssi_denom = 8, + .rc_avgrssi_old = 4 }; int @@ -245,8 +245,8 @@ ieee80211_rssadapt_raise_rate(struct ieee80211com *ic, rate = (rs->rs_rates[id->id_rateidx + 1] & IEEE80211_RATE_VAL); RSSADAPT_PRINTF(("%s: threshold[%d, %d.%d] decay %d ", - ic->ic_if.if_xname, - IEEE80211_RSSADAPT_BKT0 << (IEEE80211_RSSADAPT_BKTPOWER* i), + ic->ic_if.if_xname, IEEE80211_RSSADAPT_BKT0 << + (IEEE80211_RSSADAPT_BKTPOWER * i), rate / 2, rate * 5 % 10, (*thrs)[id->id_rateidx + 1])); oldthr = (*thrs)[id->id_rateidx + 1]; if ((*thrs)[id->id_rateidx] == 0) |