diff options
author | Bing Zhao <bzhao@marvell.com> | 2013-01-30 22:56:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-01 14:27:23 -0500 |
commit | 5e3175fb6755a3d4ec073c0e739581b23b3855dc (patch) | |
tree | 9ea547c2472a574bbeefd86206fd480613e9b059 /drivers | |
parent | 62749238d1af581d01169f59ebbde4811c3c3143 (diff) |
mwifiex: remove max_tx_buf_size
max_tx_buf_size is not used any more after reconfiguration of
tx buffer size has been removed.
Also add missing curr_tx_buf_size update while dumping debug info
via debugfs.
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mwifiex/README | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/debugfs.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/init.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/ioctl.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/main.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmdresp.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/util.c | 2 |
7 files changed, 3 insertions, 10 deletions
diff --git a/drivers/net/wireless/mwifiex/README b/drivers/net/wireless/mwifiex/README index b55badef4660..3d64613ebb29 100644 --- a/drivers/net/wireless/mwifiex/README +++ b/drivers/net/wireless/mwifiex/README | |||
@@ -121,7 +121,6 @@ info | |||
121 | wmm_ac_vi = <number of packets sent to device from WMM AcVi queue> | 121 | wmm_ac_vi = <number of packets sent to device from WMM AcVi queue> |
122 | wmm_ac_be = <number of packets sent to device from WMM AcBE queue> | 122 | wmm_ac_be = <number of packets sent to device from WMM AcBE queue> |
123 | wmm_ac_bk = <number of packets sent to device from WMM AcBK queue> | 123 | wmm_ac_bk = <number of packets sent to device from WMM AcBK queue> |
124 | max_tx_buf_size = <maximum Tx buffer size> | ||
125 | tx_buf_size = <current Tx buffer size> | 124 | tx_buf_size = <current Tx buffer size> |
126 | curr_tx_buf_size = <current Tx buffer size> | 125 | curr_tx_buf_size = <current Tx buffer size> |
127 | ps_mode = <0/1, CAM mode/PS mode> | 126 | ps_mode = <0/1, CAM mode/PS mode> |
diff --git a/drivers/net/wireless/mwifiex/debugfs.c b/drivers/net/wireless/mwifiex/debugfs.c index 46e34aa65d1c..753b5682d53f 100644 --- a/drivers/net/wireless/mwifiex/debugfs.c +++ b/drivers/net/wireless/mwifiex/debugfs.c | |||
@@ -58,8 +58,6 @@ static struct mwifiex_debug_data items[] = { | |||
58 | item_addr(packets_out[WMM_AC_BE]), 1}, | 58 | item_addr(packets_out[WMM_AC_BE]), 1}, |
59 | {"wmm_ac_bk", item_size(packets_out[WMM_AC_BK]), | 59 | {"wmm_ac_bk", item_size(packets_out[WMM_AC_BK]), |
60 | item_addr(packets_out[WMM_AC_BK]), 1}, | 60 | item_addr(packets_out[WMM_AC_BK]), 1}, |
61 | {"max_tx_buf_size", item_size(max_tx_buf_size), | ||
62 | item_addr(max_tx_buf_size), 1}, | ||
63 | {"tx_buf_size", item_size(tx_buf_size), | 61 | {"tx_buf_size", item_size(tx_buf_size), |
64 | item_addr(tx_buf_size), 1}, | 62 | item_addr(tx_buf_size), 1}, |
65 | {"curr_tx_buf_size", item_size(curr_tx_buf_size), | 63 | {"curr_tx_buf_size", item_size(curr_tx_buf_size), |
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c index e00b8060aff7..820a19cfa562 100644 --- a/drivers/net/wireless/mwifiex/init.c +++ b/drivers/net/wireless/mwifiex/init.c | |||
@@ -317,7 +317,6 @@ static void mwifiex_init_adapter(struct mwifiex_adapter *adapter) | |||
317 | 317 | ||
318 | adapter->pm_wakeup_fw_try = false; | 318 | adapter->pm_wakeup_fw_try = false; |
319 | 319 | ||
320 | adapter->max_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; | ||
321 | adapter->tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; | 320 | adapter->tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; |
322 | adapter->curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; | 321 | adapter->curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; |
323 | 322 | ||
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h index 6095b3e53f4e..f3d9d0445529 100644 --- a/drivers/net/wireless/mwifiex/ioctl.h +++ b/drivers/net/wireless/mwifiex/ioctl.h | |||
@@ -178,7 +178,6 @@ struct mwifiex_ds_tx_ba_stream_tbl { | |||
178 | struct mwifiex_debug_info { | 178 | struct mwifiex_debug_info { |
179 | u32 int_counter; | 179 | u32 int_counter; |
180 | u32 packets_out[MAX_NUM_TID]; | 180 | u32 packets_out[MAX_NUM_TID]; |
181 | u32 max_tx_buf_size; | ||
182 | u32 tx_buf_size; | 181 | u32 tx_buf_size; |
183 | u32 curr_tx_buf_size; | 182 | u32 curr_tx_buf_size; |
184 | u32 tx_tbl_num; | 183 | u32 tx_tbl_num; |
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 51044e3ea89b..ac799a046eb7 100644 --- a/drivers/net/wireless/mwifiex/main.h +++ b/drivers/net/wireless/mwifiex/main.h | |||
@@ -631,7 +631,6 @@ struct mwifiex_adapter { | |||
631 | /* spin lock for main process */ | 631 | /* spin lock for main process */ |
632 | spinlock_t main_proc_lock; | 632 | spinlock_t main_proc_lock; |
633 | u32 mwifiex_processing; | 633 | u32 mwifiex_processing; |
634 | u16 max_tx_buf_size; | ||
635 | u16 tx_buf_size; | 634 | u16 tx_buf_size; |
636 | u16 curr_tx_buf_size; | 635 | u16 curr_tx_buf_size; |
637 | u32 ioport; | 636 | u32 ioport; |
diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers/net/wireless/mwifiex/sta_cmdresp.c index 65c12eb3e5e7..847056415ac9 100644 --- a/drivers/net/wireless/mwifiex/sta_cmdresp.c +++ b/drivers/net/wireless/mwifiex/sta_cmdresp.c | |||
@@ -935,9 +935,8 @@ int mwifiex_process_sta_cmdresp(struct mwifiex_private *priv, u16 cmdresp_no, | |||
935 | / MWIFIEX_SDIO_BLOCK_SIZE) | 935 | / MWIFIEX_SDIO_BLOCK_SIZE) |
936 | * MWIFIEX_SDIO_BLOCK_SIZE; | 936 | * MWIFIEX_SDIO_BLOCK_SIZE; |
937 | adapter->curr_tx_buf_size = adapter->tx_buf_size; | 937 | adapter->curr_tx_buf_size = adapter->tx_buf_size; |
938 | dev_dbg(adapter->dev, | 938 | dev_dbg(adapter->dev, "cmd: curr_tx_buf_size=%d\n", |
939 | "cmd: max_tx_buf_size=%d, tx_buf_size=%d\n", | 939 | adapter->curr_tx_buf_size); |
940 | adapter->max_tx_buf_size, adapter->tx_buf_size); | ||
941 | 940 | ||
942 | if (adapter->if_ops.update_mp_end_port) | 941 | if (adapter->if_ops.update_mp_end_port) |
943 | adapter->if_ops.update_mp_end_port(adapter, | 942 | adapter->if_ops.update_mp_end_port(adapter, |
diff --git a/drivers/net/wireless/mwifiex/util.c b/drivers/net/wireless/mwifiex/util.c index 0982375ba3b1..21553976b550 100644 --- a/drivers/net/wireless/mwifiex/util.c +++ b/drivers/net/wireless/mwifiex/util.c | |||
@@ -91,7 +91,7 @@ int mwifiex_get_debug_info(struct mwifiex_private *priv, | |||
91 | memcpy(info->packets_out, | 91 | memcpy(info->packets_out, |
92 | priv->wmm.packets_out, | 92 | priv->wmm.packets_out, |
93 | sizeof(priv->wmm.packets_out)); | 93 | sizeof(priv->wmm.packets_out)); |
94 | info->max_tx_buf_size = (u32) adapter->max_tx_buf_size; | 94 | info->curr_tx_buf_size = (u32) adapter->curr_tx_buf_size; |
95 | info->tx_buf_size = (u32) adapter->tx_buf_size; | 95 | info->tx_buf_size = (u32) adapter->tx_buf_size; |
96 | info->rx_tbl_num = mwifiex_get_rx_reorder_tbl(priv, | 96 | info->rx_tbl_num = mwifiex_get_rx_reorder_tbl(priv, |
97 | info->rx_tbl); | 97 | info->rx_tbl); |