* Process a received frame in monitor mode. */
| 127 | * Process a received frame in monitor mode. |
| 128 | */ |
| 129 | static int |
| 130 | monitor_input(struct ieee80211_node *ni, struct mbuf *m, |
| 131 | const struct ieee80211_rx_stats *rxs, int rssi, int nf) |
| 132 | { |
| 133 | struct ieee80211vap *vap = ni->ni_vap; |
| 134 | struct ifnet *ifp = vap->iv_ifp; |
| 135 | |
| 136 | if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); |
| 137 | |
| 138 | if (ieee80211_radiotap_active_vap(vap)) |
| 139 | ieee80211_radiotap_rx(vap, m); |
| 140 | m_freem(m); |
| 141 | return -1; |
| 142 | } |
nothing calls this directly
no test coverage detected