diff options
author | Dan Williams <dcbw@redhat.com> | 2007-12-11 16:54:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:50 -0500 |
commit | 2dd4b26264d48f10e802cc9f2d75542be5a3c7fa (patch) | |
tree | 2d79fa1cde5146df36c2add9c357e404512def94 /drivers/net/wireless/libertas/cmdresp.c | |
parent | 8e3c91bb70372da692a5fefae9f698c94bb1e641 (diff) |
libertas: convert RF_CHANNEL 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 | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 797c943457eb..bf9941ecc239 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -325,28 +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_rf_channel(struct lbs_private *priv, | ||
329 | struct cmd_ds_command *resp) | ||
330 | { | ||
331 | struct cmd_ds_802_11_rf_channel *rfchannel = &resp->params.rfchannel; | ||
332 | u16 action = le16_to_cpu(rfchannel->action); | ||
333 | u16 newchannel = le16_to_cpu(rfchannel->currentchannel); | ||
334 | |||
335 | lbs_deb_enter(LBS_DEB_CMD); | ||
336 | |||
337 | if (action == CMD_OPT_802_11_RF_CHANNEL_GET | ||
338 | && priv->curbssparams.channel != newchannel) { | ||
339 | lbs_deb_cmd("channel switch from %d to %d\n", | ||
340 | priv->curbssparams.channel, newchannel); | ||
341 | |||
342 | /* Update the channel again */ | ||
343 | priv->curbssparams.channel = newchannel; | ||
344 | } | ||
345 | |||
346 | lbs_deb_enter(LBS_DEB_CMD); | ||
347 | return 0; | ||
348 | } | ||
349 | |||
350 | static int lbs_ret_802_11_rssi(struct lbs_private *priv, | 328 | static int lbs_ret_802_11_rssi(struct lbs_private *priv, |
351 | struct cmd_ds_command *resp) | 329 | struct cmd_ds_command *resp) |
352 | { | 330 | { |
@@ -548,9 +526,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
548 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): | 526 | case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET): |
549 | ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp); | 527 | ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp); |
550 | break; | 528 | break; |
551 | case CMD_RET(CMD_802_11_RF_CHANNEL): | ||
552 | ret = lbs_ret_802_11_rf_channel(priv, resp); | ||
553 | break; | ||
554 | 529 | ||
555 | case CMD_RET(CMD_802_11_RSSI): | 530 | case CMD_RET(CMD_802_11_RSSI): |
556 | ret = lbs_ret_802_11_rssi(priv, resp); | 531 | ret = lbs_ret_802_11_rssi(priv, resp); |