diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-05-03 01:22:42 -0700 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-13 10:43:45 -0700 |
commit | 1ff504e07c0fb64a1ceca17d60cb2d82dc134f05 (patch) | |
tree | df8d8e8b3697527383aa408f1dad17c6cf5e6ded /drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |
parent | f862a2367b429d46d12362fea07d844c2bf55969 (diff) | |
download | lwn-1ff504e07c0fb64a1ceca17d60cb2d82dc134f05.tar.gz lwn-1ff504e07c0fb64a1ceca17d60cb2d82dc134f05.zip |
iwlwifi: move iwl_free_tfds_in_queue to iwlagn
This function is only used by the agn drivers,
so doesn't have to be in core and exported.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index c7ce63254373..5f07bc2e14e9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c @@ -1529,3 +1529,16 @@ int iwlagn_manage_ibss_station(struct iwl_priv *priv, return iwl_remove_station(priv, vif_priv->ibss_bssid_sta_id, vif->bss_conf.bssid); } + +void iwl_free_tfds_in_queue(struct iwl_priv *priv, + int sta_id, int tid, int freed) +{ + if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed) + priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; + else { + IWL_DEBUG_TX(priv, "free more than tfds_in_queue (%u:%d)\n", + priv->stations[sta_id].tid[tid].tfds_in_queue, + freed); + priv->stations[sta_id].tid[tid].tfds_in_queue = 0; + } +} |