diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2008-03-19 09:25:58 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:49 -0400 |
commit | e98a88dd33b7188ce84533e128101dd9630ae592 (patch) | |
tree | 14268254f1f588c691dcd52505c595142548afdd /drivers/net/wireless/libertas/cmdresp.c | |
parent | d4ff0ef635b222d5f66dad65e9364d702e5f94e0 (diff) |
libertas: remove lots of unused stuff
This removes many unused function parameters as well as some not-implemented
functions, e.g. CMD_802_11_GET_STATS. The silly lbs_set_cmd_ctrl_node()
function is now also gone.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-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 | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 45de4316bdd7..888f92d8afc9 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -146,22 +146,6 @@ static int lbs_ret_reg_access(struct lbs_private *priv, | |||
146 | return ret; | 146 | return ret; |
147 | } | 147 | } |
148 | 148 | ||
149 | static int lbs_ret_802_11_stat(struct lbs_private *priv, | ||
150 | struct cmd_ds_command *resp) | ||
151 | { | ||
152 | lbs_deb_enter(LBS_DEB_CMD); | ||
153 | /* currently priv->wlan802_11Stat is unused | ||
154 | |||
155 | struct cmd_ds_802_11_get_stat *p11Stat = &resp->params.gstat; | ||
156 | |||
157 | // TODO Convert it to Big endian befor copy | ||
158 | memcpy(&priv->wlan802_11Stat, | ||
159 | p11Stat, sizeof(struct cmd_ds_802_11_get_stat)); | ||
160 | */ | ||
161 | lbs_deb_leave(LBS_DEB_CMD); | ||
162 | return 0; | ||
163 | } | ||
164 | |||
165 | static int lbs_ret_802_11_snmp_mib(struct lbs_private *priv, | 149 | static int lbs_ret_802_11_snmp_mib(struct lbs_private *priv, |
166 | struct cmd_ds_command *resp) | 150 | struct cmd_ds_command *resp) |
167 | { | 151 | { |
@@ -321,7 +305,6 @@ static int lbs_ret_802_11_bcn_ctrl(struct lbs_private * priv, | |||
321 | } | 305 | } |
322 | 306 | ||
323 | static inline int handle_cmd_response(struct lbs_private *priv, | 307 | static inline int handle_cmd_response(struct lbs_private *priv, |
324 | unsigned long dummy, | ||
325 | struct cmd_header *cmd_response) | 308 | struct cmd_header *cmd_response) |
326 | { | 309 | { |
327 | struct cmd_ds_command *resp = (struct cmd_ds_command *) cmd_response; | 310 | struct cmd_ds_command *resp = (struct cmd_ds_command *) cmd_response; |
@@ -346,7 +329,7 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
346 | 329 | ||
347 | case CMD_RET(CMD_802_11_DISASSOCIATE): | 330 | case CMD_RET(CMD_802_11_DISASSOCIATE): |
348 | case CMD_RET(CMD_802_11_DEAUTHENTICATE): | 331 | case CMD_RET(CMD_802_11_DEAUTHENTICATE): |
349 | ret = lbs_ret_80211_disassociate(priv, resp); | 332 | ret = lbs_ret_80211_disassociate(priv); |
350 | break; | 333 | break; |
351 | 334 | ||
352 | case CMD_RET(CMD_802_11_AD_HOC_START): | 335 | case CMD_RET(CMD_802_11_AD_HOC_START): |
@@ -354,10 +337,6 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
354 | ret = lbs_ret_80211_ad_hoc_start(priv, resp); | 337 | ret = lbs_ret_80211_ad_hoc_start(priv, resp); |
355 | break; | 338 | break; |
356 | 339 | ||
357 | case CMD_RET(CMD_802_11_GET_STAT): | ||
358 | ret = lbs_ret_802_11_stat(priv, resp); | ||
359 | break; | ||
360 | |||
361 | case CMD_RET(CMD_802_11_SNMP_MIB): | 340 | case CMD_RET(CMD_802_11_SNMP_MIB): |
362 | ret = lbs_ret_802_11_snmp_mib(priv, resp); | 341 | ret = lbs_ret_802_11_snmp_mib(priv, resp); |
363 | break; | 342 | break; |
@@ -394,7 +373,7 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
394 | break; | 373 | break; |
395 | 374 | ||
396 | case CMD_RET(CMD_802_11_AD_HOC_STOP): | 375 | case CMD_RET(CMD_802_11_AD_HOC_STOP): |
397 | ret = lbs_ret_80211_ad_hoc_stop(priv, resp); | 376 | ret = lbs_ret_80211_ad_hoc_stop(priv); |
398 | break; | 377 | break; |
399 | 378 | ||
400 | case CMD_RET(CMD_802_11_EEPROM_ACCESS): | 379 | case CMD_RET(CMD_802_11_EEPROM_ACCESS): |
@@ -402,7 +381,7 @@ static inline int handle_cmd_response(struct lbs_private *priv, | |||
402 | break; | 381 | break; |
403 | 382 | ||
404 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): | 383 | case CMD_RET(CMD_802_11D_DOMAIN_INFO): |
405 | ret = lbs_ret_802_11d_domain_info(priv, resp); | 384 | ret = lbs_ret_802_11d_domain_info(resp); |
406 | break; | 385 | break; |
407 | 386 | ||
408 | case CMD_RET(CMD_802_11_TPC_CFG): | 387 | case CMD_RET(CMD_802_11_TPC_CFG): |
@@ -605,7 +584,7 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
605 | ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg, | 584 | ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg, |
606 | resp); | 585 | resp); |
607 | } else | 586 | } else |
608 | ret = handle_cmd_response(priv, 0, resp); | 587 | ret = handle_cmd_response(priv, resp); |
609 | 588 | ||
610 | spin_lock_irqsave(&priv->driver_lock, flags); | 589 | spin_lock_irqsave(&priv->driver_lock, flags); |
611 | 590 | ||