Commit 9ce73e2e authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_get_bcn_info23a(): Use capability from wlan_bssid_ex

This eliminates yet another user of rtw_get_capability23a_from_ie()
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 92af4499
...@@ -770,15 +770,12 @@ static int rtw_get_cipher_info(struct wlan_network *pnetwork) ...@@ -770,15 +770,12 @@ static int rtw_get_cipher_info(struct wlan_network *pnetwork)
void rtw_get_bcn_info23a(struct wlan_network *pnetwork) void rtw_get_bcn_info23a(struct wlan_network *pnetwork)
{ {
unsigned short cap;
u8 bencrypt = 0; u8 bencrypt = 0;
int pie_len, ie_offset; int pie_len, ie_offset;
u8 *pie; u8 *pie;
const u8 *p; const u8 *p;
cap = get_unaligned_le16( if (pnetwork->network.capability & WLAN_CAPABILITY_PRIVACY) {
rtw_get_capability23a_from_ie(pnetwork->network.IEs));
if (cap & WLAN_CAPABILITY_PRIVACY) {
bencrypt = 1; bencrypt = 1;
pnetwork->network.Privacy = 1; pnetwork->network.Privacy = 1;
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment