diff options
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index c3b80c139d4f..8b5d1a55a0e9 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -249,31 +249,6 @@ static int lbs_ret_802_11_rssi(struct lbs_private *priv, | |||
249 | return 0; | 249 | return 0; |
250 | } | 250 | } |
251 | 251 | ||
252 | static int lbs_ret_802_11_eeprom_access(struct lbs_private *priv, | ||
253 | struct cmd_ds_command *resp) | ||
254 | { | ||
255 | struct lbs_ioctl_regrdwr *pbuf; | ||
256 | pbuf = (struct lbs_ioctl_regrdwr *) priv->prdeeprom; | ||
257 | |||
258 | lbs_deb_enter_args(LBS_DEB_CMD, "len %d", | ||
259 | le16_to_cpu(resp->params.rdeeprom.bytecount)); | ||
260 | if (pbuf->NOB < le16_to_cpu(resp->params.rdeeprom.bytecount)) { | ||
261 | pbuf->NOB = 0; | ||
262 | lbs_deb_cmd("EEPROM read length too big\n"); | ||
263 | return -1; | ||
264 | } | ||
265 | pbuf->NOB = le16_to_cpu(resp->params.rdeeprom.bytecount); | ||
266 | if (pbuf->NOB > 0) { | ||
267 | |||
268 | memcpy(&pbuf->value, (u8 *) & resp->params.rdeeprom.value, | ||
269 | le16_to_cpu(resp->params.rdeeprom.bytecount)); | ||
270 | lbs_deb_hex(LBS_DEB_CMD, "EEPROM", (char *)&pbuf->value, | ||
271 | le16_to_cpu(resp->params.rdeeprom.bytecount)); | ||
272 | } | ||
273 | lbs_deb_leave(LBS_DEB_CMD); | ||
274 | return 0; | ||
275 | } | ||
276 | |||
277 | static int lbs_ret_802_11_bcn_ctrl(struct lbs_private * priv, | 252 | static int lbs_ret_802_11_bcn_ctrl(struct lbs_private * priv, |
278 | struct cmd_ds_command *resp) | 253 | struct cmd_ds_command *resp) |
279 | { | 254 | { |
@@ -359,10 +334,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
359 | ret = lbs_ret_80211_ad_hoc_stop(priv); | 334 | ret = lbs_ret_80211_ad_hoc_stop(priv); |
360 | break; | 335 | break; |
361 | 336 | ||
362 | case CMD_RET(CMD_802_11_EEPROM_ACCESS): | ||
363 | ret = lbs_ret_802_11_eeprom_access(priv, resp); | ||
364 | break; | ||
365 | |||
366 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): | 337 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): |
367 | ret = lbs_ret_802_11d_domain_info(resp); | 338 | ret = lbs_ret_802_11d_domain_info(resp); |
368 | break; | 339 | break; |