Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470236 - Wireless card RTL8188CE not working with kernel 3.8.13 driver
Summary: Wireless card RTL8188CE not working with kernel 3.8.13 driver
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: Use nl80211 driver and net-wireless/iw.
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-18 09:42 UTC by Drag0n
Modified: 2013-06-26 21:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
It's my kernel config (config,85.30 KB, text/x-mpsub)
2013-06-06 20:35 UTC, Drag0n
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Drag0n 2013-05-18 09:42:17 UTC
Device:
Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec:8178] (rev 01)
Subsystem: ASUSTeK Computer Inc. Device [1043:84b6]
Kernel driver in use: rtl8192ce
Kernel modules: rtl8192ce

Kernel configuration:
CONFIG_RTL8192CE=m
CONFIG_RTLWIFI=m
CONFIG_RTLWIFI_DEBUG=y
CONFIG_RTL8192C_COMMON=m

I have installed sys-kernel/linux-firmware-20120924

I see in dmesg when module loaded:

[  310.235813] rtl8192ce:_rtl92ce_read_chip_version():<0-0> Chip Version ID: B_CHIP_92C
[  310.245849] rtl8192ce: Using firmware rtlwifi/rtl8192cfw.bin
[  310.311764] ieee80211 phy0: Selected rate control algorithm 'rtl_rc'
[  310.311889] rtlwifi: wireless switch is on
[  310.337108] systemd-udevd[5914]: renamed network interface wlan0 to wlan2
[  340.986913] IPv6: ADDRCONF(NETDEV_UP): wlan2: link is not ready
[  592.544186] forcedeth 0000:00:12.0: irq 43 for MSI/MSI-X
[  592.544207] forcedeth 0000:00:12.0 eth2: MSI enabled
[ 2094.776591] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[ 3453.195094] rtl8192ce:_rtl92ce_read_chip_version():<0-0> Chip Version ID: B_CHIP_92C
[ 3453.205724] rtl8192ce: Using firmware rtlwifi/rtl8192cfw.bin
[ 3453.205793] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[ 3453.205921] rtlwifi: wireless switch is on
[ 3453.214131] systemd-udevd[9221]: renamed network interface wlan0 to wlan2


I see modinfo:
homepc linux # modinfo rtl8192ce
filename:       /lib/modules/3.8.13-gentoo/kernel/drivers/net/wireless/rtlwifi/rtl8192ce/rtl8192ce.ko
firmware:       rtlwifi/rtl8192cfwU_B.bin
firmware:       rtlwifi/rtl8192cfwU.bin
firmware:       rtlwifi/rtl8192cfw.bin
description:    Realtek 8192C/8188C 802.11n PCI wireless
license:        GPL
author:         Larry Finger	<Larry.Finger@lwfinger.net>
author:         Realtek WlanFAE	<wlanfae@realtek.com>
author:         lizhaoming	<chaoming_li@realsil.com.cn>
alias:          pci:v000010ECd00008176sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008177sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008178sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008191sv*sd*bc*sc*i*
depends:        rtlwifi,rtl8192c-common
intree:         Y
vermagic:       3.8.13-gentoo SMP mod_unload 686 
parm:           swenc:Set to 1 for software crypto (default 0)
 (bool)
parm:           ips:Set to 0 to not use link power save (default 1)
 (bool)
parm:           swlps:Set to 1 to use SW control power save (default 0)
 (bool)
parm:           fwlps:Set to 1 to use FW control power save (default 1)
 (bool)
parm:           debug:Set debug level (0-5) (default 0) (int)



Reproducible: Always

Actual Results:  
homepc linux # iwconfig 
sit0      no wireless extensions.
wlan2     no wireless extensions.
lo        no wireless extensions.
eth2      no wireless extensions.
eth3      no wireless extensions.

iwlist wlan2 scan
wlan2     Interface doesn't support scanning.

