From 03b00b0e454091cf30b17c3297fddfb8b95061ed Mon Sep 17 00:00:00 2001 From: mentor Date: Thu, 22 May 2008 15:17:20 +0000 Subject: [PATCH] A few final bits of tidy git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3673 0192ed92-7a03-0410-a25b-9323aeb14dbd --- ath/if_ath.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ath/if_ath.c b/ath/if_ath.c index 73b3192..ba35097 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -6504,7 +6504,7 @@ ath_rx_tasklet(TQUEUE_ARG data) struct ath_desc *ds; struct ath_rx_status *rs; struct ieee80211_node *ni; - struct sk_buff* skb = NULL; + struct sk_buff *skb = NULL; unsigned int len, phyerr, mic_fail = 0; int type = -1; /* undefined */ int init_ret = 0; @@ -6636,14 +6636,13 @@ rx_accept: skb_trim(skb, skb->len - IEEE80211_CRC_LEN); if (mic_fail) { - struct ieee80211_frame *frm = + struct ieee80211_frame_min *wh_m = (struct ieee80211_frame *)skb->data; /* Ignore control frames which are reported with MIC * error. */ - if ((frm->i_fc[0] & IEEE80211_FC0_TYPE_MASK) != + if ((wh_m->i_fc[0] & IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL) { - ni = ieee80211_find_rxnode(ic, - (struct ieee80211_frame_min *)frm); + ni = ieee80211_find_rxnode(ic, wh_m); if (ni) { if (ni->ni_table) ieee80211_check_mic(ni, skb); @@ -6672,7 +6671,7 @@ rx_accept: rs->rs_rssi); { - struct ieee80211_frame * wh = + struct ieee80211_frame *wh = (struct ieee80211_frame *)skb->data; /* Only print beacons. */ -- 2.35.1