diff options
author | Dan Williams <dcbw@redhat.com> | 2008-08-19 15:15:35 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:24:06 -0400 |
commit | 87c8c72d532f96257162f978d5945dcf7f0df19e (patch) | |
tree | 71f270c1844e74ba41a6fe347e53f035db923e7d /drivers/net/wireless/libertas/cmdresp.c | |
parent | 095f695cbb07281682462da0618fffabb499d0be (diff) |
libertas: convert CMD_802_11_RF_TX_POWER to a direct command
And while we're at it, grab min/max TX power from the firmware and use
that to validate incoming TX power requests from WEXT.
Signed-off-by: Dan Williams <dcbw@redhat.com>
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 | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 24de3c3cf877..dfaf03a4bbba 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -188,21 +188,6 @@ static int lbs_ret_802_11_snmp_mib(struct lbs_private *priv, | |||
188 | return 0; | 188 | return 0; |
189 | } | 189 | } |
190 | 190 | ||
191 | static int lbs_ret_802_11_rf_tx_power(struct lbs_private *priv, | ||
192 | struct cmd_ds_command *resp) | ||
193 | { | ||
194 | struct cmd_ds_802_11_rf_tx_power *rtp = &resp->params.txp; | ||
195 | |||
196 | lbs_deb_enter(LBS_DEB_CMD); | ||
197 | |||
198 | priv->txpowerlevel = le16_to_cpu(rtp->currentlevel); | ||
199 | |||
200 | lbs_deb_cmd("TX power currently %d\n", priv->txpowerlevel); | ||
201 | |||
202 | lbs_deb_leave(LBS_DEB_CMD); | ||
203 | return 0; | ||
204 | } | ||
205 | |||
206 | static int lbs_ret_802_11_rssi(struct lbs_private *priv, | 191 | static int lbs_ret_802_11_rssi(struct lbs_private *priv, |
207 | struct cmd_ds_command *resp) | 192 | struct cmd_ds_command *resp) |
208 | { | 193 | { |
@@ -287,10 +272,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
287 | ret = lbs_ret_802_11_snmp_mib(priv, resp); | 272 | ret = lbs_ret_802_11_snmp_mib(priv, resp); |
288 | break; | 273 | break; |
289 | 274 | ||
290 | case CMD_RET(CMD_802_11_RF_TX_POWER): | ||
291 | ret = lbs_ret_802_11_rf_tx_power(priv, resp); | ||
292 | break; | ||
293 | |||
294 | case CMD_RET(CMD_802_11_SET_AFC): | 275 | case CMD_RET(CMD_802_11_SET_AFC): |
295 | case CMD_RET(CMD_802_11_GET_AFC): | 276 | case CMD_RET(CMD_802_11_GET_AFC): |
296 | spin_lock_irqsave(&priv->driver_lock, flags); | 277 | spin_lock_irqsave(&priv->driver_lock, flags); |