All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH v3 3/4] mac80211-hwsim: add rate-limited debugging for rx-netlink
Date: Wed, 29 Mar 2017 08:39:22 -0700	[thread overview]
Message-ID: <5c86dcbe-7a7b-47cd-4c77-d56e249369e0@candelatech.com> (raw)
In-Reply-To: <1490777219.7948.11.camel@sipsolutions.net>

On 03/29/2017 01:46 AM, Johannes Berg wrote:
> On Thu, 2017-03-23 at 16:26 -0700, greearb@candelatech.com wrote:
>> From: Ben Greear <greearb@candelatech.com>
>>
>> This makes it easier to understand why wmediumd (or similar)
>> is getting errors when sending frames to the kernel.
>>
>> Signed-off-by: Ben Greear <greearb@candelatech.com>
>> ---
>>  drivers/net/wireless/mac80211_hwsim.c | 55
>> +++++++++++++++++++++++++++--------
>>  1 file changed, 43 insertions(+), 12 deletions(-)
>>
>> diff --git a/drivers/net/wireless/mac80211_hwsim.c
>> b/drivers/net/wireless/mac80211_hwsim.c
>> index 234df8c..84dcddf 100644
>> --- a/drivers/net/wireless/mac80211_hwsim.c
>> +++ b/drivers/net/wireless/mac80211_hwsim.c
>> @@ -137,6 +137,12 @@ static int regtest = HWSIM_REGTEST_DISABLED;
>>  module_param(regtest, int, 0444);
>>  MODULE_PARM_DESC(regtest, "The type of regulatory test we want to
>> run");
>>
>> +DEFINE_RATELIMIT_STATE(hwsim_ratelimit_state, 5 * HZ, 10);
>> +int hwsim_ratelimit(void)
>> +{
>> +	return __ratelimit(&hwsim_ratelimit_state);
>> +}
>> +
>>  static const char *hwsim_alpha2s[] = {
>>  	"FI",
>>  	"AL",
>> @@ -1649,7 +1655,7 @@ static int mac80211_hwsim_config(struct
>> ieee80211_hw *hw, u32 changed)
>>
>>  	if (conf->chandef.chan)
>>  		wiphy_debug(hw->wiphy,
>> -			    "%s (freq=%d(%d - %d)/%s idle=%d ps=%d
>> smps=%s)\n",
>> +			    "%s (chandef-chan freq=%d(%d - %d)/%s
>> idle=%d ps=%d smps=%s)\n",
>>  			    __func__,
>>  			    conf->chandef.chan->center_freq,
>>  			    conf->chandef.center_freq1,
>> @@ -1660,7 +1666,7 @@ static int mac80211_hwsim_config(struct
>> ieee80211_hw *hw, u32 changed)
>>  			    smps_modes[conf->smps_mode]);
>>  	else
>>  		wiphy_debug(hw->wiphy,
>> -			    "%s (freq=0 idle=%d ps=%d smps=%s)\n",
>> +			    "%s (no-chandef-chan freq=0 idle=%d
>> ps=%d smps=%s)\n",
>
> This seems unrelated?

It can be cut out of the patch.  Want me to re-send?

Thanks,
Ben

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

  reply	other threads:[~2017-03-29 15:39 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-23 23:26 [PATCH v3 1/4] mac80211-hwsim: notify user-space about channel change greearb
2017-03-23 23:26 ` [PATCH v3 2/4] mac80211-hwsim: remove dmesg spam about get-survey greearb
2017-03-29  8:46   ` Johannes Berg
2017-03-23 23:26 ` [PATCH v3 3/4] mac80211-hwsim: add rate-limited debugging for rx-netlink greearb
2017-03-29  8:46   ` Johannes Berg
2017-03-29 15:39     ` Ben Greear [this message]
2017-03-29 16:52       ` Johannes Berg
2017-03-23 23:26 ` [PATCH v3 4/4] mac80211-hwsim: add length checks before allocating skb greearb
2017-03-29  8:47   ` Johannes Berg
2017-03-29  8:42 ` [PATCH v3 1/4] mac80211-hwsim: notify user-space about channel change Johannes Berg
2017-03-29 15:35   ` Ben Greear
2017-03-29 16:51     ` Johannes Berg
2017-03-29 17:11       ` Ben Greear
2017-03-31 11:48         ` Johannes Berg
2017-03-31 13:33           ` Ben Greear
2017-04-18  9:58             ` Johannes Berg

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=5c86dcbe-7a7b-47cd-4c77-d56e249369e0@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.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.