From: Jiri Slaby <jirislaby@gmail.com>
To: <linville@tuxdriver.com>
Cc: <linux-wireless@vger.kernel.org>
Cc: <mcgrof@gmail.com>
Subject: [PATCH 4/4 try 4] Net: ath5k, remove unused/dead code
Date: Wed, 26 Sep 2007 14:03:45 -0400 [thread overview]
Message-ID: <184631970443030034@pripojeni.net> (raw)
In-Reply-To: <22584316032010514103@pripojeni.net>
ath5k, remove unused/dead code
Remove ifdeffed code, which is currently (and might not be in the future too)
unused. If it was ever really needed, it could be easily ported back from the
madwifi-old-openhal repository.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
---
commit ec6042026ddc40bf55846c3b3a19a78ff57eda30
tree 3f620c10b52e10204fc08cf042c73795fc8fe027
parent f8eb6398d305c122ed72887a13625c2e7a992981
author Jiri Slaby <jirislaby@gmail.com> Tue, 25 Sep 2007 09:51:21 +0200
committer Jiri Slaby <jirislaby@gmail.com> Tue, 25 Sep 2007 09:51:21 +0200
drivers/net/wireless/ath5k/hw.c | 71 ---------------------------------------
1 files changed, 0 insertions(+), 71 deletions(-)
diff --git a/drivers/net/wireless/ath5k/hw.c b/drivers/net/wireless/ath5k/hw.c
index f74f0ca..3a865cc 100644
--- a/drivers/net/wireless/ath5k/hw.c
+++ b/drivers/net/wireless/ath5k/hw.c
@@ -1140,19 +1140,6 @@ commit:
return 0;
}
-#if 0
-/*
- * Get power mode (sleep state)
- * TODO:Remove ?
- */
-enum ath5k_power_mode
-ath5k_hw_get_power_mode(struct ath_hw *hal)
-{
- AR5K_TRACE;
- return hal->ah_power_mode;
-}
-#endif
-
/***********************\
DMA Related Functions
\***********************/
@@ -1580,52 +1567,6 @@ enum ath5k_int ath5k_hw_set_intr(struct ath_hw *hal, enum ath5k_int new_mask)
return old_mask;
}
-#if 0
-/*
- * Enable HW radar detection
- */
-void
-ath5k_hw_radar_alert(struct ath_hw *hal, bool enable)
-{
-
- AR5K_TRACE;
- /*
- * Enable radar detection
- */
-
- /*Disable interupts*/
- ath5k_hw_reg_write(hal, AR5K_IER_DISABLE, AR5K_IER);
-
- /*
- * Set the RXPHY interrupt to be able to detect
- * possible radar activity.
- */
- if (hal->ah_version == AR5K_AR5210) {
- if (enable == true)
- AR5K_REG_ENABLE_BITS(hal, AR5K_IMR, AR5K_IMR_RXPHY);
- else
- AR5K_REG_DISABLE_BITS(hal, AR5K_IMR, AR5K_IMR_RXPHY);
- } else {
- /*Also set AR5K_PHY_RADAR register on 5111/5112*/
- if (enable == true) {
- ath5k_hw_reg_write(hal, AR5K_PHY_RADAR_ENABLE,
- AR5K_PHY_RADAR);
- AR5K_REG_ENABLE_BITS(hal, AR5K_PIMR,
- AR5K_IMR_RXPHY);
- } else {
- ath5k_hw_reg_write(hal, AR5K_PHY_RADAR_DISABLE,
- AR5K_PHY_RADAR);
- AR5K_REG_DISABLE_BITS(hal, AR5K_PIMR,
- AR5K_IMR_RXPHY);
- }
- }
-
- /*Re-enable interrupts*/
- ath5k_hw_reg_write(hal, AR5K_IER_ENABLE, AR5K_IER);
-}
-#endif
-
-
/*************************\
EEPROM access functions
@@ -4344,18 +4285,6 @@ yes:
return 0;
}
-#if 0
-static bool ath5k_hw_query_pspoll_support(struct ath_hw *hal)
-{
- AR5K_TRACE;
-
- if (hal->ah_version == AR5K_AR5210)
- return true;
-
- return false;
-}
-#endif
-
static int ath5k_hw_enable_pspoll(struct ath_hw *hal, u8 *bssid,
u16 assoc_id)
{
prev parent reply other threads:[~2007-09-26 18:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 18:01 [PATCH 1/4 try 4] Net: ath5k, make its own directory Jiri Slaby
2007-09-26 18:02 ` [PATCH 2/4 try 4] Net: ath5k, split hw into hw, phy and initvals Jiri Slaby
2007-09-26 18:03 ` [PATCH 3/4 try 4] Net: ath5k, use int as retval Jiri Slaby
2007-09-26 18:03 ` Jiri Slaby [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=184631970443030034@pripojeni.net \
--to=jirislaby@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.