diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-09-15 14:46:34 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 15:58:27 -0400 |
commit | 21023e2696679bea2a42aa963de74ce37c049b13 (patch) | |
tree | 54b131fa61ce63c5ceeb85425d88035773485552 /drivers/net/wireless/iwlwifi/iwl-trans.c | |
parent | eeb7f8cb93966250e5768ea9f8fec8830567c02a (diff) |
iwlagn: add documentation to the transport layer
and do a few clean up fixes on the way
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-trans.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans.c b/drivers/net/wireless/iwlwifi/iwl-trans.c index 209dd7e16e92..d4f628160565 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans.c | |||
@@ -1300,6 +1300,8 @@ static int iwlagn_txq_check_empty(struct iwl_trans *trans, | |||
1300 | sta_id, tid); | 1300 | sta_id, tid); |
1301 | } | 1301 | } |
1302 | break; | 1302 | break; |
1303 | default: | ||
1304 | break; | ||
1303 | } | 1305 | } |
1304 | 1306 | ||
1305 | return 0; | 1307 | return 0; |
@@ -1326,10 +1328,10 @@ static void iwl_trans_pcie_reclaim(struct iwl_trans *trans, int sta_id, int tid, | |||
1326 | { | 1328 | { |
1327 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); | 1329 | struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); |
1328 | struct iwl_tx_queue *txq = &trans_pcie->txq[txq_id]; | 1330 | struct iwl_tx_queue *txq = &trans_pcie->txq[txq_id]; |
1331 | enum iwl_agg_state agg_state; | ||
1329 | /* n_bd is usually 256 => n_bd - 1 = 0xff */ | 1332 | /* n_bd is usually 256 => n_bd - 1 = 0xff */ |
1330 | int tfd_num = ssn & (txq->q.n_bd - 1); | 1333 | int tfd_num = ssn & (txq->q.n_bd - 1); |
1331 | int freed = 0; | 1334 | int freed = 0; |
1332 | u8 agg_state; | ||
1333 | bool cond; | 1335 | bool cond; |
1334 | 1336 | ||
1335 | txq->time_stamp = jiffies; | 1337 | txq->time_stamp = jiffies; |