1
0
Fork 0

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

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
wifi-calibration
Jes Sorensen 2014-04-15 19:44:29 +02:00 committed by Greg Kroah-Hartman
parent 0e9596992c
commit f5f05715b2
1 changed files with 3 additions and 7 deletions

View File

@ -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;
struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *) skb->data;
frame_body = (unsigned char *)
(pframe + sizeof(struct ieee80211_hdr_3addr));
category = frame_body[0];
category = mgmt->u.action.category;
for (i = 0;
i < sizeof(OnAction23a_tbl) / sizeof(struct action_handler); i++) {