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.
This commit is contained in:
Gleb Smirnoff 2015-06-02 22:39:16 +00:00
parent 46c39cc077
commit 405c7166ef

View File

@ -1083,8 +1083,7 @@ iwi_wme_setparams(struct iwi_softc *sc, struct ieee80211com *ic)
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);