Lines Matching refs:stations

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()
206 priv->stations[sta_id].sta.station_flags &= ~mask; in iwl_sta_update_ht()
207 priv->stations[sta_id].sta.station_flags |= flags; in iwl_sta_update_ht()
228 priv->stations[index].sta.station_flags &= ~mask; in iwl_set_ht_add_station()
229 priv->stations[index].sta.station_flags |= flags; in iwl_set_ht_add_station()
250 if (ether_addr_equal(priv->stations[i].sta.sta.addr, in iwl_prep_station()
256 if (!priv->stations[i].used && in iwl_prep_station()
273 if (priv->stations[sta_id].used & IWL_STA_UCODE_INPROGRESS) { in iwl_prep_station()
279 if ((priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE) && in iwl_prep_station()
280 (priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE) && in iwl_prep_station()
281 ether_addr_equal(priv->stations[sta_id].sta.sta.addr, addr)) { in iwl_prep_station()
287 station = &priv->stations[sta_id]; in iwl_prep_station()
347 if (priv->stations[sta_id].used & IWL_STA_UCODE_INPROGRESS) { in iwl_add_station_common()
354 if ((priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE) && in iwl_add_station_common()
355 (priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE)) { in iwl_add_station_common()
362 priv->stations[sta_id].used |= IWL_STA_UCODE_INPROGRESS; in iwl_add_station_common()
363 memcpy(&sta_cmd, &priv->stations[sta_id].sta, in iwl_add_station_common()
372 priv->stations[sta_id].sta.sta.addr); in iwl_add_station_common()
373 priv->stations[sta_id].used &= ~IWL_STA_DRIVER_ACTIVE; in iwl_add_station_common()
374 priv->stations[sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; in iwl_add_station_common()
389 if ((priv->stations[sta_id].used & in iwl_sta_ucode_deactivate()
394 priv->stations[sta_id].used &= ~IWL_STA_UCODE_ACTIVE; in iwl_sta_ucode_deactivate()
396 memset(&priv->stations[sta_id], 0, sizeof(struct iwl_station_entry)); in iwl_sta_ucode_deactivate()
477 if (!(priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE)) { in iwl_remove_station()
483 if (!(priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE)) { in iwl_remove_station()
489 if (priv->stations[sta_id].used & IWL_STA_LOCAL) { in iwl_remove_station()
490 kfree(priv->stations[sta_id].lq); in iwl_remove_station()
491 priv->stations[sta_id].lq = NULL; in iwl_remove_station()
498 priv->stations[sta_id].used &= ~IWL_STA_DRIVER_ACTIVE; in iwl_remove_station()
532 WARN_ON_ONCE(!(priv->stations[sta_id].used & IWL_STA_DRIVER_ACTIVE)); in iwl_deactivate_station()
538 priv->stations[sta_id].used &= ~IWL_STA_DRIVER_ACTIVE; in iwl_deactivate_station()
539 priv->stations[sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; in iwl_deactivate_station()
617 if (ctx && ctx->ctxid != priv->stations[i].ctxid) in iwl_clear_ucode_stations()
620 if (priv->stations[i].used & IWL_STA_UCODE_ACTIVE) { in iwl_clear_ucode_stations()
623 priv->stations[i].used &= ~IWL_STA_UCODE_ACTIVE; in iwl_clear_ucode_stations()
661 if (ctx->ctxid != priv->stations[i].ctxid) in iwl_restore_stations()
663 if ((priv->stations[i].used & IWL_STA_DRIVER_ACTIVE) && in iwl_restore_stations()
664 !(priv->stations[i].used & IWL_STA_UCODE_ACTIVE)) { in iwl_restore_stations()
666 priv->stations[i].sta.sta.addr); in iwl_restore_stations()
667 priv->stations[i].sta.mode = 0; in iwl_restore_stations()
668 priv->stations[i].used |= IWL_STA_UCODE_INPROGRESS; in iwl_restore_stations()
674 if ((priv->stations[i].used & IWL_STA_UCODE_INPROGRESS)) { in iwl_restore_stations()
675 memcpy(&sta_cmd, &priv->stations[i].sta, in iwl_restore_stations()
678 if (priv->stations[i].lq) { in iwl_restore_stations()
682 memcpy(&lq, priv->stations[i].lq, in iwl_restore_stations()
693 priv->stations[i].sta.sta.addr); in iwl_restore_stations()
694 priv->stations[i].used &= in iwl_restore_stations()
696 priv->stations[i].used &= in iwl_restore_stations()
707 priv->stations[i].used &= ~IWL_STA_UCODE_INPROGRESS; in iwl_restore_stations()
737 if (!(priv->stations[i].used & IWL_STA_BCAST)) in iwl_dealloc_bcast_stations()
740 priv->stations[i].used &= ~IWL_STA_UCODE_ACTIVE; in iwl_dealloc_bcast_stations()
744 kfree(priv->stations[i].lq); in iwl_dealloc_bcast_stations()
745 priv->stations[i].lq = NULL; in iwl_dealloc_bcast_stations()
831 if (!(priv->stations[lq->sta_id].used & IWL_STA_DRIVER_ACTIVE)) { in iwl_send_lq_cmd()
854 priv->stations[lq->sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; in iwl_send_lq_cmd()
904 priv->stations[sta_id].used |= IWL_STA_LOCAL; in iwlagn_add_bssid_station()
921 priv->stations[sta_id].lq = link_cmd; in iwlagn_add_bssid_station()
1088 memcpy(&sta_cmd, &priv->stations[sta_id].sta, sizeof(sta_cmd)); in iwlagn_send_sta_key()
1167 memcpy(&sta_cmd, &priv->stations[sta_id].sta, sizeof(sta_cmd)); in iwl_remove_dynamic_key()
1168 if (!(priv->stations[sta_id].used & IWL_STA_UCODE_ACTIVE)) in iwl_remove_dynamic_key()
1281 priv->stations[sta_id].used |= IWL_STA_DRIVER_ACTIVE; in iwlagn_alloc_bcast_station()
1282 priv->stations[sta_id].used |= IWL_STA_BCAST; in iwlagn_alloc_bcast_station()
1293 priv->stations[sta_id].lq = link_cmd; in iwlagn_alloc_bcast_station()
1318 if (priv->stations[sta_id].lq) in iwl_update_bcast_station()
1319 kfree(priv->stations[sta_id].lq); in iwl_update_bcast_station()
1322 priv->stations[sta_id].lq = link_cmd; in iwl_update_bcast_station()
1353 priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_TID_DISABLE_TX; in iwl_sta_tx_modify_enable_tid()
1354 priv->stations[sta_id].sta.tid_disable_tx &= cpu_to_le16(~(1 << tid)); in iwl_sta_tx_modify_enable_tid()
1355 priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in iwl_sta_tx_modify_enable_tid()
1356 memcpy(&sta_cmd, &priv->stations[sta_id].sta, sizeof(struct iwl_addsta_cmd)); in iwl_sta_tx_modify_enable_tid()
1375 priv->stations[sta_id].sta.station_flags_msk = 0; in iwl_sta_rx_agg_start()
1376 priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_ADDBA_TID_MSK; in iwl_sta_rx_agg_start()
1377 priv->stations[sta_id].sta.add_immediate_ba_tid = (u8)tid; in iwl_sta_rx_agg_start()
1378 priv->stations[sta_id].sta.add_immediate_ba_ssn = cpu_to_le16(ssn); in iwl_sta_rx_agg_start()
1379 priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in iwl_sta_rx_agg_start()
1380 memcpy(&sta_cmd, &priv->stations[sta_id].sta, sizeof(struct iwl_addsta_cmd)); in iwl_sta_rx_agg_start()
1401 priv->stations[sta_id].sta.station_flags_msk = 0; in iwl_sta_rx_agg_stop()
1402 priv->stations[sta_id].sta.sta.modify_mask = STA_MODIFY_DELBA_TID_MSK; in iwl_sta_rx_agg_stop()
1403 priv->stations[sta_id].sta.remove_immediate_ba_tid = (u8)tid; in iwl_sta_rx_agg_stop()
1404 priv->stations[sta_id].sta.mode = STA_CONTROL_MODIFY_MSK; in iwl_sta_rx_agg_stop()
1405 memcpy(&sta_cmd, &priv->stations[sta_id].sta, sizeof(struct iwl_addsta_cmd)); in iwl_sta_rx_agg_stop()