Skip to content

Commit

Permalink
wl18xx: add debug released TX descriptors counter
Browse files Browse the repository at this point in the history
Signed-off-by: Orit Brayer <orit@ti.com>
  • Loading branch information
OritB authored and ariknem committed Nov 28, 2011
1 parent 7db7b17 commit 18741b5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/wl12xx/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,9 @@ static ssize_t driver_state_read(struct file *file, char __user *user_buf,
DRIVER_STATE_PRINT_STR(chip.fw_ver_str);
DRIVER_STATE_PRINT_STR(chip.phy_fw_ver_str);
DRIVER_STATE_PRINT_INT(sched_scanning);
DRIVER_STATE_PRINT_INT(last_fw_release_index);
DRIVER_STATE_PRINT_INT(free_tx_desc_counter);


#undef DRIVER_STATE_PRINT_INT
#undef DRIVER_STATE_PRINT_LONG
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2300,6 +2300,7 @@ static void __wl1271_op_remove_interface(struct wl1271 *wl,
kfree(wl->target_mem_map);
wl->target_mem_map = NULL;
wl->last_fw_release_index = 0;
wl->free_tx_desc_counter = 0;
}

static void wl1271_op_remove_interface(struct ieee80211_hw *hw,
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl12xx/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,8 @@ void wl1271_tx_complete(struct wl1271 *wl,
while (index != status->tx_desc_release_q.fw_release_index) {
wl1271_tx_complete_packet(wl, status->tx_desc_release_q.released_desc_ind_vec[index], status);
index++;

wl->free_tx_desc_counter++;

if (index == ACX_TX_DESCRIPTORS) {
index = 0;
}
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/wl12xx/wl12xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#define DRIVER_NAME "wl18xx"
#define DRIVER_PREFIX DRIVER_NAME ": "
#define DRIVER_VERSION "WL18XX_A1.14"
#define DRIVER_VERSION "WL18XX_A1.15"

/*
* FW versions support BA 11n
Expand Down Expand Up @@ -521,6 +521,7 @@ struct wl1271 {
struct sk_buff *tx_frames[ACX_TX_DESCRIPTORS];
int tx_frames_cnt;
u8 last_fw_release_index;
u32 free_tx_desc_counter;

/*
* Security sequence number
Expand Down

0 comments on commit 18741b5

Please sign in to comment.