aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-12-11 15:50:59 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:49 -0500
commit8e3c91bb70372da692a5fefae9f698c94bb1e641 (patch)
treec8befebaafa59facde125257c626c3440a22f785 /drivers/net/wireless/libertas/main.c
parent79a9a37c1eb13bd645ec423c0c30b70838e7bf93 (diff)
libertas: convert DATA_RATE to a direct command
Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 7f6b3ccef0c2..2fe7ad0f8327 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -854,12 +854,8 @@ static int lbs_setup_firmware(struct lbs_private *priv)
854 854
855 lbs_set_mac_packet_filter(priv); 855 lbs_set_mac_packet_filter(priv);
856 856
857 /* Get the supported Data rates */ 857 ret = lbs_get_data_rate(priv);
858 ret = lbs_prepare_and_send_command(priv, CMD_802_11_DATA_RATE, 858 if (ret < 0) {
859 CMD_ACT_GET_TX_RATE,
860 CMD_OPTION_WAITFORRSP, 0, NULL);
861
862 if (ret) {
863 ret = -1; 859 ret = -1;
864 goto done; 860 goto done;
865 } 861 }