Lines Matching refs:mbie

29 		const struct multi_band_ie *mbie =  in fst_dump_mb_ies()  local
31 WPA_ASSERT(mbie->eid == WLAN_EID_MULTI_BAND); in fst_dump_mb_ies()
32 WPA_ASSERT(2U + mbie->len >= sizeof(*mbie)); in fst_dump_mb_ies()
39 mbie->mb_ctrl, mbie->band_id, mbie->op_class, in fst_dump_mb_ies()
40 mbie->chan, MAC2STR(mbie->bssid), mbie->beacon_int, in fst_dump_mb_ies()
41 mbie->tsf_offs[0], mbie->tsf_offs[1], in fst_dump_mb_ies()
42 mbie->tsf_offs[2], mbie->tsf_offs[3], in fst_dump_mb_ies()
43 mbie->tsf_offs[4], mbie->tsf_offs[5], in fst_dump_mb_ies()
44 mbie->tsf_offs[6], mbie->tsf_offs[7], in fst_dump_mb_ies()
45 mbie->mb_connection_capability, in fst_dump_mb_ies()
46 mbie->fst_session_tmout); in fst_dump_mb_ies()
48 p += 2 + mbie->len; in fst_dump_mb_ies()
49 s -= 2 + mbie->len; in fst_dump_mb_ies()
57 struct multi_band_ie *mbie; in fst_fill_mb_ie() local
58 size_t len = sizeof(*mbie); in fst_fill_mb_ie()
63 mbie = wpabuf_put(buf, len); in fst_fill_mb_ie()
65 os_memset(mbie, 0, len); in fst_fill_mb_ie()
67 mbie->eid = WLAN_EID_MULTI_BAND; in fst_fill_mb_ie()
68 mbie->len = len - 2; in fst_fill_mb_ie()
70 mbie->mb_ctrl = MB_STA_ROLE_AP; in fst_fill_mb_ie()
71 mbie->mb_connection_capability = MB_CONNECTION_CAPABILITY_AP; in fst_fill_mb_ie()
73 mbie->mb_ctrl = MB_STA_ROLE_NON_PCP_NON_AP; in fst_fill_mb_ie()
74 mbie->mb_connection_capability = 0; in fst_fill_mb_ie()
77 os_memcpy(mbie->bssid, bssid, ETH_ALEN); in fst_fill_mb_ie()
78 mbie->band_id = band; in fst_fill_mb_ie()
79 mbie->op_class = 0; /* means all */ in fst_fill_mb_ie()
80 mbie->chan = channel; in fst_fill_mb_ie()
81 mbie->fst_session_tmout = FST_DEFAULT_SESSION_TIMEOUT_TU; in fst_fill_mb_ie()
84 mbie->mb_ctrl |= MB_CTRL_STA_MAC_PRESENT; in fst_fill_mb_ie()
85 os_memcpy(&mbie[1], own_addr, ETH_ALEN); in fst_fill_mb_ie()
178 static const u8 * fst_mbie_get_peer_addr(const struct multi_band_ie *mbie) in fst_mbie_get_peer_addr() argument
182 switch (MB_CTRL_ROLE(mbie->mb_ctrl)) { in fst_mbie_get_peer_addr()
184 peer_addr = mbie->bssid; in fst_mbie_get_peer_addr()
187 if (mbie->mb_ctrl & MB_CTRL_STA_MAC_PRESENT && in fst_mbie_get_peer_addr()
188 (size_t) 2 + mbie->len >= sizeof(*mbie) + ETH_ALEN) in fst_mbie_get_peer_addr()
189 peer_addr = (const u8 *) &mbie[1]; in fst_mbie_get_peer_addr()
206 const struct multi_band_ie *mbie = in fst_mbie_get_peer_addr_for_band() local
209 if (mbie->eid != WLAN_EID_MULTI_BAND) { in fst_mbie_get_peer_addr_for_band()
210 fst_printf(MSG_INFO, "unexpected eid %d", mbie->eid); in fst_mbie_get_peer_addr_for_band()
214 if (mbie->len < sizeof(*mbie) - 2 || mbie->len > s - 2) { in fst_mbie_get_peer_addr_for_band()
216 mbie->len); in fst_mbie_get_peer_addr_for_band()
220 if (mbie->band_id == band_id) in fst_mbie_get_peer_addr_for_band()
221 return fst_mbie_get_peer_addr(mbie); in fst_mbie_get_peer_addr_for_band()
223 p += 2 + mbie->len; in fst_mbie_get_peer_addr_for_band()
224 s -= 2 + mbie->len; in fst_mbie_get_peer_addr_for_band()
513 struct wpabuf *mbie = fst_group_create_mb_ie(g, i); in fst_group_update_ie() local
515 if (!mbie) in fst_group_update_ie()
518 fst_iface_attach_mbie(i, mbie); in fst_group_update_ie()
519 fst_iface_set_ies(i, mbie); in fst_group_update_ie()
520 fst_printf_iface(i, MSG_DEBUG, "multi-band IE set to %p", mbie); in fst_group_update_ie()