Skip to contentSkip to conversation

mac80211: fill jiffies/vif on filtered frames

PATCH New Johannes Berg 1 participant 1 message Jan 25, 2010 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: fill jiffies/vif on filtered frames

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.

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