提交 07d2c3b8 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: OnAssocReq23a(): use ieee80211_mgmt to calculate offset

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 43c34be1
......@@ -1304,11 +1304,11 @@ OnAssocReq23a(struct rtw_adapter *padapter, struct recv_frame *precv_frame)
if (ieee80211_is_assoc_req(mgmt->frame_control)) {
reassoc = 0;
pos = mgmt->u.assoc_req.variable;
left -= _ASOCREQ_IE_OFFSET_;
left -= offsetof(struct ieee80211_mgmt, u.assoc_req.variable);
} else { /* WIFI_REASSOCREQ */
reassoc = 1;
pos = mgmt->u.reassoc_req.variable;
left -= _REASOCREQ_IE_OFFSET_;
left -= offsetof(struct ieee80211_mgmt, u.reassoc_req.variable);
}
if (left < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册