diff options
author | Dan Williams <dcbw@redhat.com> | 2007-12-11 15:50:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:49 -0500 |
commit | 8e3c91bb70372da692a5fefae9f698c94bb1e641 (patch) | |
tree | c8befebaafa59facde125257c626c3440a22f785 /drivers/net/wireless/libertas/cmdresp.c | |
parent | 79a9a37c1eb13bd645ec423c0c30b70838e7bf93 (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/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 6ff705b49dd..797c943457e 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -325,26 +325,6 @@ static int lbs_ret_802_11_rate_adapt_rateset(struct lbs_private *priv, | |||
325 | return 0; | 325 | return 0; |
326 | } | 326 | } |
327 | 327 | ||
328 | static int lbs_ret_802_11_data_rate(struct lbs_private *priv, | ||
329 | struct cmd_ds_command *resp) | ||
330 | { | ||
331 | struct cmd_ds_802_11_data_rate *pdatarate = &resp->params.drate; | ||
332 | |||
333 | lbs_deb_enter(LBS_DEB_CMD); | ||
334 | |||
335 | lbs_deb_hex(LBS_DEB_CMD, "DATA_RATE_RESP", (u8 *) pdatarate, | ||
336 | sizeof(struct cmd_ds_802_11_data_rate)); | ||
337 | |||
338 | /* FIXME: get actual rates FW can do if this command actually returns | ||
339 | * all data rates supported. | ||
340 | */ | ||
341 | priv->cur_rate = lbs_fw_index_to_data_rate(pdatarate->rates[0]); | ||
342 | lbs_deb_cmd("DATA_RATE: current rate 0x%02x\n", priv->cur_rate); | ||
343 | |||
344 | lbs_deb_leave(LBS_DEB_CMD); | ||
345 | return 0; | ||
346 | } | ||
347 | |||
348 | static int lbs_ret_802_11_rf_channel(struct lbs_private *priv, | 328 | static int lbs_ret_802_11_rf_channel(struct lbs_private *priv, |
349 | struct cmd_ds_command *resp) | 329 | struct cmd_ds_command *resp) |
350 | { | 330 | { |
@@ -565,9 +545,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
565 | ret = lbs_ret_802_11_enable_rsn(priv, resp); | 545 | ret = lbs_ret_802_11_enable_rsn(priv, resp); |
566 | break; | 546 | break; |
567 | 547 | ||
568 | case CMD_RET(CMD_802_11_DATA_RATE): | ||
569 | ret = lbs_ret_802_11_data_rate(priv, resp); | ||
570 | break; | ||
571 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): | 548 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): |
572 | ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp); | 549 | ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp); |
573 | break; | 550 | break; |