diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-05-11 17:09:50 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-05-07 10:41:03 +0100 |
commit | 71f3da4f7f64ac76a4e5b6e238e1a35e2233939d (patch) | |
tree | b7a52ecee0ff8fe9307a4e050f687485411182cb | |
parent | 7f4473749b2071ce8c0ffe03592366055325cd80 (diff) |
net: wlcore: debugfs: export tx_total
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | drivers/net/wireless/ti/wlcore/debugfs.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/wlcore.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireless/ti/wlcore/debugfs.c index eb3d3f0e0b4d..cc5a5411d781 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.c +++ b/drivers/net/wireless/ti/wlcore/debugfs.c @@ -457,6 +457,7 @@ static ssize_t driver_state_read(struct file *file, char __user *user_buf, DRIVER_STATE_PRINT_GENERIC(channel, "%d (%s)", wlvif->channel, wlvif->p2p ? "P2P-GO" : "AP"); + DRIVER_STATE_PRINT_INT(tx_blocks_total); DRIVER_STATE_PRINT_INT(tx_blocks_available); DRIVER_STATE_PRINT_INT(tx_allocated_blocks); DRIVER_STATE_PRINT_INT(tx_allocated_pkts[0]); diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 4d5f119b8952..4bfc1fc688fc 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -532,6 +532,7 @@ static int wlcore_fw_status(struct wl1271 *wl, struct wl_fw_status *status) cancel_delayed_work(&wl->tx_watchdog_work); } + wl->tx_blocks_total = status->tx_total; avail = status->tx_total - wl->tx_allocated_blocks; /* diff --git a/drivers/net/wireless/ti/wlcore/wlcore.h b/drivers/net/wireless/ti/wlcore/wlcore.h index 1f8511bf9bb3..97ade837c343 100644 --- a/drivers/net/wireless/ti/wlcore/wlcore.h +++ b/drivers/net/wireless/ti/wlcore/wlcore.h @@ -242,6 +242,7 @@ struct wl1271 { struct wl1271_acx_mem_map *target_mem_map; /* Accounting for allocated / available TX blocks on HW */ + u32 tx_blocks_total; u32 tx_blocks_freed; u32 tx_blocks_available; u32 tx_allocated_blocks; |