diff options
author | sam <sam@FreeBSD.org> | 2004-12-31 20:44:15 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2004-12-31 20:44:15 +0000 |
commit | 0b07314057605333318596908beea6b5c4dbf7e0 (patch) | |
tree | e62f5bd0c2f6b2bd477201f124aca6338828cbe1 /sys/net80211 | |
parent | 941b82eb40f0eb621ada772b0ab757741b9c3581 (diff) | |
download | FreeBSD-src-0b07314057605333318596908beea6b5c4dbf7e0.zip FreeBSD-src-0b07314057605333318596908beea6b5c4dbf7e0.tar.gz |
const'ify ivp reference
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c index 6e9f224..32de4cf 100644 --- a/sys/net80211/ieee80211_crypto.c +++ b/sys/net80211/ieee80211_crypto.c @@ -524,7 +524,7 @@ ieee80211_crypto_decap(struct ieee80211com *ic, struct ieee80211_key *k; struct ieee80211_frame *wh; const struct ieee80211_cipher *cip; - u_int8_t *ivp; + const u_int8_t *ivp; u_int8_t keyid; int hdrlen; @@ -545,7 +545,7 @@ ieee80211_crypto_decap(struct ieee80211com *ic, */ wh = mtod(m, struct ieee80211_frame *); hdrlen = ieee80211_hdrsize(wh); - ivp = mtod(m, u_int8_t *) + hdrlen; /* XXX contig */ + ivp = mtod(m, const u_int8_t *) + hdrlen; /* XXX contig */ keyid = ivp[IEEE80211_WEP_IVLEN]; if (IEEE80211_IS_MULTICAST(wh->i_addr1) || ni->ni_ucastkey.wk_cipher == &ieee80211_cipher_none) |