summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2021-12-26 00:09:11 +0200
committerToomas Soome <tsoome@me.com>2022-01-25 21:19:42 +0200
commitf4203ebbfd2dce9537b7614c6e37240f406907e8 (patch)
tree85bd6e05e97fd78bf7b8afdc061fe959995d8210 /usr/src
parent2829495d7d810156bdfd454b8a1ef0f54eac9733 (diff)
downloadillumos-gate-f4203ebbfd2dce9537b7614c6e37240f406907e8.tar.gz
14389 net80211: mismatched bound
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/net80211/net80211_crypto_tkip.c2
-rw-r--r--usr/src/uts/common/sys/net80211.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/net80211/net80211_crypto_tkip.c b/usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
index e689c3ad2b..702b65b2fc 100644
--- a/usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
+++ b/usr/src/uts/common/io/net80211/net80211_crypto_tkip.c
@@ -651,7 +651,7 @@ michael_mic_hdr(const struct ieee80211_frame *wh0, uint8_t hdr[16])
static void
michael_mic(struct tkip_ctx *ctx, const uint8_t *key,
mblk_t *mp, uint_t off, size_t data_len,
- uint8_t mic[IEEE80211_WEP_MICLEN])
+ uint8_t mic[])
{
uint8_t hdr[16];
uint32_t l, r;
diff --git a/usr/src/uts/common/sys/net80211.h b/usr/src/uts/common/sys/net80211.h
index 1946e0b284..be6b65fe90 100644
--- a/usr/src/uts/common/sys/net80211.h
+++ b/usr/src/uts/common/sys/net80211.h
@@ -700,7 +700,7 @@ ieee80211_node_t *ieee80211_find_node(ieee80211_node_table_t *,
ieee80211_node_t *ieee80211_find_node_with_ssid(ieee80211_node_table_t *,
const uint8_t *, uint32_t, const uint8_t *);
ieee80211_node_t *ieee80211_find_txnode(ieee80211com_t *,
- const uint8_t daddr[IEEE80211_ADDR_LEN]);
+ const uint8_t *daddr);
ieee80211_node_t *ieee80211_find_rxnode(ieee80211com_t *,
const struct ieee80211_frame *);
@@ -713,7 +713,7 @@ extern int ieee80211_crypto_newkey(ieee80211com_t *, int, int,
struct ieee80211_key *);
extern int ieee80211_crypto_delkey(ieee80211com_t *, struct ieee80211_key *);
extern int ieee80211_crypto_setkey(ieee80211com_t *, struct ieee80211_key *,
- const uint8_t macaddr[IEEE80211_ADDR_LEN]);
+ const uint8_t *macaddr);
/* Helper Functions */
int ieee80211_stat(ieee80211com_t *ic, uint_t stat, uint64_t *val);