Lines Matching full:body
43 return (*hif)->body; in wfx_alloc_hif()
163 struct wfx_hif_req_configuration *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_configuration() local
167 body->length = cpu_to_le16(len); in wfx_hif_configuration()
168 memcpy(body->pds_data, conf, len); in wfx_hif_configuration()
179 struct wfx_hif_req_reset *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_reset() local
183 body->reset_stat = reset_stat; in wfx_hif_reset()
184 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body)); in wfx_hif_reset()
195 struct wfx_hif_req_read_mib *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_read_mib() local
198 if (!body || !reply) { in wfx_hif_read_mib()
202 body->mib_id = cpu_to_le16(mib_id); in wfx_hif_read_mib()
203 wfx_fill_header(hif, vif_id, HIF_REQ_ID_READ_MIB, sizeof(*body)); in wfx_hif_read_mib()
228 struct wfx_hif_req_write_mib *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_write_mib() local
232 body->mib_id = cpu_to_le16(mib_id); in wfx_hif_write_mib()
233 body->length = cpu_to_le16(val_len); in wfx_hif_write_mib()
234 memcpy(&body->mib_data, val, val_len); in wfx_hif_write_mib()
247 struct wfx_hif_req_start_scan_alt *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_scan_uniq() local
251 body->num_of_ssids = HIF_API_MAX_NB_SSIDS; in wfx_hif_scan_uniq()
252 body->maintain_current_bss = 1; in wfx_hif_scan_uniq()
253 body->disallow_ps = 1; in wfx_hif_scan_uniq()
254 body->tx_power_level = cpu_to_le32(chan->max_power); in wfx_hif_scan_uniq()
255 body->num_of_channels = 1; in wfx_hif_scan_uniq()
256 body->channel_list[0] = chan->hw_value; in wfx_hif_scan_uniq()
257 body->max_transmit_rate = API_RATE_INDEX_B_1MBPS; in wfx_hif_scan_uniq()
258 body->min_channel_time = cpu_to_le32(duration); in wfx_hif_scan_uniq()
259 body->max_channel_time = cpu_to_le32(duration * 110 / 100); in wfx_hif_scan_uniq()
272 struct wfx_hif_req_start_scan_alt *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_scan() local
280 memcpy(body->ssid_def[i].ssid, req->ssids[i].ssid, IEEE80211_MAX_SSID_LEN); in wfx_hif_scan()
281 body->ssid_def[i].ssid_length = cpu_to_le32(req->ssids[i].ssid_len); in wfx_hif_scan()
283 body->num_of_ssids = HIF_API_MAX_NB_SSIDS; in wfx_hif_scan()
284 body->maintain_current_bss = 1; in wfx_hif_scan()
285 body->disallow_ps = 1; in wfx_hif_scan()
286 body->tx_power_level = cpu_to_le32(req->channels[chan_start_idx]->max_power); in wfx_hif_scan()
287 body->num_of_channels = chan_num; in wfx_hif_scan()
289 body->channel_list[i] = req->channels[i + chan_start_idx]->hw_value; in wfx_hif_scan()
291 body->max_transmit_rate = API_RATE_INDEX_G_6MBPS; in wfx_hif_scan()
293 body->max_transmit_rate = API_RATE_INDEX_B_1MBPS; in wfx_hif_scan()
295 body->min_channel_time = cpu_to_le32(50); in wfx_hif_scan()
296 body->max_channel_time = cpu_to_le32(150); in wfx_hif_scan()
298 body->min_channel_time = cpu_to_le32(10); in wfx_hif_scan()
299 body->max_channel_time = cpu_to_le32(50); in wfx_hif_scan()
300 body->num_of_probe_requests = 2; in wfx_hif_scan()
301 body->probe_delay = 100; in wfx_hif_scan()
314 /* body associated to HIF_REQ_ID_STOP_SCAN is empty */ in wfx_hif_stop_scan()
332 struct wfx_hif_req_join *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_join() local
336 WARN_ON(sizeof(body->ssid) < ssid_len); in wfx_hif_join()
340 body->infrastructure_bss_mode = !vif->cfg.ibss_joined; in wfx_hif_join()
341 body->short_preamble = conf->use_short_preamble; in wfx_hif_join()
342 body->probe_for_join = !(channel->flags & IEEE80211_CHAN_NO_IR); in wfx_hif_join()
343 body->channel_number = channel->hw_value; in wfx_hif_join()
344 body->beacon_interval = cpu_to_le32(conf->beacon_int); in wfx_hif_join()
345 body->basic_rate_set = cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, conf->basic_rates)); in wfx_hif_join()
346 memcpy(body->bssid, conf->bssid, sizeof(body->bssid)); in wfx_hif_join()
348 body->ssid_length = cpu_to_le32(ssid_len); in wfx_hif_join()
349 memcpy(body->ssid, ssid, ssid_len); in wfx_hif_join()
351 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_JOIN, sizeof(*body)); in wfx_hif_join()
361 struct wfx_hif_req_set_bss_params *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_bss_params() local
365 body->aid = cpu_to_le16(aid); in wfx_hif_set_bss_params()
366 body->beacon_lost_count = beacon_lost_count; in wfx_hif_set_bss_params()
367 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_SET_BSS_PARAMS, sizeof(*body)); in wfx_hif_set_bss_params()
378 struct wfx_hif_req_add_key *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_add_key() local
382 /* FIXME: swap bytes as necessary in body */ in wfx_hif_add_key()
383 memcpy(body, arg, sizeof(*body)); in wfx_hif_add_key()
386 wfx_fill_header(hif, arg->int_id, HIF_REQ_ID_ADD_KEY, sizeof(*body)); in wfx_hif_add_key()
388 wfx_fill_header(hif, -1, HIF_REQ_ID_ADD_KEY, sizeof(*body)); in wfx_hif_add_key()
398 struct wfx_hif_req_remove_key *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_remove_key() local
402 body->entry_index = idx; in wfx_hif_remove_key()
403 wfx_fill_header(hif, -1, HIF_REQ_ID_REMOVE_KEY, sizeof(*body)); in wfx_hif_remove_key()
414 struct wfx_hif_req_edca_queue_params *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_edca_queue_params() local
416 if (!body) in wfx_hif_set_edca_queue_params()
422 body->aifsn = arg->aifs; in wfx_hif_set_edca_queue_params()
423 body->cw_min = cpu_to_le16(arg->cw_min); in wfx_hif_set_edca_queue_params()
424 body->cw_max = cpu_to_le16(arg->cw_max); in wfx_hif_set_edca_queue_params()
425 body->tx_op_limit = cpu_to_le16(arg->txop * USEC_PER_TXOP); in wfx_hif_set_edca_queue_params()
426 body->queue_id = 3 - queue; in wfx_hif_set_edca_queue_params()
429 body->queue_id = HIF_QUEUE_ID_BACKGROUND; in wfx_hif_set_edca_queue_params()
431 body->queue_id = HIF_QUEUE_ID_BESTEFFORT; in wfx_hif_set_edca_queue_params()
432 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_EDCA_QUEUE_PARAMS, sizeof(*body)); in wfx_hif_set_edca_queue_params()
442 struct wfx_hif_req_set_pm_mode *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_pm() local
444 if (!body) in wfx_hif_set_pm()
450 body->enter_psm = 1; in wfx_hif_set_pm()
452 body->fast_psm_idle_period = min(dynamic_ps_timeout * 2, 255); in wfx_hif_set_pm()
453 if (body->fast_psm_idle_period) in wfx_hif_set_pm()
454 body->fast_psm = 1; in wfx_hif_set_pm()
456 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_SET_PM_MODE, sizeof(*body)); in wfx_hif_set_pm()
469 struct wfx_hif_req_start *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_start() local
474 body->dtim_period = conf->dtim_period; in wfx_hif_start()
475 body->short_preamble = conf->use_short_preamble; in wfx_hif_start()
476 body->channel_number = channel->hw_value; in wfx_hif_start()
477 body->beacon_interval = cpu_to_le32(conf->beacon_int); in wfx_hif_start()
478 body->basic_rate_set = cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, conf->basic_rates)); in wfx_hif_start()
479 body->ssid_length = vif->cfg.ssid_len; in wfx_hif_start()
480 memcpy(body->ssid, vif->cfg.ssid, vif->cfg.ssid_len); in wfx_hif_start()
481 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_START, sizeof(*body)); in wfx_hif_start()
491 struct wfx_hif_req_beacon_transmit *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_beacon_transmit() local
495 body->enable_beaconing = enable ? 1 : 0; in wfx_hif_beacon_transmit()
496 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_BEACON_TRANSMIT, sizeof(*body)); in wfx_hif_beacon_transmit()
506 struct wfx_hif_req_map_link *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_map_link() local
511 ether_addr_copy(body->mac_addr, mac_addr); in wfx_hif_map_link()
512 body->mfpc = mfp ? 1 : 0; in wfx_hif_map_link()
513 body->unmap = unmap ? 1 : 0; in wfx_hif_map_link()
514 body->peer_sta_id = sta_id; in wfx_hif_map_link()
515 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_MAP_LINK, sizeof(*body)); in wfx_hif_map_link()
526 struct wfx_hif_req_update_ie *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_update_ie_beacon() local
530 body->beacon = 1; in wfx_hif_update_ie_beacon()
531 body->num_ies = cpu_to_le16(1); in wfx_hif_update_ie_beacon()
532 memcpy(body->ie, ies, ies_len); in wfx_hif_update_ie_beacon()