/etc/init.d/wpa_supplicant start
wpa_supplicant           | * Starting WPA Supplicant Daemon ...
wpa_supplicant           |Initializing interface 'wlan2' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
wpa_supplicant           |Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf'
wpa_supplicant           |Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
wpa_supplicant           |ctrl_interface='/var/run/wpa_supplicant'
wpa_supplicant           |update_config=1
wpa_supplicant           |Line: 4 - start of a new network block
wpa_supplicant           |ssid - hexdump_ascii(len=6):
wpa_supplicant           |     44 72 61 67 30 6e                                 Drag0n          
wpa_supplicant           |scan_ssid=1 (0x1)
wpa_supplicant           |PSK (ASCII passphrase) - hexdump_ascii(len=9): [REMOVED]
wpa_supplicant           |key_mgmt: 0x3
wpa_supplicant           |group: 0x18
wpa_supplicant           |pairwise: 0x18
wpa_supplicant           |PSK (from passphrase) - hexdump(len=32): [REMOVED]
wpa_supplicant           |Priority group 0
wpa_supplicant           |   id=0 ssid='Drag0n'
wpa_supplicant           |WEXT: cfg80211-based driver detected
wpa_supplicant           |ioctl[SIOCSIWPMKSA]: Invalid argument
wpa_supplicant           |ioctl[SIOCSIWMODE]: Invalid argument
wpa_supplicant           |Could not configure driver to use managed mode
wpa_supplicant           |ioctl[SIOCGIWRANGE]: Invalid argument
wpa_supplicant           |ioctl[SIOCGIWMODE]: Invalid argument
wpa_supplicant           |ioctl[SIOCSIWAP]: Invalid argument
wpa_supplicant           |WEXT: Failed to clear to disconnect
wpa_supplicant           |netlink: Operstate: linkmode=1, operstate=5
wpa_supplicant           |WEXT: SIOCSIWAUTH(param 7 value 0x1) failed: Invalid argument)
wpa_supplicant           |Own MAC address: 54:04:a6:df:e9:1c
wpa_supplicant           |wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_supplicant           |ioctl[SIOCSIWENCODEEXT]: Invalid argument
wpa_supplicant           |Driver did not support SIOCSIWENCODEEXT
wpa_supplicant           |wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_supplicant           |ioctl[SIOCSIWENCODEEXT]: Invalid argument
wpa_supplicant           |Driver did not support SIOCSIWENCODEEXT
wpa_supplicant           |wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_supplicant           |ioctl[SIOCSIWENCODEEXT]: Invalid argument
wpa_supplicant           |Driver did not support SIOCSIWENCODEEXT
wpa_supplicant           |wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_supplicant           |ioctl[SIOCSIWENCODEEXT]: Invalid argument
wpa_supplicant           |Driver did not support SIOCSIWENCODEEXT
wpa_supplicant           |wpa_driver_wext_set_countermeasures
wpa_supplicant           |WEXT: SIOCSIWAUTH(param 4 value 0x0) failed: Invalid argument)
wpa_supplicant           |RSN: flushing PMKID list in the driver
wpa_supplicant           |ioctl[SIOCSIWPMKSA]: Invalid argument
wpa_supplicant           |Setting scan request: 0 sec 100000 usec
wpa_supplicant           |EAPOL: SUPP_PAE entering state DISCONNECTED
wpa_supplicant           |EAPOL: Supplicant port status: Unauthorized
wpa_supplicant           |EAPOL: KEY_RX entering state NO_KEY_RECEIVE
wpa_supplicant           |EAPOL: SUPP_BE entering state INITIALIZE
wpa_supplicant           |EAP: EAP entering state DISABLED
wpa_supplicant           |EAPOL: Supplicant port status: Unauthorized
wpa_supplicant           |EAPOL: Supplicant port status: Unauthorized
wpa_supplicant           |Added interface wlan2
wpa_supplicant           |Daemonize..                 

And wifi not working                        


Expected Results:  
Wifi work fine

