Lines Matching refs:buf

106 	struct wpabuf *buf;  in hs20_send_wnm_notification()  local
122 buf = wpabuf_alloc(4 + 7 + len); in hs20_send_wnm_notification()
123 if (buf == NULL) in hs20_send_wnm_notification()
126 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification()
127 wpabuf_put_u8(buf, WNM_NOTIFICATION_REQ); in hs20_send_wnm_notification()
128 wpabuf_put_u8(buf, 1); /* Dialog token */ in hs20_send_wnm_notification()
129 wpabuf_put_u8(buf, 1); /* Type - 1 reserved for WFA */ in hs20_send_wnm_notification()
132 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in hs20_send_wnm_notification()
133 wpabuf_put_u8(buf, 5 + len); in hs20_send_wnm_notification()
134 wpabuf_put_be24(buf, OUI_WFA); in hs20_send_wnm_notification()
135 wpabuf_put_u8(buf, HS20_WNM_SUB_REM_NEEDED); in hs20_send_wnm_notification()
137 wpabuf_put_u8(buf, len - 1); in hs20_send_wnm_notification()
138 wpabuf_put_data(buf, url, len - 1); in hs20_send_wnm_notification()
139 wpabuf_put_u8(buf, osu_method); in hs20_send_wnm_notification()
142 wpabuf_put_u8(buf, 0); in hs20_send_wnm_notification()
146 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification()
148 wpabuf_free(buf); in hs20_send_wnm_notification()
158 struct wpabuf *buf; in hs20_send_wnm_notification_deauth_req() local
164 buf = wpabuf_alloc(4 + 6 + wpabuf_len(payload)); in hs20_send_wnm_notification_deauth_req()
165 if (buf == NULL) in hs20_send_wnm_notification_deauth_req()
168 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification_deauth_req()
169 wpabuf_put_u8(buf, WNM_NOTIFICATION_REQ); in hs20_send_wnm_notification_deauth_req()
170 wpabuf_put_u8(buf, 1); /* Dialog token */ in hs20_send_wnm_notification_deauth_req()
171 wpabuf_put_u8(buf, 1); /* Type - 1 reserved for WFA */ in hs20_send_wnm_notification_deauth_req()
174 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in hs20_send_wnm_notification_deauth_req()
175 wpabuf_put_u8(buf, 4 + wpabuf_len(payload)); in hs20_send_wnm_notification_deauth_req()
176 wpabuf_put_be24(buf, OUI_WFA); in hs20_send_wnm_notification_deauth_req()
177 wpabuf_put_u8(buf, HS20_WNM_DEAUTH_IMMINENT_NOTICE); in hs20_send_wnm_notification_deauth_req()
178 wpabuf_put_buf(buf, payload); in hs20_send_wnm_notification_deauth_req()
181 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification_deauth_req()
183 wpabuf_free(buf); in hs20_send_wnm_notification_deauth_req()
192 struct wpabuf *buf; in hs20_send_wnm_notification_t_c() local
209 buf = wpabuf_alloc(4 + 7 + url_len); in hs20_send_wnm_notification_t_c()
210 if (!buf) in hs20_send_wnm_notification_t_c()
213 wpabuf_put_u8(buf, WLAN_ACTION_WNM); in hs20_send_wnm_notification_t_c()
214 wpabuf_put_u8(buf, WNM_NOTIFICATION_REQ); in hs20_send_wnm_notification_t_c()
215 wpabuf_put_u8(buf, 1); /* Dialog token */ in hs20_send_wnm_notification_t_c()
216 wpabuf_put_u8(buf, 1); /* Type - 1 reserved for WFA */ in hs20_send_wnm_notification_t_c()
219 wpabuf_put_u8(buf, WLAN_EID_VENDOR_SPECIFIC); in hs20_send_wnm_notification_t_c()
220 wpabuf_put_u8(buf, 4 + 1 + url_len); in hs20_send_wnm_notification_t_c()
221 wpabuf_put_be24(buf, OUI_WFA); in hs20_send_wnm_notification_t_c()
222 wpabuf_put_u8(buf, HS20_WNM_T_C_ACCEPTANCE); in hs20_send_wnm_notification_t_c()
223 wpabuf_put_u8(buf, url_len); in hs20_send_wnm_notification_t_c()
224 wpabuf_put_str(buf, url); in hs20_send_wnm_notification_t_c()
227 wpabuf_head(buf), wpabuf_len(buf)); in hs20_send_wnm_notification_t_c()
229 wpabuf_free(buf); in hs20_send_wnm_notification_t_c()