Lines Matching refs:sta_params
260 struct wcn36xx_hal_config_sta_params *sta_params) in wcn36xx_smd_set_sta_ht_params() argument
265 sta_params->ht_capable = sta->deflink.ht_cap.ht_supported; in wcn36xx_smd_set_sta_ht_params()
266 sta_params->tx_channel_width_set = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
268 sta_params->lsig_txop_protection = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
271 sta_params->max_ampdu_size = sta->deflink.ht_cap.ampdu_factor; in wcn36xx_smd_set_sta_ht_params()
272 sta_params->max_ampdu_density = sta->deflink.ht_cap.ampdu_density; in wcn36xx_smd_set_sta_ht_params()
274 sta_params->max_amsdu_size = !is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
276 sta_params->sgi_20Mhz = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
278 sta_params->sgi_40mhz = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
280 sta_params->green_field_capable = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
282 sta_params->delayed_ba_support = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
284 sta_params->dsss_cck_mode_40mhz = is_cap_supported(caps, in wcn36xx_smd_set_sta_ht_params()
291 struct wcn36xx_hal_config_sta_params_v1 *sta_params) in wcn36xx_smd_set_sta_vht_params() argument
296 sta_params->vht_capable = sta->deflink.vht_cap.vht_supported; in wcn36xx_smd_set_sta_vht_params()
297 sta_params->vht_ldpc_enabled = in wcn36xx_smd_set_sta_vht_params()
300 sta_params->vht_tx_mu_beamformee_capable = in wcn36xx_smd_set_sta_vht_params()
302 if (sta_params->vht_tx_mu_beamformee_capable) in wcn36xx_smd_set_sta_vht_params()
303 sta_params->vht_tx_bf_enabled = 1; in wcn36xx_smd_set_sta_vht_params()
305 sta_params->vht_tx_mu_beamformee_capable = 0; in wcn36xx_smd_set_sta_vht_params()
307 sta_params->vht_tx_channel_width_set = 0; in wcn36xx_smd_set_sta_vht_params()
312 struct wcn36xx_hal_config_sta_params_v1 *sta_params) in wcn36xx_smd_set_sta_ht_ldpc_params() argument
315 sta_params->ht_ldpc_enabled = in wcn36xx_smd_set_sta_ht_ldpc_params()
322 struct wcn36xx_hal_config_sta_params *sta_params) in wcn36xx_smd_set_sta_default_ht_params() argument
324 sta_params->ht_capable = 1; in wcn36xx_smd_set_sta_default_ht_params()
325 sta_params->tx_channel_width_set = 1; in wcn36xx_smd_set_sta_default_ht_params()
326 sta_params->lsig_txop_protection = 1; in wcn36xx_smd_set_sta_default_ht_params()
327 sta_params->max_ampdu_size = 3; in wcn36xx_smd_set_sta_default_ht_params()
328 sta_params->max_ampdu_density = 5; in wcn36xx_smd_set_sta_default_ht_params()
329 sta_params->max_amsdu_size = 0; in wcn36xx_smd_set_sta_default_ht_params()
330 sta_params->sgi_20Mhz = 1; in wcn36xx_smd_set_sta_default_ht_params()
331 sta_params->sgi_40mhz = 1; in wcn36xx_smd_set_sta_default_ht_params()
332 sta_params->green_field_capable = 1; in wcn36xx_smd_set_sta_default_ht_params()
333 sta_params->delayed_ba_support = 0; in wcn36xx_smd_set_sta_default_ht_params()
334 sta_params->dsss_cck_mode_40mhz = 1; in wcn36xx_smd_set_sta_default_ht_params()
338 struct wcn36xx_hal_config_sta_params_v1 *sta_params) in wcn36xx_smd_set_sta_default_vht_params() argument
341 sta_params->vht_capable = 1; in wcn36xx_smd_set_sta_default_vht_params()
342 sta_params->vht_tx_mu_beamformee_capable = 1; in wcn36xx_smd_set_sta_default_vht_params()
344 sta_params->vht_capable = 0; in wcn36xx_smd_set_sta_default_vht_params()
345 sta_params->vht_tx_mu_beamformee_capable = 0; in wcn36xx_smd_set_sta_default_vht_params()
348 sta_params->vht_ldpc_enabled = 0; in wcn36xx_smd_set_sta_default_vht_params()
349 sta_params->vht_tx_channel_width_set = 0; in wcn36xx_smd_set_sta_default_vht_params()
350 sta_params->vht_tx_bf_enabled = 0; in wcn36xx_smd_set_sta_default_vht_params()
354 struct wcn36xx_hal_config_sta_params_v1 *sta_params) in wcn36xx_smd_set_sta_default_ht_ldpc_params() argument
357 sta_params->ht_ldpc_enabled = 1; in wcn36xx_smd_set_sta_default_ht_ldpc_params()
359 sta_params->ht_ldpc_enabled = 0; in wcn36xx_smd_set_sta_default_ht_ldpc_params()
365 struct wcn36xx_hal_config_sta_params *sta_params) in wcn36xx_smd_set_sta_params() argument
372 sta_params->type = 1; in wcn36xx_smd_set_sta_params()
373 sta_params->sta_index = WCN36XX_HAL_STA_INVALID_IDX; in wcn36xx_smd_set_sta_params()
375 sta_params->type = 0; in wcn36xx_smd_set_sta_params()
376 sta_params->sta_index = vif_priv->self_sta_index; in wcn36xx_smd_set_sta_params()
379 sta_params->listen_interval = WCN36XX_LISTEN_INTERVAL(wcn); in wcn36xx_smd_set_sta_params()
387 memcpy(&sta_params->mac, vif->addr, ETH_ALEN); in wcn36xx_smd_set_sta_params()
389 memcpy(&sta_params->bssid, vif->addr, ETH_ALEN); in wcn36xx_smd_set_sta_params()
391 sta_params->encrypt_type = vif_priv->encrypt_type; in wcn36xx_smd_set_sta_params()
392 sta_params->short_preamble_supported = true; in wcn36xx_smd_set_sta_params()
394 sta_params->rifs_mode = 0; in wcn36xx_smd_set_sta_params()
395 sta_params->rmf = 0; in wcn36xx_smd_set_sta_params()
396 sta_params->action = 0; in wcn36xx_smd_set_sta_params()
397 sta_params->uapsd = 0; in wcn36xx_smd_set_sta_params()
398 sta_params->mimo_ps = WCN36XX_HAL_HT_MIMO_PS_STATIC; in wcn36xx_smd_set_sta_params()
399 sta_params->max_ampdu_duration = 0; in wcn36xx_smd_set_sta_params()
400 sta_params->bssid_index = vif_priv->bss_index; in wcn36xx_smd_set_sta_params()
401 sta_params->p2p = 0; in wcn36xx_smd_set_sta_params()
406 memcpy(&sta_params->bssid, sta->addr, ETH_ALEN); in wcn36xx_smd_set_sta_params()
408 memcpy(&sta_params->mac, sta->addr, ETH_ALEN); in wcn36xx_smd_set_sta_params()
409 sta_params->wmm_enabled = sta->wme; in wcn36xx_smd_set_sta_params()
410 sta_params->max_sp_len = sta->max_sp; in wcn36xx_smd_set_sta_params()
411 sta_params->aid = sta_priv->aid; in wcn36xx_smd_set_sta_params()
412 wcn36xx_smd_set_sta_ht_params(sta, sta_params); in wcn36xx_smd_set_sta_params()
413 memcpy(&sta_params->supported_rates, &sta_priv->supported_rates, in wcn36xx_smd_set_sta_params()
417 &sta_params->supported_rates); in wcn36xx_smd_set_sta_params()
418 wcn36xx_smd_set_sta_default_ht_params(sta_params); in wcn36xx_smd_set_sta_params()
1510 struct wcn36xx_hal_config_sta_params_v1 *sta_params; in wcn36xx_smd_config_sta_v1() local
1519 sta_params = &msg_body.sta_params; in wcn36xx_smd_config_sta_v1()
1521 wcn36xx_smd_set_sta_params_v1(wcn, vif, sta, sta_params); in wcn36xx_smd_config_sta_v1()
1527 sta_params->action, sta_params->sta_index, sta_params->bssid_index, in wcn36xx_smd_config_sta_v1()
1528 sta_params->bssid, sta_params->type, sta_params->mac, sta_params->aid); in wcn36xx_smd_config_sta_v1()
1538 struct wcn36xx_hal_config_sta_params *sta_params; in wcn36xx_smd_config_sta_v0() local
1542 sta_params = &msg.sta_params; in wcn36xx_smd_config_sta_v0()
1544 wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params); in wcn36xx_smd_config_sta_v0()
1550 sta_params->action, sta_params->sta_index, in wcn36xx_smd_config_sta_v0()
1551 sta_params->bssid_index, sta_params->bssid, in wcn36xx_smd_config_sta_v0()
1552 sta_params->type, sta_params->mac, sta_params->aid); in wcn36xx_smd_config_sta_v0()
1804 struct wcn36xx_hal_config_sta_params *sta_params; in wcn36xx_smd_config_bss_v0() local
1814 sta_params = &bss->sta; in wcn36xx_smd_config_bss_v0()
1817 wcn36xx_smd_set_sta_params(wcn, vif, sta, sta_params); in wcn36xx_smd_config_bss_v0()
1828 sta_params->bssid, sta_params->action, in wcn36xx_smd_config_bss_v0()
1829 sta_params->sta_index, sta_params->bssid_index, in wcn36xx_smd_config_bss_v0()
1830 sta_params->aid, sta_params->type, in wcn36xx_smd_config_bss_v0()
1831 sta_params->mac); in wcn36xx_smd_config_bss_v0()