| /linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
| H A D | sta.c | 17 static int iwl_sta_ucode_activate(struct iwl_priv *priv, u8 sta_id) in iwl_sta_ucode_activate() argument 21 if (sta_id >= IWLAGN_STATION_COUNT) { in iwl_sta_ucode_activate() 22 IWL_ERR(priv, "invalid sta_id %u\n", sta_id); in iwl_sta_ucode_activate() 25 if (!(priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE)) in iwl_sta_ucode_activate() 28 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 30 if (priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE) { in iwl_sta_ucode_activate() 34 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 36 priv->stations[sta_id].used |= IWL_STA_UCODE_ACTIVE; in iwl_sta_ucode_activate() 38 sta_id, priv->stations[sta_id].sta.sta.addr); in iwl_sta_ucode_activate() 92 u8 sta_id __maybe_unused = sta->sta.sta_id; in iwl_send_add_sta() [all …]
|
| H A D | tx.c | 47 struct ieee80211_hdr *hdr, u8 sta_id) in iwlagn_tx_cmd_build_basic() argument 72 tx_cmd->sta_id = sta_id; in iwlagn_tx_cmd_build_basic() 241 int sta_id; in iwl_sta_id_or_broadcast() local 246 sta_id = iwl_sta_id(sta); in iwl_sta_id_or_broadcast() 252 WARN_ON(sta_id == IWL_INVALID_STATION); in iwl_sta_id_or_broadcast() 254 return sta_id; in iwl_sta_id_or_broadcast() 273 u8 sta_id, tid = IWL_MAX_TID_COUNT; in iwlagn_tx_skb() local 312 sta_id = ctx->bcast_sta_id; in iwlagn_tx_skb() 315 sta_id = iwl_sta_id_or_broadcast(ctx, sta); in iwlagn_tx_skb() 316 if (sta_id == IWL_INVALID_STATION) { in iwlagn_tx_skb() [all …]
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | sta.c | 29 int sta_id; in iwl_mvm_find_free_sta_id() local 42 for (sta_id = 0; sta_id < mvm->fw->ucode_capa.num_stations; sta_id++) { in iwl_mvm_find_free_sta_id() 43 if (BIT(sta_id) & reserved_ids) in iwl_mvm_find_free_sta_id() 46 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_find_free_sta_id() 48 return sta_id; in iwl_mvm_find_free_sta_id() 133 .sta_id = mvm_sta->deflink.sta_id, in iwl_mvm_sta_send_to_fw() 262 unsigned int sta_id; in iwl_mvm_rx_agg_session_expired() local 281 sta_id = ffs(ba_data->sta_mask) - 1; /* don't care which one */ in iwl_mvm_rx_agg_session_expired() 282 sta = rcu_dereference(ba_data->mvm->fw_id_to_mac_id[sta_id]); in iwl_mvm_rx_agg_session_expired() 311 u8 sta_id; in iwl_mvm_invalidate_sta_queue() local [all …]
|
| H A D | mld-sta.c | 19 return BIT(mvmsta->deflink.sta_id); in iwl_mvm_sta_fw_id_mask() 49 cmd.sta_id = cpu_to_le32((u8)sta->sta_id); in iwl_mvm_mld_add_int_sta_to_fw() 73 static int iwl_mvm_mld_rm_sta_from_fw(struct iwl_mvm *mvm, u32 sta_id) in iwl_mvm_mld_rm_sta_from_fw() argument 76 .sta_id = cpu_to_le32(sta_id), in iwl_mvm_mld_rm_sta_from_fw() 81 if (!rcu_access_pointer(mvm->fw_id_to_mac_id[sta_id])) { in iwl_mvm_mld_rm_sta_from_fw() 82 IWL_ERR(mvm, "Invalid station id %d\n", sta_id); in iwl_mvm_mld_rm_sta_from_fw() 89 IWL_ERR(mvm, "Failed to remove station. Id=%d\n", sta_id); in iwl_mvm_mld_rm_sta_from_fw() 103 .sta_id = cpu_to_le32(sta->sta_id), in iwl_mvm_add_aux_sta_to_fw() 127 if (WARN_ON_ONCE(sta->sta_id == IWL_INVALID_STA)) in iwl_mvm_mld_add_int_sta_with_queue() 141 txq = iwl_mvm_tvqm_enable_txq(mvm, NULL, sta->sta_id, tid, in iwl_mvm_mld_add_int_sta_with_queue() [all …]
|
| H A D | tx.c | 152 struct ieee80211_tx_info *info, u8 sta_id) in iwl_mvm_set_tx_cmd() argument 243 tx_cmd_params->sta_id = sta_id; in iwl_mvm_set_tx_cmd() 555 struct ieee80211_sta *sta, u8 sta_id, in iwl_mvm_set_tx_params() argument 642 iwl_mvm_set_tx_cmd(mvm, skb, &tx_cmd->params, info, sta_id); in iwl_mvm_set_tx_params() 775 u8 sta_id; in iwl_mvm_tx_skb_non_sta() local 812 sta_id = mvm->aux_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 822 sta_id = mvmvif->deflink.bcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 824 sta_id = mvmvif->deflink.mcast_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 831 sta_id = mvm->snif_sta.sta_id; in iwl_mvm_tx_skb_non_sta() 843 IWL_DEBUG_TX(mvm, "station Id %d, queue=%d\n", sta_id, queue); in iwl_mvm_tx_skb_non_sta() [all …]
|
| H A D | tdls.c | 97 tdls_cfg_cmd.sta_info[cnt].sta_id = i; in iwl_mvm_tdls_config() 210 u32 sta_id = le32_to_cpu(notif->sta_id); in iwl_mvm_rx_tdls_notif() local 220 if (WARN_ON(sta_id >= mvm->fw->ucode_capa.num_stations)) in iwl_mvm_rx_tdls_notif() 223 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_rx_tdls_notif() 372 cmd.peer_sta_id = cpu_to_le32(mvmsta->deflink.sta_id); in iwl_mvm_tdls_config_channel_switch() 417 mvmsta->deflink.sta_id); in iwl_mvm_tdls_config_channel_switch() 434 mvm->tdls_cs.cur_sta_id = mvmsta->deflink.sta_id; in iwl_mvm_tdls_config_channel_switch() 468 if (mvm->tdls_cs.peer.sta_id == IWL_INVALID_STA) in iwl_mvm_tdls_ch_switch_work() 472 mvm->fw_id_to_mac_id[mvm->tdls_cs.peer.sta_id], in iwl_mvm_tdls_ch_switch_work() 515 if (mvm->tdls_cs.peer.sta_id != IWL_INVALID_STA) { in iwl_mvm_tdls_channel_switch() [all …]
|
| H A D | rs-fw.c | 429 link_sta = rcu_dereference(mvm->fw_id_to_link_sta[notif->sta_id]); in iwl_mvm_tlc_update_notif() 430 sta = rcu_dereference(mvm->fw_id_to_mac_id[notif->sta_id]); in iwl_mvm_tlc_update_notif() 437 notif->sta_id); in iwl_mvm_tlc_update_notif() 449 link_sta->link_id, notif->sta_id); in iwl_mvm_tlc_update_notif() 620 cfg_cmd.sta_id = mvm_link_sta->sta_id; in iwl_mvm_rs_fw_rate_init() 645 cfg_cmd.sta_id, cfg_cmd.max_ch_width, cfg_cmd.mode); in iwl_mvm_rs_fw_rate_init() 661 .sta_id = cfg_cmd.sta_id, in iwl_mvm_rs_fw_rate_init() 708 lq_sta->pers.sta_id = link_sta->sta_id; in iwl_mvm_rs_add_sta_link()
|
| H A D | sta.h | 336 u32 sta_id; member 451 u32 sta_id; member 471 struct ieee80211_sta *sta, int sta_id, u8 sta_type); 495 u8 sta_id); 580 u8 sta_id, u8 tid, unsigned int timeout); 639 int iwl_mvm_mld_rm_sta_id(struct iwl_mvm *mvm, u8 sta_id);
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 4965-mac.c | 931 scan->tx_cmd.sta_id = il->hw_params.bcast_id; in il4965_request_scan() 1052 il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid, int freed) in il4965_free_tfds_in_queue() argument 1056 if (il->stations[sta_id].tid[tid].tfds_in_queue >= freed) in il4965_free_tfds_in_queue() 1057 il->stations[sta_id].tid[tid].tfds_in_queue -= freed; in il4965_free_tfds_in_queue() 1060 il->stations[sta_id].tid[tid].tfds_in_queue, freed); in il4965_free_tfds_in_queue() 1061 il->stations[sta_id].tid[tid].tfds_in_queue = 0; in il4965_free_tfds_in_queue() 1508 tx_cmd->sta_id = std_id; in il4965_tx_cmd_build_basic() 1603 int sta_id) in il4965_tx_cmd_build_hwcrypto() argument 1666 u8 sta_id; in il4965_tx_skb() local 1694 sta_id = il->hw_params.bcast_id; in il4965_tx_skb() [all …]
|
| H A D | common.c | 1738 il_sta_ucode_activate(struct il_priv *il, u8 sta_id) in il_sta_ucode_activate() argument 1741 if (!(il->stations[sta_id].used & IL_STA_DRIVER_ACTIVE)) in il_sta_ucode_activate() 1743 sta_id, il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate() 1745 if (il->stations[sta_id].used & IL_STA_UCODE_ACTIVE) { in il_sta_ucode_activate() 1747 " in uCode (according to driver)\n", sta_id, in il_sta_ucode_activate() 1748 il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate() 1750 il->stations[sta_id].used |= IL_STA_UCODE_ACTIVE; in il_sta_ucode_activate() 1751 D_ASSOC("Added STA id %u addr %pM to uCode\n", sta_id, in il_sta_ucode_activate() 1752 il->stations[sta_id].sta.sta.addr); in il_sta_ucode_activate() 1760 u8 sta_id = addsta->sta.sta_id; in il_process_add_sta_resp() local [all …]
|
| H A D | 3945-mac.c | 118 struct ieee80211_key_conf *keyconf, u8 sta_id) in il3945_set_ccmp_dynamic_key_info() argument 127 if (sta_id == il->hw_params.bcast_id) in il3945_set_ccmp_dynamic_key_info() 135 il->stations[sta_id].keyinfo.cipher = keyconf->cipher; in il3945_set_ccmp_dynamic_key_info() 136 il->stations[sta_id].keyinfo.keylen = keyconf->keylen; in il3945_set_ccmp_dynamic_key_info() 137 memcpy(il->stations[sta_id].keyinfo.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info() 139 memcpy(il->stations[sta_id].sta.key.key, keyconf->key, keyconf->keylen); in il3945_set_ccmp_dynamic_key_info() 141 if ((il->stations[sta_id].sta.key. in il3945_set_ccmp_dynamic_key_info() 143 il->stations[sta_id].sta.key.key_offset = in il3945_set_ccmp_dynamic_key_info() 148 WARN(il->stations[sta_id].sta.key.key_offset == WEP_INVALID_OFFSET, in il3945_set_ccmp_dynamic_key_info() 151 il->stations[sta_id].sta.key.key_flags = key_flags; in il3945_set_ccmp_dynamic_key_info() [all …]
|
| H A D | 4965.h | 28 void il4965_free_tfds_in_queue(struct il_priv *il, int sta_id, int tid, 70 int il4965_txq_check_empty(struct il_priv *il, int sta_id, u8 tid, int txq_id); 121 struct ieee80211_key_conf *key, u8 sta_id); 123 struct ieee80211_key_conf *key, u8 sta_id); 128 int il4965_sta_tx_modify_enable_tid(struct il_priv *il, int sta_id, int tid); 133 void il4965_sta_modify_sleep_tx_count(struct il_priv *il, int sta_id, int cnt);
|
| /linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
| H A D | sta.h | 250 u8 sta_id; member 336 u8 sta_id; member 365 u8 sta_id; member 426 u8 sta_id; member 447 __le32 sta_id; member 464 __le32 sta_id; member 494 __le32 sta_id; member
|
| H A D | tdls.h | 96 __le32 sta_id; member 108 u8 sta_id; member 146 __le16 sta_id; member
|
| H A D | tx.h | 229 u8 sta_id; member 637 u8 sta_id; member 724 u8 sta_id; member 898 __le32 sta_id; member 926 __le16 sta_id; member 954 u8 sta_id; member 974 u8 sta_id; member
|
| H A D | d3.h | 176 __le32 sta_id; member 331 u8 sta_id; member 394 u8 sta_id; member 414 u8 sta_id; member 463 __le32 sta_id; member 495 __le32 sta_id; member 522 __le32 sta_id; member 535 __le32 sta_id; member 610 __le32 sta_id; member
|
| H A D | mac-cfg.h | 709 __le32 sta_id; member 773 __le32 sta_id; member 812 __le32 sta_id; member 827 __le32 sta_id; member 838 __le32 sta_id; member 1087 u8 sta_id; member
|
| H A D | rs.h | 163 u8 sta_id; member 196 u8 sta_id; member 227 u8 sta_id; member 293 u8 sta_id; member 348 u8 sta_id; member 874 u8 sta_id; member
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | agg.c | 49 u32 sta_id; in iwl_mld_release_frames_from_notif() local 67 sta_id = ffs(ba_data->sta_mask) - 1; in iwl_mld_release_frames_from_notif() 68 link_sta = rcu_dereference(mld->fw_id_to_link_sta[sta_id]); in iwl_mld_release_frames_from_notif() 104 unsigned int baid, nssn, sta_id, tid; in iwl_mld_handle_bar_frame_release_notif() local 116 sta_id = le32_get_bits(release->sta_tid, in iwl_mld_handle_bar_frame_release_notif() 135 sta_id > mld->fw->ucode_capa.num_stations || in iwl_mld_handle_bar_frame_release_notif() 136 !(baid_data->sta_mask & BIT(sta_id)), in iwl_mld_handle_bar_frame_release_notif() 138 baid, baid_data->sta_mask, baid_data->tid, sta_id, in iwl_mld_handle_bar_frame_release_notif() 157 u32 sta_id; in iwl_mld_del_ba() local 169 sta_id = ffs(ba_data->sta_mask) - 1; in iwl_mld_del_ba() [all …]
|
| H A D | key.c | 66 int sta_id; in iwl_mld_get_key_sta_mask() local 83 if (WARN_ON(link->bcast_sta.sta_id == IWL_INVALID_STA || in iwl_mld_get_key_sta_mask() 84 link->mcast_sta.sta_id == IWL_INVALID_STA)) in iwl_mld_get_key_sta_mask() 89 return BIT(link->bcast_sta.sta_id); in iwl_mld_get_key_sta_mask() 92 return BIT(link->mcast_sta.sta_id); in iwl_mld_get_key_sta_mask() 112 sta_id = iwl_mld_fw_sta_id_from_link_sta(mld, link_sta); in iwl_mld_get_key_sta_mask() 113 if (sta_id < 0) in iwl_mld_get_key_sta_mask() 116 return BIT(sta_id); in iwl_mld_get_key_sta_mask()
|
| H A D | nan.c | 118 cmd.sta_id = mld_vif->aux_sta.sta_id; in iwl_mld_nan_config() 195 iwl_mld_flush_link_sta_txqs(mld, mld_vif->aux_sta.sta_id); in iwl_mld_stop_nan() 270 if (WARN_ON(mld_vif->aux_sta.sta_id == IWL_INVALID_STA)) in iwl_mld_handle_nan_dw_end_notif() 274 mld_vif->aux_sta.sta_id); in iwl_mld_handle_nan_dw_end_notif() 276 iwl_mld_flush_link_sta_txqs(mld, mld_vif->aux_sta.sta_id); in iwl_mld_handle_nan_dw_end_notif()
|
| H A D | sta.c | 433 cmd.sta_id = cpu_to_le32(fw_id); in iwl_mld_add_modify_sta_cmd() 567 .sta_id = cpu_to_le32(fw_sta_id), in iwl_mld_rm_sta_from_fw() 944 u32 sta_mask = BIT(internal_sta->sta_id); in iwl_mld_allocate_internal_txq() 964 .sta_id = cpu_to_le32(internal_sta->sta_id), in iwl_mld_send_aux_sta_cmd() 984 cmd.sta_id = cpu_to_le32((u8)internal_sta->sta_id); in iwl_mld_add_internal_sta_to_fw() 1012 &internal_sta->sta_id, in iwl_mld_add_internal_sta() 1026 iwl_mld_rm_sta_from_fw(mld, internal_sta->sta_id); in iwl_mld_add_internal_sta() 1110 if (WARN_ON_ONCE(internal_sta->sta_id == IWL_INVALID_STA || in iwl_mld_remove_internal_sta() 1115 iwl_mld_flush_link_sta_txqs(mld, internal_sta->sta_id); in iwl_mld_remove_internal_sta() 1117 iwl_mld_free_txq(mld, BIT(internal_sta->sta_id), in iwl_mld_remove_internal_sta() [all …]
|
| H A D | link.h | 89 if (link->bcast_sta.sta_id != IWL_INVALID_STA) in iwl_mld_cleanup_link() 91 if (link->mcast_sta.sta_id != IWL_INVALID_STA) in iwl_mld_cleanup_link() 93 if (link->mon_sta.sta_id != IWL_INVALID_STA) in iwl_mld_cleanup_link()
|
| H A D | sta.h | 216 u8 sta_id; member 224 internal_sta->sta_id = IWL_INVALID_STA; in iwl_mld_init_internal_sta() 232 if (WARN_ON(internal_sta->sta_id == IWL_INVALID_STA)) in iwl_mld_free_internal_sta() 235 RCU_INIT_POINTER(mld->fw_id_to_link_sta[internal_sta->sta_id], NULL); in iwl_mld_free_internal_sta()
|
| H A D | tx.c | 1075 int sta_id = IWL_TX_RES_GET_RA(tx_resp->ra_tid); in iwl_mld_handle_tx_resp_notif() local 1160 if (IWL_FW_CHECK(mld, sta_id >= mld->fw->ucode_capa.num_stations, in iwl_mld_handle_tx_resp_notif() 1161 "Got invalid sta_id (%d)\n", sta_id)) in iwl_mld_handle_tx_resp_notif() 1166 link_sta = rcu_dereference(mld->fw_id_to_link_sta[sta_id]); in iwl_mld_handle_tx_resp_notif() 1173 sta_id); in iwl_mld_handle_tx_resp_notif() 1226 .sta_id = cpu_to_le32(fw_sta_id), in iwl_mld_flush_link_sta_txqs() 1257 if (IWL_FW_CHECK(mld, le16_to_cpu(rsp->sta_id) != fw_sta_id, in iwl_mld_flush_link_sta_txqs() 1259 le16_to_cpu(rsp->sta_id))) { in iwl_mld_flush_link_sta_txqs() 1360 u8 sta_id = ba_res->sta_id; in iwl_mld_handle_compressed_ba_notif() local 1373 sta_id, le32_to_cpu(ba_res->flags), in iwl_mld_handle_compressed_ba_notif() [all …]
|