From: Jes Sorensen Date: Sat, 31 May 2014 16:05:15 +0000 (+0200) Subject: staging: rtl8723au: rtw_check_bcn_info23a(): Use capability bit define X-Git-Tag: firefly_0821_release~176^2~3491^2~2100 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a665bcc2441fcf30636c2792c125a4d07d44d617;p=firefly-linux-kernel-4.4.55.git staging: rtl8723au: rtw_check_bcn_info23a(): Use capability bit define Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c b/drivers/staging/rtl8723au/core/rtw_wlan_util.c index 8c007cddd4b9..67fb7ece7e35 100644 --- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c @@ -995,7 +995,7 @@ int rtw_check_bcn_info23a(struct rtw_adapter *Adapter, /* check encryption info */ val16 = rtw_get_capability23a(bssid); - if (val16 & BIT(4)) + if (val16 & WLAN_CAPABILITY_PRIVACY) bssid->Privacy = 1; else bssid->Privacy = 0;