From 38298a179ae37e8a1e9763c06a5565a4acd82b54 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Mon, 21 Jul 2008 18:43:20 +0000 Subject: instead of passing rx tstamp and rssi to the ieee80211_input function, pass a pointer to an ieee80211_rxinfo structure containing those two fields plus an extra flags field that indicates whether the frame was decrypted by hardware or not. required for a future fix. --- sys/dev/ic/rt2560.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/rt2560.c') diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index 81bbb9f93f0..ab8d87fbb7c 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2560.c,v 1.36 2008/04/16 18:32:15 damien Exp $ */ +/* $OpenBSD: rt2560.c,v 1.37 2008/07/21 18:43:19 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -1071,6 +1071,7 @@ rt2560_decryption_intr(struct rt2560_softc *sc) struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = &ic->ic_if; struct ieee80211_frame *wh; + struct ieee80211_rxinfo rxi; struct ieee80211_node *ni; struct mbuf *mnew, *m; int hw, error; @@ -1193,7 +1194,10 @@ rt2560_decryption_intr(struct rt2560_softc *sc) ni = ieee80211_find_rxnode(ic, wh); /* send the frame to the 802.11 layer */ - ieee80211_input(ifp, m, ni, desc->rssi, 0); + rxi.rxi_flags = 0; + rxi.rxi_rssi = desc->rssi; + rxi.rxi_tstamp = 0; /* unused */ + ieee80211_input(ifp, m, ni, &rxi); /* node is no longer needed */ ieee80211_release_node(ic, ni); -- cgit v1.2.3