← Back to team overview

kernel-packages team mailing list archive

[Bug 1461174] Re: Realtek Wifi card rtl8723be [10ec:b723] WiFi has an issue

 

To get the dkms from #20 running on the linux kernel of Vivid, I did the
following changes:

diff -ruN realtek-rtlwifi-0020.1030.2014V676.P1/base.c realtek-rtlwifi-0020.1030.2014V676.P1kai/base.c
--- realtek-rtlwifi-0020.1030.2014V676.P1/base.c        2015-06-09 11:10:51.000000000 +0200
+++ realtek-rtlwifi-0020.1030.2014V676.P1kai/base.c     2015-07-14 19:16:25.519536786 +0200
@@ -2088,7 +2088,7 @@
        unsigned long val;
        int ret;
 
-       ret = strict_strtoul(buf, 0, &val);
+       ret = kstrtoul(buf, 0, &val);
        if (ret) {
                RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG,
                        "%s is not in hex or decimal form.\n", buf);
diff -ruN realtek-rtlwifi-0020.1030.2014V676.P1/btcoexist/halbtc8812a_ext.c realtek-rtlwifi-0020.1030.2014V676.P1kai/btcoexist/halbtc8812a_ext.c
--- realtek-rtlwifi-0020.1030.2014V676.P1/btcoexist/halbtc8812a_ext.c   2015-06-09 11:10:51.000000000 +0200
+++ realtek-rtlwifi-0020.1030.2014V676.P1kai/btcoexist/halbtc8812a_ext.c       2015-07-14 20:11:54.573400292 +0200
@@ -654,12 +654,11 @@
        iov.iov_len      = msg_size;
        udpmsg.msg_name  = &pcoex_info->bt_addr;                                
        udpmsg.msg_namelen      = sizeof(struct sockaddr_in);                   
-       udpmsg.msg_iov   = &iov;                                                
-       udpmsg.msg_iovlen       = 1;                                            
        udpmsg.msg_control      = NULL;                                         
        udpmsg.msg_controllen = 0;                                              
        udpmsg.msg_flags        = MSG_DONTWAIT | MSG_NOSIGNAL;                  
        udpmsg.msg_flags = 0;                                                   
+       iov_iter_init(&udpmsg.msg_iter, WRITE, &iov, 1, msg_size);              
        oldfs = get_fs(); 
        set_fs(KERNEL_DS); 
        error = sock_sendmsg(pcoex_info->udpsock, 
&udpmsg, msg_size);


With these two changes, I was able to compile the kernel modules fine. Fortunately, the modified driver also loads fine after rebooting. And it connects to my company WiFi. But besides than that, the driver doesn't bring any improvement. So WiFi still hangs and the system still crashes after module unload + reload. The crash is even at the same code position:
    halbtc_get_rfreg+0x23/0x30 [btcoexist]
Of course, the exact binary address is different, as the RTL modules from the DKMS are of different size, so loaded to different physical addresses. But the crash still appears at the beginning of the function halbtc_get_rfreg in the module btcoexist.


As "btcoexist" probably means "Bluetooth Co-Exist", I experimented with turning bluetooth completely off via:
    rfkill
    service bluetooth stop
    rmmod everything, that looked like bluetooth
After that, the system no longer crashes after unload and reinsert of the rtl8723be module. So the crash (which still needs to be fixed!) and the WiFi getting stuck might be unrelated.

I did a few more experiments with the "new" driver from post #20 with different access points:
* Connect to a FritzBox 7490 works
* Data transfer to that FritzBox fails from the very beginning, though. Not even a ping goes through. It is the uplink (from the card to the router), that is stuck. On the downlink, I can see broadcast packets coming through.
* Tethering with Moto X (2nd gen.) completely fails. It doesn't even see the Moto X2. This is weird, because with the stock driver of the stock kernel of Ubuntu Vivid, that tethering works at least in the beginning (until the connection gets blocked).
* After changing the broadcast channel in the X2 to 5 GHz then back to 2.4 GHz, it now sees the X2. Downlink and uplink speed are fine.
* Tethering with a Nokia 820 works, too. I could even got a remarkable number of 50 MBit/s for downlink speed, despite that the W-LAN connection lists 72.2 MBit/s as max. speed.


I'll continue tethering with these mobile phones to see

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1461174

Title:
  Realtek Wifi card rtl8723be [10ec:b723] WiFi has an issue

Status in HWE Next:
  Triaged
Status in linux package in Ubuntu:
  Confirmed

Bug description:
  My WiFi has an issue.

  ---
  ApportVersion: 2.14.1-0ubuntu3.7
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  u          1785 F.... pulseaudio
   /dev/snd/controlC0:  u          1785 F.... pulseaudio
  DistroRelease: Ubuntu 14.04
  HibernationDevice: RESUME=UUID=c2a5715c-c92c-47fa-9aa2-c6f6e03f21bf
  InstallationDate: Installed on 2015-06-09 (0 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
  MachineType: Hewlett-Packard HP 455 G2
  Package: linux (not installed)
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.16.0-30-generic root=UUID=97d2645a-a2be-49ec-b1bd-37c43ab4eeb1 ro quiet splash vt.handoff=7
  ProcVersionSignature: Ubuntu 3.16.0-30.40~14.04.1-generic 3.16.7-ckt3
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-3.16.0-30-generic N/A
   linux-backports-modules-3.16.0-30-generic  N/A
   linux-firmware                             1.127.11
  Tags:  trusty
  Uname: Linux 3.16.0-30-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

  _MarkForUpload: True
  dmi.bios.date: 07/25/2014
  dmi.bios.vendor: Hewlett-Packard
  dmi.bios.version: M75 Ver. 01.06
  dmi.board.asset.tag: Base Board Asset Tag
  dmi.board.name: 2235
  dmi.board.vendor: Hewlett-Packard
  dmi.board.version: KBC Version 66.19
  dmi.chassis.asset.tag: 73612P10CU
  dmi.chassis.type: 10
  dmi.chassis.vendor: Hewlett-Packard
  dmi.modalias: dmi:bvnHewlett-Packard:bvrM75Ver.01.06:bd07/25/2014:svnHewlett-Packard:pnHP455G2:pvrA3009CD10002:rvnHewlett-Packard:rn2235:rvrKBCVersion66.19:cvnHewlett-Packard:ct10:cvr:
  dmi.product.name: HP 455 G2
  dmi.product.version: A3009CD10002
  dmi.sys.vendor: Hewlett-Packard

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1461174/+subscriptions


References