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

staging: rtl8723au: OnAction23a_back23a(): Use struct ieee8011_mgmt to parse action frames

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f5f05715
...@@ -2000,7 +2000,6 @@ static int OnAction23a_back23a(struct rtw_adapter *padapter, ...@@ -2000,7 +2000,6 @@ static int OnAction23a_back23a(struct rtw_adapter *padapter,
u8 *addr; u8 *addr;
struct sta_info *psta = NULL; struct sta_info *psta = NULL;
struct recv_reorder_ctrl *preorder_ctrl; struct recv_reorder_ctrl *preorder_ctrl;
unsigned char *frame_body;
unsigned char category, action; unsigned char category, action;
unsigned short tid, status, capab, params, reason_code = 0; unsigned short tid, status, capab, params, reason_code = 0;
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
...@@ -2025,17 +2024,18 @@ static int OnAction23a_back23a(struct rtw_adapter *padapter, ...@@ -2025,17 +2024,18 @@ static int OnAction23a_back23a(struct rtw_adapter *padapter,
if (!psta) if (!psta)
return _SUCCESS; return _SUCCESS;
frame_body = &mgmt->u.action.category;
category = mgmt->u.action.category; category = mgmt->u.action.category;
if (category == WLAN_CATEGORY_BACK) { /* representing Block Ack */ if (category == WLAN_CATEGORY_BACK) { /* representing Block Ack */
if (!pmlmeinfo->HT_enable) if (!pmlmeinfo->HT_enable)
return _SUCCESS; return _SUCCESS;
action = frame_body[1]; /* action_code is located in the same place for all
action events, so pick any */
action = mgmt->u.action.u.wme_action.action_code;
DBG_8723A("%s, action =%d\n", __func__, action); DBG_8723A("%s, action =%d\n", __func__, action);
switch (action) { switch (action) {
case WLAN_ACTION_ADDBA_REQ: /* ADDBA request */ case WLAN_ACTION_ADDBA_REQ: /* ADDBA request */
memcpy(&pmlmeinfo->ADDBA_req, &frame_body[2], memcpy(&pmlmeinfo->ADDBA_req,
&mgmt->u.action.u.addba_req.dialog_token,
sizeof(struct ADDBA_request)); sizeof(struct ADDBA_request));
process_addba_req23a(padapter, process_addba_req23a(padapter,
(u8 *)&pmlmeinfo->ADDBA_req, addr); (u8 *)&pmlmeinfo->ADDBA_req, addr);
......
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