aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-06-16 11:20:01 +0300
committerJouni Malinen <j@w1.fi>2008-06-16 11:20:01 +0300
commit94e5af794850745e0cf5d94c603c50cfb83023aa (patch)
tree32be6b1d3983c6ddc8b23f9cb956f3ddc1add85d /hostapd
parentf598194e7a1acad822f5bde014977e795ce12ca1 (diff)
downloadexternal_wpa_supplicant_8_ti-94e5af794850745e0cf5d94c603c50cfb83023aa.zip
external_wpa_supplicant_8_ti-94e5af794850745e0cf5d94c603c50cfb83023aa.tar.gz
external_wpa_supplicant_8_ti-94e5af794850745e0cf5d94c603c50cfb83023aa.tar.bz2
Added support for configuring IGTK
This needs changes in kernel code, too, but the cipher suite for IGTK is defined in IEEE 802.11w, so this code in hostapd side can be added now.
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/driver_nl80211.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hostapd/driver_nl80211.c b/hostapd/driver_nl80211.c
index 9aaab60..ec98da2 100644
--- a/hostapd/driver_nl80211.c
+++ b/hostapd/driver_nl80211.c
@@ -208,8 +208,13 @@ static int i802_set_encryption(const char *iface, void *priv, const char *alg,
NLA_PUT_U32(msg, NL80211_ATTR_KEY_CIPHER, 0x000FAC02);
else if (strcmp(alg, "CCMP") == 0)
NLA_PUT_U32(msg, NL80211_ATTR_KEY_CIPHER, 0x000FAC04);
- else
+ else if (strcmp(alg, "IGTK") == 0)
+ NLA_PUT_U32(msg, NL80211_ATTR_KEY_CIPHER, 0x000FAC06);
+ else {
+ wpa_printf(MSG_ERROR, "%s: Unsupported encryption "
+ "algorithm '%s'", __func__, alg);
goto out;
+ }
}
if (addr)