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

staging: rtl8723au: OnAction23a(): Use struct ieee80211_mgmt instead of hardcoded offsets

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0e959699
......@@ -2245,16 +2245,12 @@ static int
OnAction23a(struct rtw_adapter *padapter, struct recv_frame *precv_frame)
{
int i;
unsigned char category;
u8 category;
struct action_handler *ptable;
unsigned char *frame_body;
struct sk_buff *skb = precv_frame->pkt;
u8 *pframe = skb->data;
frame_body = (unsigned char *)
(pframe + sizeof(struct ieee80211_hdr_3addr));
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data;
category = frame_body[0];
category = mgmt->u.action.category;
for (i = 0;
i < sizeof(OnAction23a_tbl) / sizeof(struct action_handler); i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册