public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: fill jiffies/vif on filtered frames
@ 2010-01-25 18:07 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2010-01-25 18:07 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless

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>
---
 net/mac80211/status.c |    3 +++
 1 file changed, 3 insertions(+)

--- wireless-testing.orig/net/mac80211/status.c	2010-01-24 12:20:50.000000000 +0100
+++ wireless-testing/net/mac80211/status.c	2010-01-24 12:22:03.000000000 +0100
@@ -53,6 +53,9 @@ static void ieee80211_handle_filtered_fr
 	 * 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;
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-25 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-25 18:07 [PATCH] mac80211: fill jiffies/vif on filtered frames Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox