Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170911
b: refs/heads/master
c: be7078c
h: refs/heads/master
i:
  170909: a6eb95b
  170907: bfee276
  170903: ffed8ad
  170895: 81018a5
  170879: 94c239b
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Oct 27, 2009
1 parent f87d257 commit 3653ad8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d94cd297e58b55bb272fdfd51ff0de7acbc1941b
refs/heads/master: be7078c21d826fbaab77f88440958019aab969af
4 changes: 3 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ enum {
#define WL1271_DEFAULT_BEACON_INT 100
#define WL1271_DEFAULT_DTIM_PERIOD 1

#define ACX_TX_DESCRIPTORS 32

enum wl1271_state {
WL1271_STATE_OFF,
WL1271_STATE_ON,
Expand Down Expand Up @@ -346,7 +348,7 @@ struct wl1271 {
struct work_struct filter_work;

/* Pending TX frames */
struct sk_buff *tx_frames[16];
struct sk_buff *tx_frames[ACX_TX_DESCRIPTORS];

/* Security sequence number counters */
u8 tx_security_last_seq;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271_acx.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ enum {
#define DP_RX_PACKET_RING_CHUNK_NUM 2
#define DP_TX_PACKET_RING_CHUNK_NUM 2
#define DP_TX_COMPLETE_TIME_OUT 20
#define FW_TX_CMPLT_BLOCK_SIZE 16

#define TX_MSDU_LIFETIME_MIN 0
#define TX_MSDU_LIFETIME_MAX 3000
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,9 +1293,7 @@ static int __devinit wl1271_probe(struct spi_device *spi)
wl->basic_rate_set = WL1271_DEFAULT_BASIC_RATE_SET;
wl->band = IEEE80211_BAND_2GHZ;

/* We use the default power on sleep time until we know which chip
* we're using */
for (i = 0; i < FW_TX_CMPLT_BLOCK_SIZE; i++)
for (i = 0; i < ACX_TX_DESCRIPTORS; i++)
wl->tx_frames[i] = NULL;

spin_lock_init(&wl->wl_lock);
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/wl12xx/wl1271_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
static int wl1271_tx_id(struct wl1271 *wl, struct sk_buff *skb)
{
int i;

for (i = 0; i < FW_TX_CMPLT_BLOCK_SIZE; i++)
for (i = 0; i < ACX_TX_DESCRIPTORS; i++)
if (wl->tx_frames[i] == NULL) {
wl->tx_frames[i] = skb;
return i;
Expand Down Expand Up @@ -262,14 +261,13 @@ void wl1271_tx_work(struct work_struct *work)
static void wl1271_tx_complete_packet(struct wl1271 *wl,
struct wl1271_tx_hw_res_descr *result)
{

struct ieee80211_tx_info *info;
struct sk_buff *skb;
u16 seq;
int id = result->id;

/* check for id legality */
if (id >= TX_HW_RESULT_QUEUE_LEN || wl->tx_frames[id] == NULL) {
if (id >= ACX_TX_DESCRIPTORS || wl->tx_frames[id] == NULL) {
wl1271_warning("TX result illegal id: %d", id);
return;
}
Expand Down Expand Up @@ -382,7 +380,7 @@ void wl1271_tx_flush(struct wl1271 *wl)
ieee80211_tx_status(wl->hw, skb);
}

for (i = 0; i < FW_TX_CMPLT_BLOCK_SIZE; i++)
for (i = 0; i < ACX_TX_DESCRIPTORS; i++)
if (wl->tx_frames[i] != NULL) {
skb = wl->tx_frames[i];
info = IEEE80211_SKB_CB(skb);
Expand Down

0 comments on commit 3653ad8

Please sign in to comment.