Lines Matching refs:body

43 		return (*hif)->body;  in wfx_alloc_hif()
145 struct wfx_hif_req_configuration *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_configuration() local
149 body->length = cpu_to_le16(len); in wfx_hif_configuration()
150 memcpy(body->pds_data, conf, len); in wfx_hif_configuration()
161 struct wfx_hif_req_reset *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_reset() local
165 body->reset_stat = reset_stat; in wfx_hif_reset()
166 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_RESET, sizeof(*body)); in wfx_hif_reset()
177 struct wfx_hif_req_read_mib *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_read_mib() local
180 if (!body || !reply) { in wfx_hif_read_mib()
184 body->mib_id = cpu_to_le16(mib_id); in wfx_hif_read_mib()
185 wfx_fill_header(hif, vif_id, HIF_REQ_ID_READ_MIB, sizeof(*body)); in wfx_hif_read_mib()
210 struct wfx_hif_req_write_mib *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_write_mib() local
214 body->mib_id = cpu_to_le16(mib_id); in wfx_hif_write_mib()
215 body->length = cpu_to_le16(val_len); in wfx_hif_write_mib()
216 memcpy(&body->mib_data, val, val_len); in wfx_hif_write_mib()
229 struct wfx_hif_req_start_scan_alt *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_scan() local
237 memcpy(body->ssid_def[i].ssid, req->ssids[i].ssid, IEEE80211_MAX_SSID_LEN); in wfx_hif_scan()
238 body->ssid_def[i].ssid_length = cpu_to_le32(req->ssids[i].ssid_len); in wfx_hif_scan()
240 body->num_of_ssids = HIF_API_MAX_NB_SSIDS; in wfx_hif_scan()
241 body->maintain_current_bss = 1; in wfx_hif_scan()
242 body->disallow_ps = 1; in wfx_hif_scan()
243 body->tx_power_level = cpu_to_le32(req->channels[chan_start_idx]->max_power); in wfx_hif_scan()
244 body->num_of_channels = chan_num; in wfx_hif_scan()
246 body->channel_list[i] = req->channels[i + chan_start_idx]->hw_value; in wfx_hif_scan()
248 body->max_transmit_rate = API_RATE_INDEX_G_6MBPS; in wfx_hif_scan()
250 body->max_transmit_rate = API_RATE_INDEX_B_1MBPS; in wfx_hif_scan()
252 body->min_channel_time = cpu_to_le32(50); in wfx_hif_scan()
253 body->max_channel_time = cpu_to_le32(150); in wfx_hif_scan()
255 body->min_channel_time = cpu_to_le32(10); in wfx_hif_scan()
256 body->max_channel_time = cpu_to_le32(50); in wfx_hif_scan()
257 body->num_of_probe_requests = 2; in wfx_hif_scan()
258 body->probe_delay = 100; in wfx_hif_scan()
289 struct wfx_hif_req_join *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_join() local
293 WARN_ON(sizeof(body->ssid) < ssid_len); in wfx_hif_join()
297 body->infrastructure_bss_mode = !vif->cfg.ibss_joined; in wfx_hif_join()
298 body->short_preamble = conf->use_short_preamble; in wfx_hif_join()
299 body->probe_for_join = !(channel->flags & IEEE80211_CHAN_NO_IR); in wfx_hif_join()
300 body->channel_number = channel->hw_value; in wfx_hif_join()
301 body->beacon_interval = cpu_to_le32(conf->beacon_int); in wfx_hif_join()
302 body->basic_rate_set = cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, conf->basic_rates)); in wfx_hif_join()
303 memcpy(body->bssid, conf->bssid, sizeof(body->bssid)); in wfx_hif_join()
305 body->ssid_length = cpu_to_le32(ssid_len); in wfx_hif_join()
306 memcpy(body->ssid, ssid, ssid_len); in wfx_hif_join()
308 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_JOIN, sizeof(*body)); in wfx_hif_join()
318 struct wfx_hif_req_set_bss_params *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_bss_params() local
322 body->aid = cpu_to_le16(aid); in wfx_hif_set_bss_params()
323 body->beacon_lost_count = beacon_lost_count; in wfx_hif_set_bss_params()
324 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_SET_BSS_PARAMS, sizeof(*body)); in wfx_hif_set_bss_params()
335 struct wfx_hif_req_add_key *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_add_key() local
340 memcpy(body, arg, sizeof(*body)); in wfx_hif_add_key()
343 wfx_fill_header(hif, arg->int_id, HIF_REQ_ID_ADD_KEY, sizeof(*body)); in wfx_hif_add_key()
345 wfx_fill_header(hif, -1, HIF_REQ_ID_ADD_KEY, sizeof(*body)); in wfx_hif_add_key()
355 struct wfx_hif_req_remove_key *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_remove_key() local
359 body->entry_index = idx; in wfx_hif_remove_key()
360 wfx_fill_header(hif, -1, HIF_REQ_ID_REMOVE_KEY, sizeof(*body)); in wfx_hif_remove_key()
371 struct wfx_hif_req_edca_queue_params *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_edca_queue_params() local
373 if (!body) in wfx_hif_set_edca_queue_params()
379 body->aifsn = arg->aifs; in wfx_hif_set_edca_queue_params()
380 body->cw_min = cpu_to_le16(arg->cw_min); in wfx_hif_set_edca_queue_params()
381 body->cw_max = cpu_to_le16(arg->cw_max); in wfx_hif_set_edca_queue_params()
382 body->tx_op_limit = cpu_to_le16(arg->txop * USEC_PER_TXOP); in wfx_hif_set_edca_queue_params()
383 body->queue_id = 3 - queue; in wfx_hif_set_edca_queue_params()
386 body->queue_id = HIF_QUEUE_ID_BACKGROUND; in wfx_hif_set_edca_queue_params()
388 body->queue_id = HIF_QUEUE_ID_BESTEFFORT; in wfx_hif_set_edca_queue_params()
389 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_EDCA_QUEUE_PARAMS, sizeof(*body)); in wfx_hif_set_edca_queue_params()
399 struct wfx_hif_req_set_pm_mode *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_set_pm() local
401 if (!body) in wfx_hif_set_pm()
407 body->enter_psm = 1; in wfx_hif_set_pm()
409 body->fast_psm_idle_period = min(dynamic_ps_timeout * 2, 255); in wfx_hif_set_pm()
410 if (body->fast_psm_idle_period) in wfx_hif_set_pm()
411 body->fast_psm = 1; in wfx_hif_set_pm()
413 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_SET_PM_MODE, sizeof(*body)); in wfx_hif_set_pm()
426 struct wfx_hif_req_start *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_start() local
431 body->dtim_period = conf->dtim_period; in wfx_hif_start()
432 body->short_preamble = conf->use_short_preamble; in wfx_hif_start()
433 body->channel_number = channel->hw_value; in wfx_hif_start()
434 body->beacon_interval = cpu_to_le32(conf->beacon_int); in wfx_hif_start()
435 body->basic_rate_set = cpu_to_le32(wfx_rate_mask_to_hw(wvif->wdev, conf->basic_rates)); in wfx_hif_start()
436 body->ssid_length = vif->cfg.ssid_len; in wfx_hif_start()
437 memcpy(body->ssid, vif->cfg.ssid, vif->cfg.ssid_len); in wfx_hif_start()
438 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_START, sizeof(*body)); in wfx_hif_start()
448 struct wfx_hif_req_beacon_transmit *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_beacon_transmit() local
452 body->enable_beaconing = enable ? 1 : 0; in wfx_hif_beacon_transmit()
453 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_BEACON_TRANSMIT, sizeof(*body)); in wfx_hif_beacon_transmit()
463 struct wfx_hif_req_map_link *body = wfx_alloc_hif(sizeof(*body), &hif); in wfx_hif_map_link() local
468 ether_addr_copy(body->mac_addr, mac_addr); in wfx_hif_map_link()
469 body->mfpc = mfp ? 1 : 0; in wfx_hif_map_link()
470 body->unmap = unmap ? 1 : 0; in wfx_hif_map_link()
471 body->peer_sta_id = sta_id; in wfx_hif_map_link()
472 wfx_fill_header(hif, wvif->id, HIF_REQ_ID_MAP_LINK, sizeof(*body)); in wfx_hif_map_link()
483 struct wfx_hif_req_update_ie *body = wfx_alloc_hif(buf_len, &hif); in wfx_hif_update_ie_beacon() local
487 body->beacon = 1; in wfx_hif_update_ie_beacon()
488 body->num_ies = cpu_to_le16(1); in wfx_hif_update_ie_beacon()
489 memcpy(body->ie, ies, ies_len); in wfx_hif_update_ie_beacon()