All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: linux-wireless@vger.kernel.org, linville@tuxdriver.com,
	lrodriguez@atheros.com
Subject: Re: [PATCH 1/4] ath9k: remove the virtual wiphy debugfs interface
Date: Thu, 20 Jan 2011 14:39:12 -0800	[thread overview]
Message-ID: <4D38B990.50406@candelatech.com> (raw)
In-Reply-To: <1295562349-17161-1-git-send-email-nbd@openwrt.org>

On 01/20/2011 02:25 PM, Felix Fietkau wrote:
> Signed-off-by: Felix Fietkau<nbd@openwrt.org>
> ---
>   drivers/net/wireless/ath/ath9k/debug.c |  202 --------------------------------
>   1 files changed, 0 insertions(+), 202 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath9k/debug.c b/drivers/net/wireless/ath/ath9k/debug.c
> index 3586c43..73644c4 100644
> --- a/drivers/net/wireless/ath/ath9k/debug.c
> +++ b/drivers/net/wireless/ath/ath9k/debug.c
> @@ -381,204 +381,6 @@ static const struct file_operations fops_interrupt = {
>   	.llseek = default_llseek,
>   };

I think a lot of this could still be useful, even if it's named something
other than wiphy, so please don't remove all the filter debug and
similar...

Thanks,
Ben

>
> -static const char * ath_wiphy_state_str(enum ath_wiphy_state state)
> -{
> -	switch (state) {
> -	case ATH_WIPHY_INACTIVE:
> -		return "INACTIVE";
> -	case ATH_WIPHY_ACTIVE:
> -		return "ACTIVE";
> -	case ATH_WIPHY_PAUSING:
> -		return "PAUSING";
> -	case ATH_WIPHY_PAUSED:
> -		return "PAUSED";
> -	case ATH_WIPHY_SCAN:
> -		return "SCAN";
> -	}
> -	return "?";
> -}
> -
> -static ssize_t read_file_wiphy(struct file *file, char __user *user_buf,
> -			       size_t count, loff_t *ppos)
> -{
> -	struct ath_softc *sc = file->private_data;
> -	struct ath_wiphy *aphy = sc->pri_wiphy;
> -	struct ieee80211_channel *chan = aphy->hw->conf.channel;
> -	char buf[512];
> -	unsigned int len = 0;
> -	int i;
> -	u8 addr[ETH_ALEN];
> -	u32 tmp;
> -
> -	len += snprintf(buf + len, sizeof(buf) - len,
> -			"primary: %s (%s chan=%d ht=%d)\n",
> -			wiphy_name(sc->pri_wiphy->hw->wiphy),
> -			ath_wiphy_state_str(sc->pri_wiphy->state),
> -			ieee80211_frequency_to_channel(chan->center_freq),
> -			aphy->chan_is_ht);
> -
> -	put_unaligned_le32(REG_READ_D(sc->sc_ah, AR_STA_ID0), addr);
> -	put_unaligned_le16(REG_READ_D(sc->sc_ah, AR_STA_ID1)&  0xffff, addr + 4);
> -	len += snprintf(buf + len, sizeof(buf) - len,
> -			"addr: %pM\n", addr);
> -	put_unaligned_le32(REG_READ_D(sc->sc_ah, AR_BSSMSKL), addr);
> -	put_unaligned_le16(REG_READ_D(sc->sc_ah, AR_BSSMSKU)&  0xffff, addr + 4);
> -	len += snprintf(buf + len, sizeof(buf) - len,
> -			"addrmask: %pM\n", addr);
> -	tmp = ath9k_hw_getrxfilter(sc->sc_ah);
> -	len += snprintf(buf + len, sizeof(buf) - len,
> -			"rfilt: 0x%x", tmp);
> -	if (tmp&  ATH9K_RX_FILTER_UCAST)
> -		len += snprintf(buf + len, sizeof(buf) - len, " UCAST");
> -	if (tmp&  ATH9K_RX_FILTER_MCAST)
> -		len += snprintf(buf + len, sizeof(buf) - len, " MCAST");

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


  parent reply	other threads:[~2011-01-20 22:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-20 22:25 [PATCH 1/4] ath9k: remove the virtual wiphy debugfs interface Felix Fietkau
2011-01-20 22:25 ` [PATCH 2/4] ath9k: remove support for virtual wiphys Felix Fietkau
2011-01-20 22:25   ` [PATCH 3/4] ath9k: remove the bf->aphy field Felix Fietkau
2011-01-20 22:25     ` [PATCH 4/4] ath9k: fold struct ath_wiphy into struct ath_softc Felix Fietkau
2011-01-20 22:39 ` Ben Greear [this message]
2011-01-20 22:42   ` [PATCH 1/4] ath9k: remove the virtual wiphy debugfs interface Felix Fietkau

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=4D38B990.50406@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=lrodriguez@atheros.com \
    --cc=nbd@openwrt.org \
    /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.