From owner-svn-src-all@freebsd.org Wed Mar 4 22:31:42 2020 Return-Path: Delivered-To: svn-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA3F625405F; Wed, 4 Mar 2020 22:31:42 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48XpWy3Ccdz4DBr; Wed, 4 Mar 2020 22:31:42 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D779E253CA; Wed, 4 Mar 2020 22:31:41 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 024MVfuo077670; Wed, 4 Mar 2020 22:31:41 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 024MVfga077668; Wed, 4 Mar 2020 22:31:41 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <202003042231.024MVfga077668@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Wed, 4 Mar 2020 22:31:41 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r358656 - head/sys/dev/wtap X-SVN-Group: head X-SVN-Commit-Author: glebius X-SVN-Commit-Paths: head/sys/dev/wtap X-SVN-Commit-Revision: 358656 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 22:31:42 -0000 Author: glebius Date: Wed Mar 4 22:31:41 2020 New Revision: 358656 URL: https://svnweb.freebsd.org/changeset/base/358656 Log: Remove unused function. Modified: head/sys/dev/wtap/if_wtap.c head/sys/dev/wtap/if_wtapvar.h Modified: head/sys/dev/wtap/if_wtap.c ============================================================================== --- head/sys/dev/wtap/if_wtap.c Wed Mar 4 22:27:16 2020 (r358655) +++ head/sys/dev/wtap/if_wtap.c Wed Mar 4 22:31:41 2020 (r358656) @@ -448,44 +448,6 @@ wtap_inject(struct wtap_softc *sc, struct mbuf *m) mtx_unlock(&sc->sc_mtx); } -void -wtap_rx_deliver(struct wtap_softc *sc, struct mbuf *m) -{ - struct epoch_tracker et; - struct ieee80211com *ic = &sc->sc_ic; - struct ieee80211_node *ni; - int type; -#if 0 - DWTAP_PRINTF("%s\n", __func__); -#endif - - DWTAP_PRINTF("[%d] receiving m=%p\n", sc->id, m); - if (m == NULL) { /* NB: shouldn't happen */ - ic_printf(ic, "%s: no mbuf!\n", __func__); - } - - ieee80211_dump_pkt(ic, mtod(m, caddr_t), 0,0,0); - - /* - * Locate the node for sender, track state, and then - * pass the (referenced) node up to the 802.11 layer - * for its use. - */ - ni = ieee80211_find_rxnode_withkey(ic, - mtod(m, const struct ieee80211_frame_min *),IEEE80211_KEYIX_NONE); - NET_EPOCH_ENTER(et); - if (ni != NULL) { - /* - * Sending station is known, dispatch directly. - */ - type = ieee80211_input(ni, m, 1<<7, 10); - ieee80211_free_node(ni); - } else { - type = ieee80211_input_all(ic, m, 1<<7, 10); - } - NET_EPOCH_EXIT(et); -} - static void wtap_rx_proc(void *arg, int npending) { Modified: head/sys/dev/wtap/if_wtapvar.h ============================================================================== --- head/sys/dev/wtap/if_wtapvar.h Wed Mar 4 22:27:16 2020 (r358655) +++ head/sys/dev/wtap/if_wtapvar.h Wed Mar 4 22:31:41 2020 (r358656) @@ -154,6 +154,5 @@ void wtap_suspend(struct wtap_softc *); void wtap_shutdown(struct wtap_softc *); void wtap_intr(struct wtap_softc *); void wtap_inject(struct wtap_softc *, struct mbuf *); -void wtap_rx_deliver(struct wtap_softc *, struct mbuf *); #endif