diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-05-14 10:27:18 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-14 16:29:50 -0400 |
commit | ef85ad541f9a6ccd3f89ec73f92b2d6f45a9d3e8 (patch) | |
tree | 2bcdfb7d200f671a254700ecbff69cb7eacf621a /drivers/net/wireless/libertas | |
parent | 6dcdc19e4ba4e6a9ccd733fdb745ad062cf3ea0a (diff) |
libertas: remove lbs_get_data_rate()
lbs_get_data_rate() gets called, but no-one uses it's result.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 32 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cmd.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 12 |
3 files changed, 1 insertions, 44 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index 6328b9593877..c2dd43ece069 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -697,38 +697,6 @@ static int lbs_cmd_802_11_rate_adapt_rateset(struct lbs_private *priv, | |||
697 | } | 697 | } |
698 | 698 | ||
699 | /** | 699 | /** |
700 | * @brief Get the current data rate | ||
701 | * | ||
702 | * @param priv A pointer to struct lbs_private structure | ||
703 | * | ||
704 | * @return The data rate on success, error on failure | ||
705 | */ | ||
706 | int lbs_get_data_rate(struct lbs_private *priv) | ||
707 | { | ||
708 | struct cmd_ds_802_11_data_rate cmd; | ||
709 | int ret = -1; | ||
710 | |||
711 | lbs_deb_enter(LBS_DEB_CMD); | ||
712 | |||
713 | memset(&cmd, 0, sizeof(cmd)); | ||
714 | cmd.hdr.size = cpu_to_le16(sizeof(cmd)); | ||
715 | cmd.action = cpu_to_le16(CMD_ACT_GET_TX_RATE); | ||
716 | |||
717 | ret = lbs_cmd_with_response(priv, CMD_802_11_DATA_RATE, &cmd); | ||
718 | if (ret) | ||
719 | goto out; | ||
720 | |||
721 | lbs_deb_hex(LBS_DEB_CMD, "DATA_RATE_RESP", (u8 *) &cmd, sizeof (cmd)); | ||
722 | |||
723 | ret = (int) lbs_fw_index_to_data_rate(cmd.rates[0]); | ||
724 | lbs_deb_cmd("DATA_RATE: current rate 0x%02x\n", ret); | ||
725 | |||
726 | out: | ||
727 | lbs_deb_leave_args(LBS_DEB_CMD, "ret %d", ret); | ||
728 | return ret; | ||
729 | } | ||
730 | |||
731 | /** | ||
732 | * @brief Set the data rate | 700 | * @brief Set the data rate |
733 | * | 701 | * |
734 | * @param priv A pointer to struct lbs_private structure | 702 | * @param priv A pointer to struct lbs_private structure |
diff --git a/drivers/net/wireless/libertas/cmd.h b/drivers/net/wireless/libertas/cmd.h index 4295bc613669..f4019c22adfc 100644 --- a/drivers/net/wireless/libertas/cmd.h +++ b/drivers/net/wireless/libertas/cmd.h | |||
@@ -34,7 +34,6 @@ int lbs_update_hw_spec(struct lbs_private *priv); | |||
34 | int lbs_mesh_access(struct lbs_private *priv, uint16_t cmd_action, | 34 | int lbs_mesh_access(struct lbs_private *priv, uint16_t cmd_action, |
35 | struct cmd_ds_mesh_access *cmd); | 35 | struct cmd_ds_mesh_access *cmd); |
36 | 36 | ||
37 | int lbs_get_data_rate(struct lbs_private *priv); | ||
38 | int lbs_set_data_rate(struct lbs_private *priv, u8 rate); | 37 | int lbs_set_data_rate(struct lbs_private *priv, u8 rate); |
39 | 38 | ||
40 | int lbs_get_channel(struct lbs_private *priv); | 39 | int lbs_get_channel(struct lbs_private *priv); |
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 0be89573716c..e333f14dce23 100644 --- a/drivers/net/wireless/libertas/main.c +++ b/drivers/net/wireless/libertas/main.c | |||
@@ -927,20 +927,10 @@ static int lbs_setup_firmware(struct lbs_private *priv) | |||
927 | */ | 927 | */ |
928 | memset(priv->current_addr, 0xff, ETH_ALEN); | 928 | memset(priv->current_addr, 0xff, ETH_ALEN); |
929 | ret = lbs_update_hw_spec(priv); | 929 | ret = lbs_update_hw_spec(priv); |
930 | if (ret) { | 930 | if (ret) |
931 | ret = -1; | ||
932 | goto done; | 931 | goto done; |
933 | } | ||
934 | 932 | ||
935 | lbs_set_mac_control(priv); | 933 | lbs_set_mac_control(priv); |
936 | |||
937 | ret = lbs_get_data_rate(priv); | ||
938 | if (ret < 0) { | ||
939 | ret = -1; | ||
940 | goto done; | ||
941 | } | ||
942 | |||
943 | ret = 0; | ||
944 | done: | 934 | done: |
945 | lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret); | 935 | lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret); |
946 | return ret; | 936 | return ret; |