Lines Matching refs:wh
173 const struct ieee80211_frame *wh = data; in ieee80211_hdrsize() local
177 KASSERT((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) != IEEE80211_FC0_TYPE_CTL, in ieee80211_hdrsize()
179 if (IEEE80211_IS_DSTODS(wh)) in ieee80211_hdrsize()
181 if (IEEE80211_QOS_HAS_SEQ(wh)) in ieee80211_hdrsize()
192 const struct ieee80211_frame *wh = data; in ieee80211_anyhdrsize() local
194 if ((wh->i_fc[0]&IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_CTL) { in ieee80211_anyhdrsize()
195 switch (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) { in ieee80211_anyhdrsize()
237 const struct ieee80211_frame *wh);
316 struct ieee80211_frame *wh = data; in ieee80211_getqos() local
318 KASSERT(IEEE80211_QOS_HAS_SEQ(wh), ("QoS field is absent!")); in ieee80211_getqos()
320 if (IEEE80211_IS_DSTODS(wh)) in ieee80211_getqos()
321 return (((struct ieee80211_qosframe_addr4 *)wh)->i_qos); in ieee80211_getqos()
323 return (((struct ieee80211_qosframe *)wh)->i_qos); in ieee80211_getqos()
331 ieee80211_gettid(const struct ieee80211_frame *wh) in ieee80211_gettid() argument
335 if (IEEE80211_QOS_HAS_SEQ(wh)) { in ieee80211_gettid()
336 if (IEEE80211_IS_DSTODS(wh)) in ieee80211_gettid()
337 tid = ((const struct ieee80211_qosframe_addr4 *)wh)-> in ieee80211_gettid()
340 tid = ((const struct ieee80211_qosframe *)wh)->i_qos[0]; in ieee80211_gettid()