Search Linux Wireless

Re: rtlwifi (rtl8192ce) consistently reports EBUSY error, but scanning works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 05 March 2014 19:16:08 Thierry Moreau wrote:
> On 03/05/14 16:40, Larry Finger wrote:
> > Please give me the exact set of commands you use to get this problem. If
> > possible, capture the console output. As I am currently running
> > long-term tests of the latest version of rtl8192ce using an RTL8188CE
> > (10ec:8176), it will be a perfect time to test.
> 
> Here is the command script, and the console log
> (....sh 2>&1 | tee ....log)

Instead of cat, I used single-second sleeps as can be seen in the attached 
script. Our logs are roughly the same (I have replaced the last three bytes of 
the MAC address by XX for privacy). The rtlwifi module is patched[1], hence 
the out-of-tree marking.

What is the problem that you are experiencing? I am able to connect although 
it took half a minute for the first ICMP ping packets to pass (and then there 
is still a lot of packet loss). This pattern is observable on the past 2.5 
weeks that I have been running ping tests (ping every second to the gateway).

> Is it possible that the Shuttle system be arranged with a digital output
> enabling/inhibiting the Realtek wifi interface active participation in
> wifi protocol?

I didn't understand the first part, are you referring to a possible mistake in 
attaching the antennas? When I opened up the case, I saw two antennas that 
were properly secured to the card.

Regards,
Peter

 [1]: http://lkml.org/lkml/2014/2/14/430

Attachment: repro-shuttle.sh
Description: application/shellscript

Script started on Thu 06 Mar 2014 02:43:56 PM CET
+ iface=wlan0
+ uname -a
Linux work 3.14.0-rc2-custom-00267-g9398a10 #4 SMP PREEMPT Wed Feb 12 20:41:43 CET 2014 x86_64 GNU/Linux
+ dmesg
+ grep -i wifi -C 4 -n
1125-[   11.401304] [drm] No driver support for vblank timestamp query.
1126-[   11.514185] rtl8192ce:_rtl92ce_read_chip_version():<0-0> Chip Version ID: B_CUT_88C
1127-[   11.526221] rtl8192ce: rtl8192ce: Power Save off (module option)
1128-[   11.526222] rtl8192ce: rtl8192ce: FW Power Save off (module option)
1129:[   11.526242] rtl8192ce: Using firmware rtlwifi/rtl8192cfwU_B.bin
1130-[   11.604096] systemd[1]: Received SIGCHLD from PID 137 (systemd-vconsol).
1131-[   11.612617] systemd[1]: Got SIGCHLD for process 137 (systemd-vconsol)
1132-[   11.621165] systemd[1]: Child 137 died (code=exited, status=0/SUCCESS)
1133-[   11.629346] systemd[1]: Child 137 belongs to systemd-vconsole-setup.service
--
1148-[   11.839624] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm)
1149-[   11.855677] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm)
1150-[   11.871911] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm)
1151-[   11.888513] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
1152:[   11.897674] rtlwifi: wireless switch is on
1153-[   11.908296] systemd[1]: sys-subsystem-net-devices-wlan0.device changed dead -> plugged
1154-[   11.911950] input: HDA Intel HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
1155-[   11.913175] input: HDA Intel Front Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
1156-[   11.915407] input: HDA Intel Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input8
--
1577-[   16.885077] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local
1578-[   16.890932] ------------[ cut here ]------------
1579-[   16.890944] WARNING: CPU: 2 PID: 134 at /home/peter/linux/kernel/locking/mutex.c:516 __mutex_lock_slowpath+0x357/0x370()
1580-[   16.890947] DEBUG_LOCKS_WARN_ON(in_interrupt())
1581:[   16.891013] Modules linked in: xt_tcpudp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nf_defrag_ipv6 xt_conntrack nf_conntrack iptable_filter ip6table_filter ip_tables ip6_tables x_tables snd_hda_codec_hdmi arc4 snd_hda_codec_idt snd_hda_codec_generic rtl8192ce(O) rtl_pci(O) gma500_gfx rtlwifi(O) mac80211 snd_hda_intel i2c_algo_bit drm_kms_helper snd_hda_codec snd_hwdep drm cfg80211 snd_pcm snd_timer snd evdev r8169 pcspkr iTCO_wdt i2c_i801 i2c_core iTCO_vendor_support video rfkill rtl8192c_common(O) coretemp microcode lpc_ich rtsx_pci_ms mii memstick soundcore fan processor thermal button ext4 crc16 mbcache jbd2 hid_logitech_dj usbhid hid sd_mod rtsx_pci_sdmmc mmc_core ahci libahci libata scsi_mod ehci_pci uhci_hcd ehci_hcd usbcore usb_common rtsx_pci mfd_core
1582-[   16.891018] CPU: 2 PID: 134 Comm: systemd-journal Tainted: G           O 3.14.0-rc2-custom-00267-g9398a10 #4
1583-[   16.891019] Hardware name: Shuttle Inc. XS36V/XS36V, BIOS 1.11 12/18/2012
1584-[   16.891026]  0000000000000009 ffff88012fd03bf0 ffffffff8146cca0 ffff88012fd03c38
1585-[   16.891030]  ffff88012fd03c28 ffffffff8104c45d ffff880037945818 ffff880037945818
+ lsmod
Module                  Size  Used by
xt_tcpudp               3111  1 
nf_conntrack_ipv6       7995  1 
nf_conntrack_ipv4       7754  1 
nf_defrag_ipv4          1403  1 nf_conntrack_ipv4
nf_defrag_ipv6         25934  1 nf_conntrack_ipv6
xt_conntrack            3265  2 
nf_conntrack           66712  3 xt_conntrack,nf_conntrack_ipv4,nf_conntrack_ipv6
iptable_filter          1488  1 
ip6table_filter         1428  1 
ip_tables              16451  1 iptable_filter
ip6_tables             16160  1 ip6table_filter
x_tables               17522  6 ip6table_filter,ip_tables,xt_tcpudp,xt_conntrack,iptable_filter,ip6_tables
snd_hda_codec_hdmi     36172  1 
arc4                    2000  2 
snd_hda_codec_idt      43450  1 
snd_hda_codec_generic    52827  1 snd_hda_codec_idt
rtl8192ce              73667  0 
rtl_pci                24976  1 rtl8192ce
gma500_gfx            174510  1 
rtlwifi                71601  2 rtl_pci,rtl8192ce
mac80211              490444  3 rtl_pci,rtlwifi,rtl8192ce
snd_hda_intel          34841  0 
i2c_algo_bit            5391  1 gma500_gfx
drm_kms_helper         35572  1 gma500_gfx
snd_hda_codec          98879  4 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_codec_generic,snd_hda_intel
snd_hwdep               5852  1 snd_hda_codec
drm                   237941  2 drm_kms_helper,gma500_gfx
cfg80211              430184  2 mac80211,rtlwifi
snd_pcm                80379  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_timer              18709  1 snd_pcm
snd                    51167  8 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
evdev                  10981  4 
r8169                  58223  0 
pcspkr                  1995  0 
iTCO_wdt                5407  0 
i2c_i801               11109  0 
i2c_core               23780  5 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,gma500_gfx
iTCO_vendor_support     1929  1 iTCO_wdt
video                  11540  1 gma500_gfx
rfkill                 15683  1 cfg80211
rtl8192c_common        55112  1 rtl8192ce
coretemp                6390  0 
microcode              15090  0 
lpc_ich                13368  0 
rtsx_pci_ms             7418  0 
mii                     4027  1 r8169
memstick                7504  1 rtsx_pci_ms
soundcore                944  1 snd
fan                     2785  0 
processor              24170  0 
thermal                 8556  0 
button                  4477  0 
ext4                  481304  4 
crc16                   1359  1 ext4
mbcache                 6074  1 ext4
jbd2                   82736  1 ext4
hid_logitech_dj        10599  0 
usbhid                 40843  0 
hid                    89807  2 usbhid,hid_logitech_dj
sd_mod                 31817  5 
rtsx_pci_sdmmc         13924  0 
mmc_core               95817  1 rtsx_pci_sdmmc
ahci                   23403  4 
libahci                21484  1 ahci
libata                172031  2 ahci,libahci
scsi_mod              132830  2 libata,sd_mod
ehci_pci                3960  0 
uhci_hcd               33795  0 
ehci_hcd               63800  1 ehci_pci
usbcore               180840  4 uhci_hcd,ehci_hcd,ehci_pci,usbhid
usb_common              1648  1 usbcore
rtsx_pci               32831  2 rtsx_pci_ms,rtsx_pci_sdmmc
mfd_core                3249  2 lpc_ich,rtsx_pci
+ sleep 1
+ iwconfig
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on
          
