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

staging: rtl8723au: rtw_mlme.c: Convert rtw_get_wps_ie23a() to cfg80211_find_vendor_ie()

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6e5e4184
...@@ -588,19 +588,18 @@ static int rtw_is_desired_network(struct rtw_adapter *adapter, ...@@ -588,19 +588,18 @@ static int rtw_is_desired_network(struct rtw_adapter *adapter,
struct mlme_priv *pmlmepriv = &adapter->mlmepriv; struct mlme_priv *pmlmepriv = &adapter->mlmepriv;
u32 desired_encmode; u32 desired_encmode;
u32 privacy; u32 privacy;
/* u8 wps_ie[512]; */
uint wps_ielen;
int bselected = true; int bselected = true;
desired_encmode = psecuritypriv->ndisencryptstatus; desired_encmode = psecuritypriv->ndisencryptstatus;
privacy = pnetwork->network.Privacy; privacy = pnetwork->network.Privacy;
if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS)) { if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS)) {
if (rtw_get_wps_ie23a(pnetwork->network.IEs + _FIXED_IE_LENGTH_, if (cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
pnetwork->network.IELength - WLAN_OUI_TYPE_MICROSOFT_WPA,
_FIXED_IE_LENGTH_, &wps_ielen)) pnetwork->network.IEs +
_FIXED_IE_LENGTH_,
pnetwork->network.IELength -
_FIXED_IE_LENGTH_))
return true; return true;
else else
return false; return false;
......
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