Lines Matching refs:mbo
2 * wpa_supplicant - MBO
41 const u8 *mbo, *end;
46 mbo = wpa_bss_get_vendor_ie(bss, MBO_IE_VENDOR_TYPE);
47 if (!mbo)
50 end = mbo + 2 + mbo[1];
51 mbo += MBO_IE_HEADER;
53 return get_ie(mbo, end - mbo, attr);
58 struct wpabuf *mbo,
63 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].oper_class);
66 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[i].chan);
68 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].preference);
69 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].reason);
70 wpabuf_put_u8(mbo, wpa_s->non_pref_chan[start].reason_detail);
75 struct wpabuf *mbo, u8 start, u8 end)
79 if (size + 2 > wpabuf_tailroom(mbo))
82 wpabuf_put_u8(mbo, MBO_ATTR_ID_NON_PREF_CHAN_REPORT);
83 wpabuf_put_u8(mbo, size); /* Length */
85 wpas_mbo_non_pref_chan_attr_body(wpa_s, mbo, start, end);
89 static void wpas_mbo_non_pref_chan_subelem_hdr(struct wpabuf *mbo, u8 len)
91 wpabuf_put_u8(mbo, WLAN_EID_VENDOR_SPECIFIC);
92 wpabuf_put_u8(mbo, len); /* Length */
93 wpabuf_put_be24(mbo, OUI_WFA);
94 wpabuf_put_u8(mbo, MBO_ATTR_ID_NON_PREF_CHAN_REPORT);
99 struct wpabuf *mbo, u8 start,
104 if (size + 2 > wpabuf_tailroom(mbo))
107 wpas_mbo_non_pref_chan_subelem_hdr(mbo, size);
108 wpas_mbo_non_pref_chan_attr_body(wpa_s, mbo, start, end);
113 struct wpabuf *mbo, int subelement)
120 wpas_mbo_non_pref_chan_subelem_hdr(mbo, 4);
136 wpas_mbo_non_pref_chan_subelement(wpa_s, mbo,
139 wpas_mbo_non_pref_chan_attr(wpa_s, mbo, start,
154 struct wpabuf *mbo;
160 /* Leave room for the MBO IE header */
161 mbo = wpabuf_alloc(len - MBO_IE_HEADER);
162 if (!mbo)
166 wpas_mbo_non_pref_chan_attrs(wpa_s, mbo, 0);
172 wpabuf_put_u8(mbo, MBO_ATTR_ID_CELL_DATA_CAPA);
173 wpabuf_put_u8(mbo, 1);
174 wpabuf_put_u8(mbo, wpa_s->conf->mbo_cell_capa);
176 res = mbo_add_ie(buf, len, wpabuf_head_u8(mbo), wpabuf_len(mbo));
178 wpa_printf(MSG_ERROR, "Failed to add MBO IE");
180 wpabuf_free(mbo);
194 * MBO.
250 * In MBO IE non-preferred channel subelement we can put many channels in an
278 wpa_printf(MSG_DEBUG, "MBO: Update non-preferred channels, non_pref_chan=%s",
632 "MBO: Added supported operating classes IE",
673 MBO: Station does not support Cellular data connection");
688 "MBO: Unexpected association retry delay, BSS is terminating");
695 "MBO: Association retry delay attribute not in disassoc imminent mode");
705 "MBO: Attribute %d should not be included in BTM Request frame",
709 wpa_printf(MSG_DEBUG, "MBO: Unknown attribute id %u",
732 wpa_printf(MSG_DEBUG, "MBO IE parsing failed (id=%u len=%u left=%zu)",
757 "MBO: Cellular capability already set to %u",