Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723au: issue_probersp(): No need to calculate location of IEs, we know where they are

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jes Sorensen and committed by
Greg Kroah-Hartman
ad8686bc d642a0a0

+3 -6
+3 -6
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
··· 2528 2528 int ssid_ielen; 2529 2529 int ssid_ielen_diff; 2530 2530 u8 buf[MAX_IE_SZ]; 2531 - u8 *ies; 2532 2531 #endif 2533 2532 struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; 2534 2533 struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info; ··· 2597 2598 pattrib->pktlen += cur_network->IELength; 2598 2599 2599 2600 /* retrieve SSID IE from cur_network->Ssid */ 2600 - ies = pmgntframe->buf_addr + TXDESC_OFFSET + 2601 - sizeof(struct ieee80211_hdr_3addr); 2602 2601 2603 - ssid_ie = rtw_get_ie23a(ies + _FIXED_IE_LENGTH_, WLAN_EID_SSID, 2604 - &ssid_ielen, 2605 - pframe - ies - _FIXED_IE_LENGTH_); 2602 + ssid_ie = rtw_get_ie23a(mgmt->u.probe_resp.variable, 2603 + WLAN_EID_SSID, &ssid_ielen, 2604 + pframe - mgmt->u.probe_resp.variable); 2606 2605 2607 2606 ssid_ielen_diff = cur_network->Ssid.ssid_len - ssid_ielen; 2608 2607