diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/driver_nl80211.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 5f7d681..dcc27c6 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -1882,18 +1882,21 @@ static int nl_add_key(struct nl_msg *msg, wpa_alg alg, switch (alg) { case WPA_ALG_WEP: if (key_len == 5) - NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC01); + NLA_PUT_U32(msg, NL80211_KEY_CIPHER, + WLAN_CIPHER_SUITE_WEP40); else - NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC05); + NLA_PUT_U32(msg, NL80211_KEY_CIPHER, + WLAN_CIPHER_SUITE_WEP104); break; case WPA_ALG_TKIP: - NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC02); + NLA_PUT_U32(msg, NL80211_KEY_CIPHER, WLAN_CIPHER_SUITE_TKIP); break; case WPA_ALG_CCMP: - NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC04); + NLA_PUT_U32(msg, NL80211_KEY_CIPHER, WLAN_CIPHER_SUITE_CCMP); break; case WPA_ALG_IGTK: - NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC06); + NLA_PUT_U32(msg, NL80211_KEY_CIPHER, + WLAN_CIPHER_SUITE_AES_CMAC); break; default: wpa_printf(MSG_ERROR, "%s: Unsupported encryption " |