svn commit: r280057 - head/sys/dev/wpi

Adrian Chadd adrian at FreeBSD.org
Sun Mar 15 20:18:10 UTC 2015


Author: adrian
Date: Sun Mar 15 20:18:09 2015
New Revision: 280057
URL: https://svnweb.freebsd.org/changeset/base/280057

Log:
  Use correct pointer for wpi_softc
  
  PR:		kern/197143
  Submitted by:	Andriy Voskoboinyk <s3erios at gmail.com>

Modified:
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Sun Mar 15 20:17:25 2015	(r280056)
+++ head/sys/dev/wpi/if_wpi.c	Sun Mar 15 20:18:09 2015	(r280057)
@@ -3850,9 +3850,8 @@ wpi_setup_beacon(struct wpi_softc *sc, s
 static void
 wpi_update_beacon(struct ieee80211vap *vap, int item)
 {
+	struct wpi_softc *sc = vap->iv_ic->ic_ifp->if_softc;
 	struct ieee80211_node *ni = vap->iv_bss;
-	struct ifnet *ifp = vap->iv_ifp;
-	struct wpi_softc *sc = ifp->if_softc;
 	int error;
 
 	WPI_LOCK(sc);
@@ -3970,8 +3969,7 @@ static int
 wpi_key_alloc(struct ieee80211vap *vap, struct ieee80211_key *k,
     ieee80211_keyix *keyix, ieee80211_keyix *rxkeyix)
 {
-	struct ifnet *ifp = vap->iv_ifp;
-	struct wpi_softc *sc = ifp->if_softc;
+	struct wpi_softc *sc = vap->iv_ic->ic_ifp->if_softc;
 
 	if (!(&vap->iv_nw_keys[0] <= k &&
 	    k < &vap->iv_nw_keys[IEEE80211_WEP_NKID])) {


More information about the svn-src-head mailing list