mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 14:34:13 -04:00
staging: rtl8723au: rtw_cfg80211_add_wep(): Use WLAN_KEY_LEN_*
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
70fbc1a8a1
commit
4d9c63bbd2
@@ -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__));
|
||||
|
||||
Reference in New Issue
Block a user