[go: nahoru, domu]

Lines Matching refs:sta_id

74 	int sta_id;
82 /* d0i3/d3 assumes the AP's sta_id (of sta vif) is 0. reserve it. */
87 for (sta_id = 0; sta_id < IWL_MVM_STATION_COUNT; sta_id++) {
88 if (BIT(sta_id) & reserved_ids)
91 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
93 return sta_id;
104 .sta_id = mvm_sta->sta_id,
213 int i, ret, sta_id;
218 sta_id = iwl_mvm_find_free_sta_id(mvm,
221 sta_id = mvm_sta->sta_id;
223 if (WARN_ON_ONCE(sta_id == IWL_MVM_STATION_COUNT))
228 mvm_sta->sta_id = sta_id;
237 atomic_set(&mvm->pending_frames[sta_id], 0);
259 mvmvif->ap_sta_id = sta_id;
265 rcu_assign_pointer(mvm->fw_id_to_mac_id[sta_id], sta);
287 cmd.sta_id = mvmsta->sta_id;
301 mvmsta->sta_id);
306 mvmsta->sta_id);
318 static int iwl_mvm_rm_sta_common(struct iwl_mvm *mvm, u8 sta_id)
322 .sta_id = sta_id,
326 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
338 IWL_ERR(mvm, "Failed to remove station. Id=%d\n", sta_id);
348 u8 sta_id;
359 for_each_set_bit(sta_id, mvm->sta_drained, IWL_MVM_STATION_COUNT) {
362 rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
378 sta_id);
384 sta_id);
392 ret = iwl_mvm_rm_sta_common(mvm, sta_id);
396 sta_id);
399 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[sta_id], NULL);
400 clear_bit(sta_id, mvm->sta_drained);
417 mvmvif->ap_sta_id == mvm_sta->sta_id) {
429 if (mvm->d0i3_ap_sta_id == mvm_sta->sta_id)
442 if (atomic_read(&mvm->pending_frames[mvm_sta->sta_id])) {
443 rcu_assign_pointer(mvm->fw_id_to_mac_id[mvm_sta->sta_id],
449 ret = iwl_mvm_rm_sta_common(mvm, mvm_sta->sta_id);
450 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[mvm_sta->sta_id], NULL);
458 u8 sta_id)
460 int ret = iwl_mvm_rm_sta_common(mvm, sta_id);
464 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[sta_id], NULL);
473 sta->sta_id = iwl_mvm_find_free_sta_id(mvm, iftype);
474 if (WARN_ON_ONCE(sta->sta_id == IWL_MVM_STATION_COUNT))
481 rcu_assign_pointer(mvm->fw_id_to_mac_id[sta->sta_id], ERR_PTR(-EINVAL));
488 RCU_INIT_POINTER(mvm->fw_id_to_mac_id[sta->sta_id], NULL);
490 sta->sta_id = IWL_MVM_STATION_COUNT;
505 cmd.sta_id = sta->sta_id;
583 if (WARN_ON_ONCE(bsta->sta_id == IWL_MVM_STATION_COUNT))
599 ret = iwl_mvm_rm_sta_common(mvm, mvmvif->bcast_sta.sta_id);
695 cmd.sta_id = mvm_sta->sta_id;
758 cmd.sta_id = mvm_sta->sta_id;
853 mvmsta->sta_id, tid, txq_id, tid_data->ssn,
895 iwl_mvm_enable_agg_txq(mvm, queue, fifo, mvmsta->sta_id, tid,
938 mvmsta->sta_id, tid, txq_id, tid_data->state);
986 mvmsta->sta_id, tid, tid_data->state);
1012 mvmsta->sta_id, tid, txq_id, tid_data->state);
1057 return mvm_sta->sta_id;
1075 u8 sta_id, u32 tkip_iv32, u16 *tkip_p1k,
1111 cmd.sta_id = sta_id;
1136 u8 sta_id, bool remove_key)
1147 igtk_cmd.sta_id = cpu_to_le32(sta_id);
1170 igtk_cmd.sta_id);
1188 u8 sta_id = mvmvif->ap_sta_id;
1189 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
1206 u8 *addr, sta_id;
1213 sta_id = iwl_mvm_get_key_sta_id(vif, sta);
1214 if (sta_id == IWL_MVM_STATION_COUNT) {
1220 ret = iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, false);
1229 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
1258 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, sta_id,
1262 ret = iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, sta_id,
1267 sta_id, 0, NULL, 0);
1289 u8 sta_id;
1294 sta_id = iwl_mvm_get_key_sta_id(vif, sta);
1297 keyconf->keyidx, sta_id);
1300 return iwl_mvm_send_sta_igtk(mvm, keyconf, sta_id, true);
1309 if (sta_id == IWL_MVM_STATION_COUNT) {
1317 * for example when a GTK is removed (where the sta_id will then be
1321 sta = rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id],
1343 cmd.sta_id = sta_id;
1369 u8 sta_id = iwl_mvm_get_key_sta_id(vif, sta);
1371 if (WARN_ON_ONCE(sta_id == IWL_MVM_STATION_COUNT))
1377 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]);
1385 iwl_mvm_send_sta_key(mvm, mvm_sta, keyconf, sta_id,
1396 .sta_id = mvmsta->sta_id,
1416 .sta_id = mvmsta->sta_id,
1496 u32 sta_id = le32_to_cpu(notif->sta_id);
1498 if (WARN_ON_ONCE(sta_id >= IWL_MVM_STATION_COUNT))
1502 sta = rcu_dereference(mvm->fw_id_to_mac_id[sta_id]);
1515 .sta_id = mvmsta->sta_id,
1550 if (disable || !atomic_read(&mvm->pending_frames[mvm_sta->sta_id]))