Lines Matching refs:wh

56     struct ieee80211_frame *wh, int type, const uint8_t *sa, const uint8_t *da,
59 wh->i_fc[0] = (uint8_t)(IEEE80211_FC0_VERSION_0 | type);
63 wh->i_fc[1] = IEEE80211_FC1_DIR_TODS;
64 IEEE80211_ADDR_COPY(wh->i_addr1, bssid);
65 IEEE80211_ADDR_COPY(wh->i_addr2, sa);
66 IEEE80211_ADDR_COPY(wh->i_addr3, da);
70 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
71 IEEE80211_ADDR_COPY(wh->i_addr1, da);
72 IEEE80211_ADDR_COPY(wh->i_addr2, sa);
73 IEEE80211_ADDR_COPY(wh->i_addr3, bssid);
81 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
82 IEEE80211_ADDR_COPY(wh->i_addr1, da);
83 IEEE80211_ADDR_COPY(wh->i_addr2, sa);
84 IEEE80211_ADDR_COPY(wh->i_addr3, bssid);
86 *(uint16_t *)&wh->i_dur[0] = 0; /* set duration */
88 *(uint16_t *)&wh->i_seq[0] =
108 struct ieee80211_frame *wh;
112 wh = (struct ieee80211_frame *)mp->b_rptr;
113 ieee80211_send_setup(ic, in, wh, IEEE80211_FC0_TYPE_MGT | type,
116 wh->i_fc[1] |= IEEE80211_FC1_WEP;
140 struct ieee80211_frame *wh;
149 wh = (struct ieee80211_frame *)m->b_rptr;
150 ieee80211_send_setup(ic, in, wh,
156 wh->i_fc[1] |= IEEE80211_FC1_PWR_MGT;
163 wh->i_fc[1] & IEEE80211_FC1_PWR_MGT ? "ena" : "dis");
178 struct ieee80211_frame *wh;
191 wh = (struct ieee80211_frame *)mp->b_rptr;
192 *(uint16_t *)wh->i_dur = 0;
195 (struct ieee80211_qosframe *)wh;
235 *(uint16_t *)wh->i_seq =
239 *(uint16_t *)wh->i_seq =
255 wh->i_fc[1] |= IEEE80211_FC1_WEP;
430 struct ieee80211_frame *wh;
458 wh = (struct ieee80211_frame *)mp->b_rptr;
459 ieee80211_send_setup(ic, in, wh,
465 ieee80211_macaddr_sprintf(wh->i_addr1),
796 struct ieee80211_frame *wh;
914 wh = (struct ieee80211_frame *)m->b_rptr;
915 wh->i_fc[0] = IEEE80211_FC0_VERSION_0 | IEEE80211_FC0_TYPE_MGT |
917 wh->i_fc[1] = IEEE80211_FC1_DIR_NODS;
918 *(uint16_t *)wh->i_dur = 0;
919 IEEE80211_ADDR_COPY(wh->i_addr1, wifi_bcastaddr);
920 IEEE80211_ADDR_COPY(wh->i_addr2, ic->ic_macaddr);
921 IEEE80211_ADDR_COPY(wh->i_addr3, in->in_bssid);
922 *(uint16_t *)wh->i_seq = 0;