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 (Debian like) on a mac book pro mid 2011, my wifi connection is unstable (just disconnecting after few minutes of use).
0. uname -a :
Code: Select all
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: Select all
lspci | grep Netw :
03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
Code: Select all
lsmod | grep 802 :
cfg80211 569344 2 b43,rndis_wlan
rfkill 24576 4 cfg80211,bluetooth
Code: Select all
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.
Code: Select all
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
By googling around "Broadcom Corporation BCM4331", I removed b43 driver for wl one by following https://wiki.debian.org/fr/wl.
Now :
Code: Select all
lsmod | grep 802 :
cfg80211 569344 2 wl,rndis_wlan
rfkill 24576 4 cfg80211,bluetooth
Code: Select all
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: Select all
[ 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
[ 311.993095] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 311.993112] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 317.992850] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 317.992896] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 323.993357] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 323.993390] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 329.646161] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 329.646247] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:5e:14 profile =40:18:b1:d9:39:14
[ 372.556497] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:d9:5c:d4
[ 372.556546] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:d9:5c:d4
[ 377.990912] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:d9:5c:d4
[ 377.990993] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:d9:5c:d4
[ 621.587423] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:da:f6:d4
[ 621.587549] ERROR @wl_cfg80211_get_station : Wrong Mac address, mac = 40:18:b1:d9:39:28 profile =40:18:b1:da:f6:d4
[ 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)
[ 2471.688310] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2472.780833] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2473.782301] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2474.783627] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2475.892460] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2476.902798] 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)
[ 2486.302749] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2487.396088] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2488.402449] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2489.403534] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2493.934298] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2494.088266] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2495.089445] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2496.090597] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2497.183294] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2498.194646] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2499.195876] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2500.300470] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2501.301847] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2518.934229] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2521.988286] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2525.724866] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2526.784021] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2527.901427] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2528.910466] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2550.972215] 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)
[ 2563.141264] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2564.142946] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2565.218074] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2566.219807] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2567.221523] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2589.329137] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2590.385305] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2591.465289] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2614.255702] ERROR @wl_cfg80211_scan : WLC_SCAN error (-22)
[ 2616.952987] 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: Select all
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