diff options
author | 2007-06-16 13:17:05 +0000 | |
---|---|---|
committer | 2007-06-16 13:17:05 +0000 | |
commit | f22d9adc5a42475fec203e7080285c8362834662 (patch) | |
tree | 5fdaf24a380be110183728379a85f3d9976a6e9c /sys/dev/ic/ath.c | |
parent | introduce new stuff: @tag, to be used to tag files and other objects. (diff) | |
download | wireguard-openbsd-f22d9adc5a42475fec203e7080285c8362834662.tar.xz wireguard-openbsd-f22d9adc5a42475fec203e7080285c8362834662.zip |
constify
Diffstat (limited to 'sys/dev/ic/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index c9e62d172b5..5afad58bf7c 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.64 2007/06/06 21:41:32 reyk Exp $ */ +/* $OpenBSD: ath.c,v 1.65 2007/06/16 13:17:05 damien Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -110,7 +110,7 @@ void ath_node_free(struct ieee80211com *, struct ieee80211_node *); void ath_node_copy(struct ieee80211com *, struct ieee80211_node *, const struct ieee80211_node *); u_int8_t ath_node_getrssi(struct ieee80211com *, - struct ieee80211_node *); + const struct ieee80211_node *); int ath_rxbuf_init(struct ath_softc *, struct ath_buf *); void ath_rx_proc(void *, int); int ath_tx_start(struct ath_softc *, struct ieee80211_node *, @@ -1769,9 +1769,9 @@ ath_node_copy(struct ieee80211com *ic, } u_int8_t -ath_node_getrssi(struct ieee80211com *ic, struct ieee80211_node *ni) +ath_node_getrssi(struct ieee80211com *ic, const struct ieee80211_node *ni) { - struct ath_node *an = ATH_NODE(ni); + const struct ath_node *an = ATH_NODE(ni); int i, now, nsamples, rssi; /* @@ -1782,7 +1782,7 @@ ath_node_getrssi(struct ieee80211com *ic, struct ieee80211_node *ni) rssi = 0; i = an->an_rx_hist_next; do { - struct ath_recv_hist *rh = &an->an_rx_hist[i]; + const struct ath_recv_hist *rh = &an->an_rx_hist[i]; if (rh->arh_ticks == ATH_RHIST_NOTIME) goto done; if (now - rh->arh_ticks > hz) |