All of lore.kernel.org
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: "Nikita N." <nikitan@operamail.com>, linux-wireless@vger.kernel.org
Subject: Re: RTL8187 bugs
Date: Tue, 03 Dec 2013 10:05:58 -0600	[thread overview]
Message-ID: <529E0166.90302@lwfinger.net> (raw)
In-Reply-To: <1386079140.19919.54929613.506DE0D0@webmail.messagingengine.com>

On 12/03/2013 07:59 AM, Nikita N. wrote:
> Hi Larry :) Im afraid I didnt receive your answer to my last email.. in
> case you sent, please resend, thanks :)
>
> As for "dissecting" the issue, as you suggested, I have been filling
> your code with debug lines.
> Very interesting in my opinion is the report from
> drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl8187_configure_filter(),
> as follows:
>
> IN>changed_flags=240,total_flags=2147483888,multicast=0,priv->rx_conf=2425682954
>> FIF_CONTROL
>> FIF_OTHER_BSS
>> not FIF_ALLMULTI
> drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl818x_iowrite32_async
> drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl8187_iowrite_async
> OUT>total_flags=96,priv->rx_conf=2426207243

Please do not dump pointers, flags, etc. as a decimal value. In most cases, you 
need to hexadecimal value to interpret them. Why not output them in hex to begin 
with?

> .. after, some daemon calls it again multiple times, but result is
> always the same as follows:
> IN>changed_flags=144,total_flags=2147483888,multicast=0,priv->rx_conf=2426207243
>> not FIF_ALLMULTI
> drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl818x_iowrite32_async
> drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl8187_iowrite_async
> net/mac80211/util.c#ieee80211_queue_work
> OUT>total_flags=96,priv->rx_conf=2426207243
>
> .. seeing anything unusual?
>
> I have the strange feeling that "IN" value of priv->rx_conf could be
> bugged.. as result the relative OUT value is maybe wrong.. :P
>
> Anyway, could you please perform the same test on your working
> interfaces, and report me the output?
> The values of IN/OUT and so on, of rtl8187_configure_filter(), *AFTER*
> calling "airmon-ng start wlan0"?

If you want me to test anything, you need to send me patches that I can apply. 
Having to regenerate your patches here is something I have no interest in doing.

>>From your probe, my interface type is as follow:
> - "RTL8187vB (default)"
> - PCI_EEPROM_WIDTH_93C46
> - customer id 0
>
> Please insert the following debug lines, as I did:
> static void rtl8187_configure_filter()
> {
> printk(KERN_WARNING
> "drivers/net/wireless/rtl818x/rtl8187/dev.c#rtl8187_configure_filter");
> 	struct rtl8187_priv *priv = dev->priv;
> printk(KERN_WARNING
> "IN>changed_flags=%u,total_flags=%u,multicast=%llu,priv->rx_conf=%u",changed_flags,*total_flags,multicast,priv->rx_conf);
> 	if (changed_flags & FIF_FCSFAIL) {
> 		priv->rx_conf ^= RTL818X_RX_CONF_FCS;
> printk(KERN_WARNING ">FIF_FCSFAIL");}
> 	if (changed_flags & FIF_CONTROL) {
> 		priv->rx_conf ^= RTL818X_RX_CONF_CTRL;
> printk(KERN_WARNING ">FIF_CONTROL");}
> 	if (changed_flags & FIF_OTHER_BSS) {
> 		priv->rx_conf ^= RTL818X_RX_CONF_MONITOR;
> printk(KERN_WARNING ">FIF_OTHER_BSS");}
> 	if (*total_flags & FIF_ALLMULTI || multicast > 0) {
> 		priv->rx_conf |= RTL818X_RX_CONF_MULTICAST;
> printk(KERN_WARNING ">FIF_ALLMULTI");}
> else {
> 		priv->rx_conf &= ~RTL818X_RX_CONF_MULTICAST;
> printk(KERN_WARNING ">not FIF_ALLMULTI");}
>
> 	rtl818x_iowrite32_async(priv, &priv->map->RX_CONF,
> 	priv->rx_conf);
> printk(KERN_WARNING
> "OUT>total_flags=%u,priv->rx_conf=%u",*total_flags,priv->rx_conf);
> }
>
> If you get different outputs also between your interfaces, please send
> me all different outputs!
> thanks :)

Larry



  reply	other threads:[~2013-12-03 16:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 22:06 RTL8187 bugs Nikita N.
2013-11-27 22:08 ` Larry Finger
2013-11-27 22:59   ` Nikita N.
2013-11-27 23:30     ` Larry Finger
2013-11-28 17:44       ` Nikita N.
2013-11-29  2:46         ` Larry Finger
2013-11-29  6:26           ` Nikita N.
2013-11-30 13:48           ` Fwd: " Nikita N.
2013-11-30 13:45       ` Nikita N.
2013-11-28  0:04     ` Larry Finger
2013-11-30 12:03       ` Nikita N.
2013-11-30 13:50         ` Fwd: " Nikita N.
2013-11-30 17:07         ` Larry Finger
2013-11-30 18:23           ` Nikita N.
2013-11-30 19:04             ` Larry Finger
2013-12-01  9:23               ` Nikita N.
2013-12-03 13:59               ` Nikita N.
2013-12-03 16:05                 ` Larry Finger [this message]
2013-12-03 21:21                   ` Nikita N.
2013-12-04  2:32                     ` Larry Finger
2013-12-04  7:52                       ` Nikita N.
2013-12-04 20:49                         ` Larry Finger
2013-12-05  7:46                           ` Nikita N.
2013-12-05 12:51                           ` Nikita N.

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=529E0166.90302@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=nikitan@operamail.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.