+ sleep 1
+ iw dev wlan0 info
Interface wlan0
	ifindex 3
	wdev 0x1
	addr e0:91:53:XX:XX:XX
	type managed
	wiphy 0
+ sleep 1
+ iw dev wlan0 set channel 2
command failed: Device or resource busy (-16)
+ sleep 1
+ iw dev wlan0 scan
command failed: Network is down (-100)
+ sleep 1
+ ip link set up wlan0
+ sleep 1
+ iw dev wlan0 scan
BSS 48:f9:25:00:01:13(on wlan0)
	TSF: 10820542146 usec (0d, 03:00:20)
	freq: 2472
	beacon interval: 100 TUs
	capability: ESS ShortPreamble ShortSlotTime (0x0421)
	signal: -54.00 dBm
	last seen: 26 ms ago
	Information elements from Probe Response frame:
	SSID: Hermes_Mobile_Hotspot
	Supported rates: 1.0* 2.0 5.5 11.0 
	DS Parameter set: channel 13
+ sleep 1
+ iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: 48:F9:25:00:01:13
                    Channel:13
                    Frequency:2.472 GHz (Channel 13)
                    Quality=56/70  Signal level=-54 dBm  
                    Encryption key:off
                    ESSID:"Hermes_Mobile_Hotspot"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Mode:Master
                    Extra:tsf=0000000284f45ec2
                    Extra: Last beacon: 1943ms ago
                    IE: Unknown: 00154865726D65735F4D6F62696C655F486F7473706F74
                    IE: Unknown: 010482040B16
                    IE: Unknown: 03010D
                    IE: Unknown: DD2A000C42000000011E001000000066160500004C563132333437000000000000000000000000000502A809

+ sleep 1
+ iwconfig wlan0 channel 2
Error for wireless request "Set Frequency" (8B04) :
    SET failed on device wlan0 ; Device or resource busy.
+ sleep 1
+ ip link set down wlan0
+ sleep 1
+ iw dev wlan0 interface add wlan2 type managed
+ sleep 1
+ iwconfig
wlan2     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on
          
eth0      no wireless extensions.

lo        no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Frequency:2.417 GHz  Access Point: Not-Associated   
          Tx-Power=20 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off
          
+ sleep 1
+ iw dev wlan2 set channel 2
command failed: Device or resource busy (-16)
+ sleep 1

real	0m15.794s
user	0m0.137s
sys	0m0.417s

Script done on Thu 06 Mar 2014 02:44:12 PM CET

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux