mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-14 02:27:44 +00:00
staging: rtl8723au: Remove redundant checks of WPA OUI
All callers get here by searching for the WPA OUI first, so no point checking for it once we get here. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
819d181566
commit
1ffc7622a5
1 changed files with 1 additions and 4 deletions
|
@ -503,11 +503,8 @@ int rtw_parse_wpa_ie23a(const u8* wpa_ie, int wpa_ie_len, int *group_cipher, int
|
|||
return _FAIL;
|
||||
}
|
||||
|
||||
if ((*wpa_ie != WLAN_EID_VENDOR_SPECIFIC) ||
|
||||
(*(wpa_ie+1) != (u8)(wpa_ie_len - 2)) ||
|
||||
memcmp(wpa_ie + 2, RTW_WPA_OUI23A_TYPE, WPA_SELECTOR_LEN)) {
|
||||
if (wpa_ie[1] != (u8)(wpa_ie_len - 2))
|
||||
return _FAIL;
|
||||
}
|
||||
|
||||
pos = wpa_ie;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue