mac80211: fill jiffies/vif on filtered frames
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 25 Jan 2010 18:07:39 +0000 (19:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Jan 2010 21:40:49 +0000 (16:40 -0500)
Filtered frames not only need their control information
cleared to avoid wrong checks, but also need to have
jiffies and vif assigned so they can be processed or
expired.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/status.c

index 800b6777e0edda9086d21943dcb22595e85a87ba..e57ad6b1d7ea31c334f69079cb589979951d42e3 100644 (file)
@@ -53,6 +53,9 @@ static void ieee80211_handle_filtered_frame(struct ieee80211_local *local,
         * modified/encrypted again.
         */
        memset(&info->control, 0, sizeof(info->control));
+
+       info->control.jiffies = jiffies;
+       info->control.vif = &sta->sdata->vif;
        info->flags |= IEEE80211_TX_INTFL_NEED_TXPROCESSING |
                       IEEE80211_TX_INTFL_RETRANSMISSION;