From: Jes Sorensen Date: Mon, 9 Jun 2014 13:16:45 +0000 (+0200) Subject: staging: rtl8723au: rtw_cfg80211_add_wep(): Use WLAN_KEY_LEN_* X-Git-Tag: firefly_0821_release~176^2~3491^2~2050 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4d9c63bbd207b20ae648bd6bd3ebcf6e52619616;p=firefly-linux-kernel-4.4.55.git staging: rtl8723au: rtw_cfg80211_add_wep(): Use WLAN_KEY_LEN_* Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c index 5a8b88c968b1..9c36f6cbd4a8 100644 --- a/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c @@ -1931,12 +1931,12 @@ static int rtw_cfg80211_add_wep(struct rtw_adapter *padapter, } switch (wep->keylen) { - case 5: + case WLAN_KEY_LEN_WEP40: psecuritypriv->dot11PrivacyAlgrthm = WLAN_CIPHER_SUITE_WEP40; RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_info_, ("%s:wep->KeyLength = 5\n", __func__)); break; - case 13: + case WLAN_KEY_LEN_WEP104: psecuritypriv->dot11PrivacyAlgrthm = WLAN_CIPHER_SUITE_WEP104; RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_info_, ("%s:wep->KeyLength = 13\n", __func__));