aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iwn
diff options
context:
space:
mode:
authorAndriy Voskoboinyk <avos@FreeBSD.org>2017-03-28 22:40:51 +0000
committerAndriy Voskoboinyk <avos@FreeBSD.org>2017-03-28 22:40:51 +0000
commit350086f24956576c1ba061e31a7ffc2a54a2cba5 (patch)
tree9f8f411fec26b0f584eea2e61be232c715811285 /sys/dev/iwn
parentc9bac21cc90e04946bad6fe06e45a97ffd90cac0 (diff)
downloadsrc-350086f24956576c1ba061e31a7ffc2a54a2cba5.tar.gz
src-350086f24956576c1ba061e31a7ffc2a54a2cba5.zip
iwn: remove unneeded cast.
Notes
Notes: svn path=/head/; revision=316116
Diffstat (limited to 'sys/dev/iwn')
-rw-r--r--sys/dev/iwn/if_iwn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c
index 0462743a0c30..a79e16312614 100644
--- a/sys/dev/iwn/if_iwn.c
+++ b/sys/dev/iwn/if_iwn.c
@@ -2994,7 +2994,7 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,
struct iwn_ops *ops = &sc->ops;
struct ieee80211com *ic = &sc->sc_ic;
struct iwn_rx_ring *ring = &sc->rxq;
- struct ieee80211_frame *wh;
+ struct ieee80211_frame_min *wh;
struct ieee80211_node *ni;
struct mbuf *m, *m1;
struct iwn_rx_stat *stat;
@@ -3096,9 +3096,9 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,
m->m_pkthdr.len = m->m_len = len;
/* Grab a reference to the source node. */
- wh = mtod(m, struct ieee80211_frame *);
+ wh = mtod(m, struct ieee80211_frame_min *);
if (len >= sizeof(struct ieee80211_frame_min))
- ni = ieee80211_find_rxnode(ic, (struct ieee80211_frame_min *)wh);
+ ni = ieee80211_find_rxnode(ic, wh);
else
ni = NULL;
nf = (ni != NULL && ni->ni_vap->iv_state == IEEE80211_S_RUN &&
@@ -3130,7 +3130,7 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,
if (sc->sc_beacon_wait) {
uint8_t type, subtype;
/* NB: Re-assign wh */
- wh = mtod(m, struct ieee80211_frame *);
+ wh = mtod(m, struct ieee80211_frame_min *);
type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
/*