aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/rtwn/if_rtwn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/rtwn/if_rtwn.c b/sys/dev/rtwn/if_rtwn.c
index 2003fa7d20be..7df1b78db37b 100644
--- a/sys/dev/rtwn/if_rtwn.c
+++ b/sys/dev/rtwn/if_rtwn.c
@@ -298,6 +298,11 @@ rtwn_attach(struct rtwn_softc *sc)
sc->sc_node_free = ic->ic_node_free;
ic->ic_node_free = rtwn_node_free;
+ /* Note: this has to happen AFTER ieee80211_ifattach() */
+ ieee80211_set_software_ciphers(ic, IEEE80211_CRYPTO_WEP |
+ IEEE80211_CRYPTO_TKIP | IEEE80211_CRYPTO_AES_CCM |
+ IEEE80211_CRYPTO_AES_GCM_128);
+
rtwn_postattach(sc);
rtwn_radiotap_attach(sc);