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: Wed, 27 Nov 2013 17:30:43 -0600	[thread overview]
Message-ID: <529680A3.8070103@lwfinger.net> (raw)
In-Reply-To: <1385593188.3627.52911717.4E0712D9@webmail.messagingengine.com>

On 11/27/2013 04:59 PM, Nikita N. wrote:
> Alright then :) lets start:
>
>
> - Bug #1:
> Im running on standard Slitaz4, updating modules, the following script:
> ./backports-3.13-rc1-1/scripts/compress_modules.sh
> the "if" is not able to detect the present compression, as result the
> new modules are not compressed, and get mixed with the old ones
> compressed, resulting in errors.
> My actual workaround is just to delete the "if" line.
> The issue is present in all backports releases, since the switch from
> compat-drivers.

That is a backports bug, not one in rtl8187. It should be reported separately.

> - Bug #2:
> I previously updated to backports-3.11-rc3, after install here the dmesg
> report:
> "
> Loading modules backported from Linux version v3.11-rc3-0-g5ae90d8
> Backport generated by backports.git v3.11-rc3-1-0-g4e81a94
> cfg80211: Calling CRDA to update world regulatory domain
> NET: Registered protocol family 10
> rtl8187: Invalid hwaddr! Using randomly generated MAC address
> ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> ieee80211 phy0: hwaddr 6a:d5:65:93:2c:69, RTL8187vB (default) V1 +
> rtl8225z2, rfkill mask 2
> rtl8187: Customer ID is 0x00
> Registered led device: rtl8187-phy0::radio
> Registered led device: rtl8187-phy0::tx
> Registered led device: rtl8187-phy0::rx
> rtl8187: wireless switch is on
> usbcore: registered new interface driver rtl8187
> "
> The "Invalid hwaddr!" is the bug.
> As workaround I had to rollback to compat-drivers, where the problem
> does not exists, infact here dmesg:
> "
> Compat-drivers backport release: compat-drivers-v3.9-rc4-2-su
> Backport based on linux-stable.git v3.9-rc4
> compat.git: linux-stable.git
> cfg80211: Calling CRDA to update world regulatory domain
> NET: Registered protocol family 10
> ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> ieee80211 phy0: hwaddr 00:e0:4c:X:X:X, RTL8187vB (default) V1 +
> rtl8225z2, rfkill mask 2

On my system, my RTL8187B shows the following for kernel 13.1-rc1:

[11213.196114] usb 1-5: new high-speed USB device number 5 using ehci-pci
[11214.663577] rtl8187: inconsistency between id with OEM info!
[11214.666105] cfg80211: Updating information on frequency 2412 MHz with 
regulatory rule:
[11214.666114] cfg80211: 2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[11214.666118] cfg80211: Updating information on frequency 2417 MHz with 
regulatory rule:

--snip--

ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
ieee80211 phy2: hwaddr 00:11:6b:3e:c4:0a, RTL8187BvB(early) V0 + rtl8225z2, 
rfkill mask 2
rtl8187: Customer ID is 0x00
rtl8187: wireless switch is on
usbcore: registered new interface driver rtl8187
systemd-udevd[5796]: renamed network interface wlan1 to wlp0s2f1u5

> - Bug #3:
> After reverting back to compat-drivers, my interface started behaving
> wrong in monitor mode.
> Monitor mode was always working properly before, but after applying
> backports-3.11 now is broken.
> The symptoms are the following: whatever is the channel, from airodump
> or wireshark I can see only broadcasts frames (dest ff:ff:ff..) and
> management frames (ack,probes,beacons,req send,block,
> assoc,auth,deauth,..)
> I tried also other live-RAM-only distros as BT5, Kali and Weaknet, the
> issue persists.
> The interface behaves like some kind of "wrong" data has been written
> permanently (in the eeprom?) which instructs the interface to discard
> all data frames when in monitor mode.
> Managed mode still works perfectly.
> I still could not find a workaround for this bug, as result my interface
> is still unusable in monitor mode.

I cannot address this problem very much as I have no idea what went wrong when 
you installed backports. Refreshing your kernel from the distro, or regenerating 
it again if you build your own should help. The device's EEPROM cannot be 
changed, thus your conjecture about discarded frames is not right.

> - Bug #4:
> Today I tried install latest stable backports-3.13-rc1-1, but RTL
> modules are not compiled.
> Running make defconfig-rtlwifi, it compiles only generic modules.
> Running make defconfig-wifi, compilation is very fast, and skips lots of
> chipsets, again same issue - no RTL modules.
> No workaround - I reverted back again to compat-drivers.

The rtlwifi package only includes the drivers that use rtlwifi for their basic 
communications. Driver rtl8187 is *NOT* one of them. You have to configure it 
separately. This is not a bug.

I have just dowloaded backports 3.13-rc1 and will try it.

Larry


  reply	other threads:[~2013-11-27 23:30 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 [this message]
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
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=529680A3.8070103@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.