staging: rtl8723au: rtw_check_bcn_info23a(): Use capability bit define
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 31 May 2014 16:05:15 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 19:35:40 +0000 (12:35 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index 8c007cddd4b9fb78c019a8b99177aa9f3f69e6d8..67fb7ece7e35a7a204e0fe61d1bc61da9a300934 100644 (file)
@@ -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;