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>
This commit is contained in:

committed by
David S. Miller

parent
8e3c91bb70
commit
2dd4b26264
@@ -325,28 +325,6 @@ static int lbs_ret_802_11_rate_adapt_rateset(struct lbs_private *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lbs_ret_802_11_rf_channel(struct lbs_private *priv,
|
||||
struct cmd_ds_command *resp)
|
||||
{
|
||||
struct cmd_ds_802_11_rf_channel *rfchannel = &resp->params.rfchannel;
|
||||
u16 action = le16_to_cpu(rfchannel->action);
|
||||
u16 newchannel = le16_to_cpu(rfchannel->currentchannel);
|
||||
|
||||
lbs_deb_enter(LBS_DEB_CMD);
|
||||
|
||||
if (action == CMD_OPT_802_11_RF_CHANNEL_GET
|
||||
&& priv->curbssparams.channel != newchannel) {
|
||||
lbs_deb_cmd("channel switch from %d to %d\n",
|
||||
priv->curbssparams.channel, newchannel);
|
||||
|
||||
/* Update the channel again */
|
||||
priv->curbssparams.channel = newchannel;
|
||||
}
|
||||
|
||||
lbs_deb_enter(LBS_DEB_CMD);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lbs_ret_802_11_rssi(struct lbs_private *priv,
|
||||
struct cmd_ds_command *resp)
|
||||
{
|
||||
@@ -548,9 +526,6 @@ static inline int handle_cmd_response(struct lbs_private *priv,
|
||||
case CMD_RET(CMD_802_11_RATE_ADAPT_RATESET):
|
||||
ret = lbs_ret_802_11_rate_adapt_rateset(priv, resp);
|
||||
break;
|
||||
case CMD_RET(CMD_802_11_RF_CHANNEL):
|
||||
ret = lbs_ret_802_11_rf_channel(priv, resp);
|
||||
break;
|
||||
|
||||
case CMD_RET(CMD_802_11_RSSI):
|
||||
ret = lbs_ret_802_11_rssi(priv, resp);
|
||||
|
Reference in New Issue
Block a user