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/usb/if_ral.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys/dev/usb/if_ral.c') diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c index f125f66eb12..c1bc8f10aa9 100644 --- a/sys/dev/usb/if_ral.c +++ b/sys/dev/usb/if_ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral.c,v 1.103 2008/04/16 18:32:15 damien Exp $ */ +/* $OpenBSD: if_ral.c,v 1.104 2008/07/21 18:43:19 damien Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -708,6 +708,7 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) struct ifnet *ifp = &ic->ic_if; const struct ural_rx_desc *desc; struct ieee80211_frame *wh; + struct ieee80211_rxinfo rxi; struct ieee80211_node *ni; struct mbuf *mnew, *m; int s, len; @@ -795,7 +796,10 @@ ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) 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