aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/sta_ioctl.c
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2011-04-13 20:27:08 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-14 15:35:13 -0400
commit572e8f3ead47ad223fb428a4f1db986317e8e0ec (patch)
treeb5542aa018fad9705b229d695e84e4c194f7ccc3 /drivers/net/wireless/mwifiex/sta_ioctl.c
parent19a898601ad192d8c59c3a8f1a4501919f53b94d (diff)
mwifiex: remove unused function parameters
Some function parameters become useless after previous cleanup changes. Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sta_ioctl.c')
-rw-r--r--drivers/net/wireless/mwifiex/sta_ioctl.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c
index 5f2ce9459d26..6489f264ef5f 100644
--- a/drivers/net/wireless/mwifiex/sta_ioctl.c
+++ b/drivers/net/wireless/mwifiex/sta_ioctl.c
@@ -812,8 +812,7 @@ static int mwifiex_rate_ioctl_set_rate_value(struct mwifiex_private *priv,
812 } 812 }
813 memset(bitmap_rates, 0, sizeof(bitmap_rates)); 813 memset(bitmap_rates, 0, sizeof(bitmap_rates));
814 814
815 rate_index = 815 rate_index = mwifiex_data_rate_to_index(rate_cfg->rate);
816 mwifiex_data_rate_to_index(adapter, rate_cfg->rate);
817 816
818 /* Only allow b/g rates to be set */ 817 /* Only allow b/g rates to be set */
819 if (rate_index >= MWIFIEX_RATE_INDEX_HRDSSS0 && 818 if (rate_index >= MWIFIEX_RATE_INDEX_HRDSSS0 &&
@@ -874,8 +873,8 @@ int mwifiex_drv_get_data_rate(struct mwifiex_private *priv,
874 873
875 if (!ret) { 874 if (!ret) {
876 if (rate && rate->is_rate_auto) 875 if (rate && rate->is_rate_auto)
877 rate->rate = mwifiex_index_to_data_rate(priv->adapter, 876 rate->rate = mwifiex_index_to_data_rate(priv->tx_rate,
878 priv->tx_rate, priv->tx_htinfo); 877 priv->tx_htinfo);
879 else if (rate) 878 else if (rate)
880 rate->rate = priv->data_rate; 879 rate->rate = priv->data_rate;
881 } else { 880 } else {