Lines Matching refs:sta_idx

355 	int ret = 0, sta_idx;  in ath9k_htc_add_monitor_interface()  local
364 sta_idx = ffz(priv->sta_slot); in ath9k_htc_add_monitor_interface()
365 if ((sta_idx < 0) || (sta_idx > ATH9K_HTC_MAX_STA)) { in ath9k_htc_add_monitor_interface()
407 tsta.sta_index = sta_idx; in ath9k_htc_add_monitor_interface()
417 priv->sta_slot |= (1 << sta_idx); in ath9k_htc_add_monitor_interface()
419 priv->vif_sta_pos[priv->mon_vif_idx] = sta_idx; in ath9k_htc_add_monitor_interface()
424 priv->mon_vif_idx, sta_idx); in ath9k_htc_add_monitor_interface()
443 u8 cmd_rsp, sta_idx; in ath9k_htc_remove_monitor_interface() local
447 sta_idx = priv->vif_sta_pos[priv->mon_vif_idx]; in ath9k_htc_remove_monitor_interface()
449 WMI_CMD_BUF(WMI_NODE_REMOVE_CMDID, &sta_idx); in ath9k_htc_remove_monitor_interface()
455 priv->sta_slot &= ~(1 << sta_idx); in ath9k_htc_remove_monitor_interface()
461 priv->mon_vif_idx, sta_idx); in ath9k_htc_remove_monitor_interface()
474 int ret, sta_idx; in ath9k_htc_add_station() local
481 sta_idx = ffz(priv->sta_slot); in ath9k_htc_add_station()
482 if ((sta_idx < 0) || (sta_idx > ATH9K_HTC_MAX_STA)) in ath9k_htc_add_station()
491 ista->index = sta_idx; in ath9k_htc_add_station()
502 tsta.sta_index = sta_idx; in ath9k_htc_add_station()
524 priv->sta_slot |= (1 << sta_idx); in ath9k_htc_add_station()
527 priv->vif_sta_pos[avp->index] = sta_idx; in ath9k_htc_add_station()
540 u8 cmd_rsp, sta_idx; in ath9k_htc_remove_station() local
544 sta_idx = ista->index; in ath9k_htc_remove_station()
546 sta_idx = priv->vif_sta_pos[avp->index]; in ath9k_htc_remove_station()
549 WMI_CMD_BUF(WMI_NODE_REMOVE_CMDID, &sta_idx); in ath9k_htc_remove_station()
561 sta->addr, sta_idx); in ath9k_htc_remove_station()
565 avp->index, sta_idx); in ath9k_htc_remove_station()
568 priv->sta_slot &= ~(1 << sta_idx); in ath9k_htc_remove_station()