diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-09-15 11:23:48 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-09-15 11:23:48 +0300 |
commit | 2aa5f847090ebad1e17316c30f1e96aa1873111e (patch) | |
tree | 5702a151b2f7081d46c23c24635a94d27663fb68 /src/drivers | |
parent | d723bab4b34bed2f4c592d1901e056d18ad26530 (diff) | |
download | external_wpa_supplicant_8_ti-2aa5f847090ebad1e17316c30f1e96aa1873111e.zip external_wpa_supplicant_8_ti-2aa5f847090ebad1e17316c30f1e96aa1873111e.tar.gz external_wpa_supplicant_8_ti-2aa5f847090ebad1e17316c30f1e96aa1873111e.tar.bz2 |
nl80211: Use defines for NL80211_KEY_CIPHER values
Diffstat (limited to 'src/drivers')
-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 " |