Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Jun 2016 07:18:39 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301302 - head/sys/dev/usb/wlan
Message-ID:  <201606040718.u547IdpJ027550@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sat Jun  4 07:18:39 2016
New Revision: 301302
URL: https://svnweb.freebsd.org/changeset/base/301302

Log:
  [run] fix TSF locking in RX radiotap.
  
  Submitted by:	Imre Vadasz <imre@vdsz.com>

Modified:
  head/sys/dev/usb/wlan/if_run.c

Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c	Sat Jun  4 05:46:52 2016	(r301301)
+++ head/sys/dev/usb/wlan/if_run.c	Sat Jun  4 07:18:39 2016	(r301302)
@@ -2829,7 +2829,9 @@ run_rx_frame(struct run_softc *sc, struc
 		tap->wr_antenna = ant;
 		tap->wr_dbm_antsignal = run_rssi2dbm(sc, rssi, ant);
 		tap->wr_rate = 2;	/* in case it can't be found below */
+		RUN_LOCK(sc);
 		run_get_tsf(sc, &tap->wr_tsf);
+		RUN_UNLOCK(sc);
 		phy = le16toh(rxwi->phy);
 		switch (phy & RT2860_PHY_MODE) {
 		case RT2860_PHY_CCK:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606040718.u547IdpJ027550>