Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f728f10 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: issue_beacon23a(): Determine ie buffer location using 80211_mgmt

parent 89060370
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -2430,11 +2430,9 @@ void issue_beacon23a(struct rtw_adapter *padapter, int timeout_ms)
		pframe += (cur_network->IELength+len_diff);
		pframe += (cur_network->IELength+len_diff);
		pattrib->pktlen += (cur_network->IELength+len_diff);
		pattrib->pktlen += (cur_network->IELength+len_diff);


		iebuf = pmgntframe->buf_addr + TXDESC_OFFSET +
		iebuf = mgmt->u.beacon.variable;
			sizeof (struct ieee80211_hdr_3addr) +
		buflen = pattrib->pktlen -
			_BEACON_IE_OFFSET_;
			offsetof(struct ieee80211_mgmt, u.beacon.variable);
		buflen = pattrib->pktlen - sizeof (struct ieee80211_hdr_3addr) -
			_BEACON_IE_OFFSET_;
		wps_ie = cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
		wps_ie = cfg80211_find_vendor_ie(WLAN_OUI_MICROSOFT,
						 WLAN_OUI_TYPE_MICROSOFT_WPS,
						 WLAN_OUI_TYPE_MICROSOFT_WPS,
						 iebuf, buflen);
						 iebuf, buflen);