aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-02-10 19:27:50 +0000
committerSam Leffler <sam@FreeBSD.org>2009-02-10 19:27:50 +0000
commit330528331ccfa30d2ac7965e1e4fa4d7f8c060b2 (patch)
tree54cbe869c13881e3d9e96dd76147db090dd6dc08
parenta32ac9d3a94eba3f64c92a22a393b1cac2c2dbf9 (diff)
Notes
-rw-r--r--sys/dev/ath/if_ath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index dc981c4dd8c6..192521641b31 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -6093,6 +6093,8 @@ ath_setup_stationkey(struct ieee80211_node *ni)
/* XXX locking? */
ni->ni_ucastkey.wk_keyix = keyix;
ni->ni_ucastkey.wk_rxkeyix = rxkeyix;
+ /* NB: must mark device key to get called back on delete */
+ ni->ni_ucastkey.wk_flags |= IEEE80211_KEY_DEVKEY;
IEEE80211_ADDR_COPY(ni->ni_ucastkey.wk_macaddr, ni->ni_macaddr);
/* NB: this will create a pass-thru key entry */
ath_keyset(sc, &ni->ni_ucastkey, vap->iv_bss);