diff options
author | sam <sam@FreeBSD.org> | 2009-06-05 23:10:30 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-05 23:10:30 +0000 |
commit | ef7ab5a79a83c99ff76ffc0c90b36dcc4aeb1dd6 (patch) | |
tree | 0fb8b6c5d140c11ae2ba765908f2a037628646a1 /sys/net80211/ieee80211_freebsd.c | |
parent | 2e047fc0c8ebcd44760556819bbc637aa30d3b8b (diff) | |
download | FreeBSD-src-ef7ab5a79a83c99ff76ffc0c90b36dcc4aeb1dd6.zip FreeBSD-src-ef7ab5a79a83c99ff76ffc0c90b36dcc4aeb1dd6.tar.gz |
add tid param to ieee80211_notify_replay_failure to get the correct rsc
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.c')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index 47a76bb..ee3022f 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -528,14 +528,14 @@ ieee80211_notify_scan_done(struct ieee80211vap *vap) void ieee80211_notify_replay_failure(struct ieee80211vap *vap, const struct ieee80211_frame *wh, const struct ieee80211_key *k, - u_int64_t rsc) + u_int64_t rsc, int tid) { struct ifnet *ifp = vap->iv_ifp; IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_CRYPTO, wh->i_addr2, "%s replay detected <rsc %ju, csc %ju, keyix %u rxkeyix %u>", k->wk_cipher->ic_name, (intmax_t) rsc, - (intmax_t) k->wk_keyrsc[IEEE80211_NONQOS_TID], + (intmax_t) k->wk_keyrsc[tid], k->wk_keyix, k->wk_rxkeyix); if (ifp != NULL) { /* NB: for cipher test modules */ @@ -548,7 +548,7 @@ ieee80211_notify_replay_failure(struct ieee80211vap *vap, iev.iev_keyix = k->wk_rxkeyix; else iev.iev_keyix = k->wk_keyix; - iev.iev_keyrsc = k->wk_keyrsc[0]; /* XXX need tid */ + iev.iev_keyrsc = k->wk_keyrsc[tid]; iev.iev_rsc = rsc; CURVNET_SET(ifp->if_vnet); rt_ieee80211msg(ifp, RTM_IEEE80211_REPLAY, &iev, sizeof(iev)); |