aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/sta_ioctl.c
diff options
context:
space:
mode:
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 {