Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2015 22:39:16 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283934 - head/sys/dev/iwi
Message-ID:  <201506022239.t52MdGPQ000267@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Jun  2 22:39:16 2015
New Revision: 283934
URL: https://svnweb.freebsd.org/changeset/base/283934

Log:
  The argument passed to the iwi_update_wme() is softc, not ieee80211com.
  
  This fatal mismatch appeared to be absolutely harmless, since both structs
  have pointer to struct ifnet as their first member, and they both point to
  the same ifnet.  And the first member is the only one used from the argument.

Modified:
  head/sys/dev/iwi/if_iwi.c

Modified: head/sys/dev/iwi/if_iwi.c
==============================================================================
--- head/sys/dev/iwi/if_iwi.c	Tue Jun  2 22:23:20 2015	(r283933)
+++ head/sys/dev/iwi/if_iwi.c	Tue Jun  2 22:39:16 2015	(r283934)
@@ -1083,8 +1083,7 @@ iwi_wme_setparams(struct iwi_softc *sc, 
 static void
 iwi_update_wme(void *arg, int npending)
 {
-	struct ieee80211com *ic = arg;
-	struct iwi_softc *sc = ic->ic_ifp->if_softc;
+	struct iwi_softc *sc = arg;
 	IWI_LOCK_DECL;
 
 	IWI_LOCK(sc);



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