tx.c (bf61c8840efe60fd8f91446860b63338fb424158) | tx.c (75fb4df7f804229372e073977615a149a4a28dc0) |
---|---|
1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 18 unchanged lines hidden (view full) --- 27 28#include "wl18xx.h" 29#include "tx.h" 30 31static 32void wl18xx_get_last_tx_rate(struct wl1271 *wl, struct ieee80211_vif *vif, 33 struct ieee80211_tx_rate *rate) 34{ | 1/* 2 * This file is part of wl18xx 3 * 4 * Copyright (C) 2011 Texas Instruments Inc. 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 18 unchanged lines hidden (view full) --- 27 28#include "wl18xx.h" 29#include "tx.h" 30 31static 32void wl18xx_get_last_tx_rate(struct wl1271 *wl, struct ieee80211_vif *vif, 33 struct ieee80211_tx_rate *rate) 34{ |
35 u8 fw_rate = wl->fw_status_2->counters.tx_last_rate; | 35 u8 fw_rate = wl->fw_status->counters.tx_last_rate; |
36 37 if (fw_rate > CONF_HW_RATE_INDEX_MAX) { 38 wl1271_error("last Tx rate invalid: %d", fw_rate); 39 rate->idx = 0; 40 rate->flags = 0; 41 return; 42 } 43 --- 90 unchanged lines hidden (view full) --- 134 skb_queue_tail(&wl->deferred_tx_queue, skb); 135 queue_work(wl->freezable_wq, &wl->netstack_work); 136 wl1271_free_tx_id(wl, id); 137} 138 139void wl18xx_tx_immediate_complete(struct wl1271 *wl) 140{ 141 struct wl18xx_fw_status_priv *status_priv = | 36 37 if (fw_rate > CONF_HW_RATE_INDEX_MAX) { 38 wl1271_error("last Tx rate invalid: %d", fw_rate); 39 rate->idx = 0; 40 rate->flags = 0; 41 return; 42 } 43 --- 90 unchanged lines hidden (view full) --- 134 skb_queue_tail(&wl->deferred_tx_queue, skb); 135 queue_work(wl->freezable_wq, &wl->netstack_work); 136 wl1271_free_tx_id(wl, id); 137} 138 139void wl18xx_tx_immediate_complete(struct wl1271 *wl) 140{ 141 struct wl18xx_fw_status_priv *status_priv = |
142 (struct wl18xx_fw_status_priv *)wl->fw_status_2->priv; | 142 (struct wl18xx_fw_status_priv *)wl->fw_status->priv; |
143 struct wl18xx_priv *priv = wl->priv; 144 u8 i; 145 146 /* nothing to do here */ 147 if (priv->last_fw_rls_idx == status_priv->fw_release_idx) 148 return; 149 150 /* freed Tx descriptors */ --- 21 unchanged lines hidden --- | 143 struct wl18xx_priv *priv = wl->priv; 144 u8 i; 145 146 /* nothing to do here */ 147 if (priv->last_fw_rls_idx == status_priv->fw_release_idx) 148 return; 149 150 /* freed Tx descriptors */ --- 21 unchanged lines hidden --- |