Results 1 to 4 of 4

Thread: Mac book pro mid 2011 wifi unstable and debugging process

  1. #1
    Join Date
    2016-Nov
    Posts
    3

    Mac book pro mid 2011 wifi unstable and debugging process

    Hi

    I'm new on linux and would like to improve my skills by learning how to solve my own problems.

    This post is intended for 2 goals :
    1. Validate the process of debugging/searching for problems (where to find logs/trace ? )
    2. Help to solve this problem


    Here we are !

    After installing Kali 2.0 os on a mac book pro mid 2011, my wifi connection is unstable (disconnecting after few minutes of use).

    0. uname -a :
    Code:
    Linux centre 4.7.0-kali1-amd64 #1 SMP Debian 4.7.8-1kali1 (2016-10-24) x86_64 GNU/Linux

    1. Check wifi material :
    Code:
    lspci | grep Netw :
    		03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
    2. Check firmware :
    Code:
    lsmod | grep 802 :
    		cfg80211              569344  2 b43,rndis_wlan
    		rfkill                 24576  4 cfg80211,bluetooth
    3. Check iwconfig :
    Code:
    eth0      no wireless extensions.
    
    	wlan0     IEEE 802.11  ESSID:off/any  
    		  Mode:Managed  Access Point: Not-Associated   Tx-Power=off   
    		  Retry short limit:7   RTS thr:off   Fragment thr:off
    		  Encryption key:off
    		  Power Management:off
    		  
    	lo        no wireless extensions.
    4. Check rfkill - rfkill list all :
    Code:
    0: hci0: Bluetooth
    		Soft blocked: no
    		Hard blocked: no
    	1: phy0: Wireless LAN
    		Soft blocked: no
    		Hard blocked: no
    5. airmon-ng --verbose

    Code:
    X[PHY]Interface		Driver[Stack]-FirmwareRev		Chipset										Extended Info
    
    	?[phy0]wlan0		wl[mac80211]-unavailable		Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)				Experimental monitor mode support


    By googling around "Broadcom Corporation BCM4331", I removed b43 driver for wl one by following https://wiki.debian.org/fr/wl.
    Now :
    Code:
    lsmod | grep 802 :
    		cfg80211              569344  2 wl,rndis_wlan
    		rfkill                     24576  4 cfg80211,bluetooth

    Code:
    lspci -v -nn:
    		03:00.0 Network controller [0280]: Broadcom Corporation BCM4331 802.11a/b/g/n [14e4:4331] (rev 02)
    			Subsystem: Apple Inc. AirPort Extreme [106b:00d6]
    			Flags: bus master, fast devsel, latency 0, IRQ 17
    			Memory at a0600000 (64-bit, non-prefetchable) [size=16K]
    			Capabilities: [40] Power Management version 3
    			Capabilities: [58] Vendor Specific Information: Len=78 <?>
    			Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
    			Capabilities: [d0] Express Endpoint, MSI 00
    			Capabilities: [100] Advanced Error Reporting
    			Capabilities: [13c] Virtual Channel
    			Capabilities: [160] Device Serial Number 47-14-da-ff-ff-ef-28-cf
    			Capabilities: [16c] Power Budgeting <?>
    			Kernel driver in use: wl
    			Kernel modules: bcma, wl

    But wifi connection still unstable.

    Last track, checking dmesg shows :
    Code:
    [  269.944983] ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22)
    [  303.503971] ------------[ cut here ]------------
    [  303.504058] WARNING: CPU: 2 PID: 475 at /build/linux-hIes2R/linux-4.7.8/net/wireless/sme.c:878 wl_notify_roaming_status+0xb6/0x130 [wl]
    [  303.504061] Modules linked in: fuse nfnetlink_queue nfnetlink_log nfnetlink binfmt_misc intel_rapl snd_hda_codec_hdmi wl(PO) snd_hda_codec_cirrus snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass uvcvideo applesmc videobuf2_vmalloc videobuf2_memops iTCO_wdt videobuf2_v4l2 iTCO_vendor_support videobuf2_core joydev videodev input_polldev btusb evdev btrtl btbcm btintel bluetooth bcm5974 media cfg80211 rfkill pcspkr acpi_als i2c_i801 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_timer kfifo_buf thunderbolt sg snd i915 ac sbs sbshc industrialio apple_gmux apple_bl video drm_kms_helper shpchp battery mei_me mei soundcore drm button i2c_algo_bit lpc_ich mfd_core tpm_tis tpm ip_tables x_tables autofs4 ext4 ecb crc16 jbd2 crc32c_generic mbcache
    [  303.504134]  sr_mod cdrom sd_mod ata_generic hid_generic hid_apple hid_appleir usbhid hid crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel jitterentropy_rng sha256_ssse3 sha256_generic hmac drbg ansi_cprng aesni_intel ata_piix libata aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd tg3 firewire_ohci scsi_mod uhci_hcd ehci_pci ptp pps_core ehci_hcd libphy sdhci_pci sdhci firewire_core crc_itu_t mmc_core usbcore usb_common fjes
    [  303.504178] CPU: 2 PID: 475 Comm: wl_event_handle Tainted: P           O    4.7.0-kali1-amd64 #1 Debian 4.7.8-1kali1
    [  303.504181] Hardware name: Apple Inc. MacBookPro8,1/Mac-94245B3640C91C81, BIOS    MBP81.88Z.0047.B2C.1510261540 10/26/15
    [  303.504184]  0000000000000286 00000000065efa72 ffffffffacb10025 0000000000000000
    [  303.504189]  0000000000000000 ffffffffac878b5e ffff8800361dd720 ffff880168da8894
    [  303.504194]  ffff8800361ddf3a ffff880168e64000 ffff8800361ddb18 ffff88016fa16d80
    [  303.504198] Call Trace:
    [  303.504208]  [<ffffffffacb10025>] ? dump_stack+0x5c/0x77
    [  303.504215]  [<ffffffffac878b5e>] ? __warn+0xbe/0xe0
    [  303.504272]  [<ffffffffc0dc99d6>] ? wl_notify_roaming_status+0xb6/0x130 [wl]
    [  303.504326]  [<ffffffffc0dc90a8>] ? wl_event_handler+0x58/0x1a0 [wl]
    [  303.504379]  [<ffffffffc0dc9050>] ? wl_notify_scan_status+0x310/0x310 [wl]
    [  303.504383]  [<ffffffffac89753d>] ? kthread+0xcd/0xf0
    [  303.504389]  [<ffffffffacdcd4ef>] ? ret_from_fork+0x1f/0x40
    [  303.504393]  [<ffffffffac897470>] ? kthread_create_on_node+0x190/0x190
    [  303.504396] ---[ end trace 60704ef01da55d41 ]---
    [  305.989415] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14   profile =40:18:b1:d9:39:14
    [  305.989572] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14   profile =40:18:b1:d9:39:14
    ...
    [ 1221.743947] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5c:d4   profile =40:18:b1:d9:39:28
    [ 1221.744022] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5c:d4   profile =40:18:b1:d9:39:28
    [ 2443.402950] ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22)
    [ 2468.551105] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2469.604226] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2470.687037] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2477.904105] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2479.219841] ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22)
    [ 2484.300373] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2485.301588] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2554.018913] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2556.035832] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 2557.130612] ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22)
    [ 2562.132768] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    ...
    [ 3475.908684] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
    [ 4032.638862] perf: interrupt took too long (2525 > 2500), lowering kernel.perf_event_max_sample_rate to 79000

    We can see 2 kinds of error :
    Code:
    1. [  303.504198] Call Trace:
    	   [  303.504208]  [<ffffffffacb10025>] ? dump_stack+0x5c/0x77
    		...
    	
    	2. ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)

    What does it means ?
    Is there other trace/log files where I can get interesting information to help debugging ?



    Thanks you all for your help.

  2. #2
    Join Date
    2016-Nov
    Posts
    3
    I installed backbox (ubuntu) in dual boot to see if the problem is still here.

    By authorising the "broadcom 80211 STA wireless driver source from bcmwl-kernel-source (proprietary)" driver, my wifi is very stable.

    What is the equivalent of this package on Kali ?

    Thanks you for your help

  3. #3
    Join Date
    2013-May
    Posts
    9
    I have the same problem. Always had this issue with my MacBook. I run on live USB. I have been unable to fix the issue either. And I've used different USB sticks and Many different Kali versions over the years. The work around I use is using an external card to get internet access. Then I use the internal card for monitor mode only. If someone figures this out it would be great as my method sucks up one extra USB port.
    Last edited by jermzz; 2016-11-05 at 18:52.

  4. #4
    Join Date
    2016-Nov
    Posts
    3
    Thx @jermzz.

    Just try to install another distribution (backbox) and no problem with my wifi.

    I learned that each distribution can modify linux kernel for their need. This problem seems to be kali specific.

    Somebody can guide us to debug this stuff ?

Similar Threads

  1. Replies: 6
    Last Post: 2023-03-04, 15:17
  2. Very unstable WiFi (Toshiba Satellite C670D with RTL8188CE)
    By Y4kuzi in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-04-28, 17:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •