mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2026-04-01 07:00:01 +00:00
use common ieee80211 constants
Many defined constants in wifi.h are unused and/or available from <linux/ieee80211.h>, some with slightly different names. Remove the constants from ieee80211.h and wifi.h and use the common ones. Rename where necessary.
This commit is contained in:
@@ -3609,7 +3609,7 @@ void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta)
|
||||
|
||||
|
||||
#if 0
|
||||
if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT) &&
|
||||
if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME) &&
|
||||
!psta->no_short_slot_time_set) {
|
||||
psta->no_short_slot_time_set = 1;
|
||||
pmlmepriv->num_sta_no_short_slot_time++;
|
||||
@@ -3619,7 +3619,7 @@ void bss_cap_update_on_sta_join(_adapter *padapter, struct sta_info *psta)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT)) {
|
||||
if (!(psta->capability & WLAN_CAPABILITY_SHORT_SLOT_TIME)) {
|
||||
if (!psta->no_short_slot_time_set) {
|
||||
psta->no_short_slot_time_set = 1;
|
||||
|
||||
@@ -5210,10 +5210,10 @@ u16 rtw_ap_parse_sta_security_ie(_adapter *adapter, struct sta_info *sta, struct
|
||||
status = WLAN_STATUS_ROBUST_MGMT_FRAME_POLICY_VIOLATION;
|
||||
|
||||
if (!sta->wpa2_group_cipher)
|
||||
status = WLAN_STATUS_GROUP_CIPHER_NOT_VALID;
|
||||
status = WLAN_STATUS_INVALID_GROUP_CIPHER;
|
||||
|
||||
if (!sta->wpa2_pairwise_cipher)
|
||||
status = WLAN_STATUS_PAIRWISE_CIPHER_NOT_VALID;
|
||||
status = WLAN_STATUS_INVALID_PAIRWISE_CIPHER;
|
||||
} else
|
||||
status = WLAN_STATUS_INVALID_IE;
|
||||
|
||||
@@ -5230,10 +5230,10 @@ u16 rtw_ap_parse_sta_security_ie(_adapter *adapter, struct sta_info *sta, struct
|
||||
sta->wpa_pairwise_cipher = pairwise_cipher & sec->wpa_pairwise_cipher;
|
||||
|
||||
if (!sta->wpa_group_cipher)
|
||||
status = WLAN_STATUS_GROUP_CIPHER_NOT_VALID;
|
||||
status = WLAN_STATUS_INVALID_GROUP_CIPHER;
|
||||
|
||||
if (!sta->wpa_pairwise_cipher)
|
||||
status = WLAN_STATUS_PAIRWISE_CIPHER_NOT_VALID;
|
||||
status = WLAN_STATUS_INVALID_PAIRWISE_CIPHER;
|
||||
} else
|
||||
status = WLAN_STATUS_INVALID_IE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user