the only integrity group cipher currently supported is AES-128-CMAC.
authordamien <damien@openbsd.org>
Tue, 12 Aug 2008 18:41:18 +0000 (18:41 +0000)
committerdamien <damien@openbsd.org>
Tue, 12 Aug 2008 18:41:18 +0000 (18:41 +0000)
sys/net80211/ieee80211_crypto.c
sys/net80211/ieee80211_node.c

index 6881900..743d16c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ieee80211_crypto.c,v 1.47 2008/08/12 18:01:41 damien Exp $    */
+/*     $OpenBSD: ieee80211_crypto.c,v 1.48 2008/08/12 18:41:18 damien Exp $    */
 
 /*-
  * Copyright (c) 2008 Damien Bergamini <damien.bergamini@free.fr>
@@ -67,6 +67,7 @@ ieee80211_crypto_attach(struct ifnet *ifp)
                ic->ic_rsnciphers = IEEE80211_CIPHER_TKIP |
                    IEEE80211_CIPHER_CCMP;
                ic->ic_rsngroupcipher = IEEE80211_CIPHER_TKIP;
+               ic->ic_rsngroupmgmtcipher = IEEE80211_CIPHER_AES128_CMAC;
        }
        ic->ic_set_key = ieee80211_set_key;
        ic->ic_delete_key = ieee80211_delete_key;
@@ -103,6 +104,8 @@ ieee80211_cipher_keylen(enum ieee80211_cipher cipher)
                return 16;
        case IEEE80211_CIPHER_WEP104:
                return 13;
+       case IEEE80211_CIPHER_AES128_CMAC:
+               return 16;
        default:        /* unknown cipher */
                return 0;
        }
index cbae4d9..ee8b5d7 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: ieee80211_node.c,v 1.40 2008/08/12 18:37:23 damien Exp $      */
+/*     $OpenBSD: ieee80211_node.c,v 1.41 2008/08/12 18:41:18 damien Exp $      */
 /*     $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $       */
 
 /*-
@@ -313,6 +313,7 @@ ieee80211_create_ibss(struct ieee80211com* ic, struct ieee80211_channel *chan)
                ni->ni_rsnakms = ic->ic_rsnakms;
                ni->ni_rsnciphers = ic->ic_rsnciphers;
                ni->ni_rsngroupcipher = ic->ic_rsngroupcipher;
+               ni->ni_rsngroupmgmtcipher = ic->ic_rsngroupmgmtcipher;
                ni->ni_rsncaps = 0;
 
                ic->ic_def_txkey = 1;