emerge --info
Portage 2.1.11.62 (default/linux/x86/13.0/desktop/gnome, gcc-4.5.4, glibc-2.15-r3, 3.8.13-gentoo i686)
=================================================================
System uname: Linux-3.8.13-gentoo-i686-Intel-R-_Core-TM-2_Duo_CPU_E8600_@_3.33GHz-with-gentoo-2.2
KiB Mem:     3107876 total,   1568904 free
KiB Swap:    1049324 total,   1049324 free
Timestamp of tree: Fri, 17 May 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gnome kde
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.3 PUEL"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.kiev.ua/ftp/ ftp://gentoo.kiev.ua/ http://portage.org.ua/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gnome /var/lib/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa avermedia bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr ce2 cleartype cli colord consolekit cracklib crypt cups custom-optimization cxx dbus directfb dri dts dvd dvdr eds emboss emerald encode evo exif fam fbcon fbcondecor fbdev fbsplash firefox flac fortran gconf gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv ipv6 java jpeg jpeg2k lcms libnotify libsecret lm_sensors lzma mad mmx mmxext mng modules mp3 mp4 mpeg mudflap mysql nautilus ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support rdesktop readline remote sdl session socialweb spell sqlite sse sse2 ssl ssse3 startup-notification svg symlink tcpd threads tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis wifi wxwidgets x264 x86 xcb xml xulrunner xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" LIRC_DEVICES="avermedia" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


uname -a
Linux homepc 3.8.13-gentoo #3 SMP Sat May 18 11:26:04 EEST 2013 i686 Intel(R) Core(TM)2 Duo CPU E8600 @ 3.33GHz GenuineIntel GNU/Linux
Comment 1 Mike Pagano gentoo-dev 2013-06-06 00:14:17 UTC
Attach your .config, please
Comment 2 Drag0n 2013-06-06 20:35:28 UTC
Created attachment 350306 [details]
It's my kernel config

Added
Comment 3 Drag0n 2013-06-25 22:12:49 UTC
Mike, do you have any news for me?
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-26 15:58:37 UTC
I'm not sure whether he has a better idea in mind, but could you try the cfg80211 driver instead of wext? Momentarily I see mentions of 'default' and 'WEXT' so I think it is not using cfg80211 at the moment.

http://wireless.kernel.org/en/developers/Documentation/nl80211
Comment 5 Drag0n 2013-06-26 18:45:50 UTC
Congratulation! )) Problem solved! But partial. I change in /etc/conf.d/net parameter for launch wpa_supplicant. I change type of driver from -Dcfg80211 to -Dnl80211. And up wireless network. Network interface have IP address and ping google.com successful. 

But 
iwconfig report for this interface "no wireless extensions"
iwlist wlan2 scan say "interface doesn't support scanning"

Whose problem is it?
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-26 19:39:49 UTC
(In reply to Drag0n from comment #5)
> Congratulation! )) Problem solved! But partial. I change in /etc/conf.d/net
> parameter for launch wpa_supplicant. I change type of driver from -Dcfg80211
> to -Dnl80211. And up wireless network. Network interface have IP address and
> ping google.com successful. 

Yes, indeed the driver is named nl80211 instead of cfg80211; good find.

> But 
> iwconfig report for this interface "no wireless extensions"
> iwlist wlan2 scan say "interface doesn't support scanning"
> 
> Whose problem is it?

Does using net-wireless/iw (http://wireless.kernel.org/en/users/Documentation/iw) instead work? Same story as above. :)
Comment 7 Drag0n 2013-06-26 21:15:35 UTC
Thank you, Tom, for your advice! I try this command:
iw dev wlan2 scan
iw dev wlan2 link
iw dev wlan2 station dump
iw dev wlan2 get power_save

Work fine.
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-26 21:59:51 UTC
Sounds good; marking this bug OBSOLETE as the bug is regarding the older wext and net-wireless/wireless-tools, I'm not sure whether this is worth fixing or possible to reasonably fix it for those. People can use nl80211 and net-wireless/iw; if not, I expect them to let us know... :)