Commit ccb1bdcb authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: is_same_network23a(): Use the capability info from wlan_bssid_ex



We already have the capability info in struct wlan_bssid_ex, no point
in searching for it once again.

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ddf5c2bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -366,8 +366,8 @@ int is_same_network23a(struct wlan_bssid_ex *src, struct wlan_bssid_ex *dst)
{
	u16 s_cap, d_cap;

	s_cap = get_unaligned_le16(rtw_get_capability23a_from_ie(src->IEs));
	d_cap = get_unaligned_le16(rtw_get_capability23a_from_ie(dst->IEs));
	s_cap = src->capability;
	d_cap = dst->capability;

	return ((src->Ssid.ssid_len == dst->Ssid.ssid_len) &&
		/*	(src->DSConfig == dst->DSConfig) && */