From: Jes Sorensen Date: Thu, 19 Jun 2014 09:37:25 +0000 (+0200) Subject: staging: rtl8723au: is_same_network23a(): Use the capability info from wlan_bssid_ex X-Git-Tag: v5.15~17495^2~1932 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccb1bdcb485864dde708b059a9437f2a481a8282;p=platform%2Fkernel%2Flinux-starfive.git 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: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c index 567be5e..2119dfb 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c @@ -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) && */