After upgrading to 11.0-RELEASE wlan0 is not working (NO CARRIER) after laptop is suspended. Can be fixed by adding this to /etc/rc.resume:
service netif restart
It was working fine on 10.2-RELEASE.
My laptop is Thinkpad T400, using iwn driver for wireless.
It appears I was too quick with a fix, I apologize. The issue seems to be chaotic.
Can you attach `dmesg` output before suspend/after resume with 'wlandebug -i wlan0 state+auth+assoc' set (before suspend)?
My hardware and experience are both different; whether one has a significant effect on the other, I don't know.
Summary: I don't see the problem.
Information on my laptop may be found at <https://wiki.freebsd.org/Laptops/Dell_Precision_M4800?highlight=(\bCategoryLaptop\b)>. As noted there, I field-replaced the Broadcom wireless/Bluetooth card (which was apparently not supported) with the Intel WiFi Link 5100 that I pulled out of my previous laptop (Dell M4400).
Further, I have (also) been tracking head on the same laptop (on a different slice of the boot drive). Once stable/11 was branched, I copied the head slice's / and /usr file systems to a 3rd slice, then used "svn switch" to update that slice's /usr/src from head to stable/11; I have been tracking head, stable/11, and stable/10 daily on the m4800 since.
While I have had issues with suspend/resume (e.g., a recent update to x11/nvidia/driver appears to have broken resume for me until I switched from x11/nvidia-driver to x11/nvidia-driver-340), I do not recall ever having an issue with iwn/wlan0 failing to work on resume. (And yes, I do exercise suspend/resume: I suspend the laptop before getting on my bike to get to the shuttle stop, resume once on shuttle (and use wireless to access the Internet), then suspend again once we reach work (before I stuff the laptop back in my backpack), then resume again once I'm at my desk.)
And for the past 3 weeks or so, I've been running stable/11 on the laptop Monday - Friday.
Dobry den, Andriy,
My FreeBSD installation is totally broken after the upgrade to 11. My chromium segfaults when I try to attach files here, and firefox won't start because it complains on an undefined symbol in libgiofam (thunderbird and any other gtk based stuff won't start as well, and yes, I did full pkg upgrade -f).
It appears I will need to spend some time fixing that until I can attach files here.
By the way, this time suspend/resume worked fine for probably 8 times in a row, however, each time it took progressively longer to associate. However, my laptop was unable to associate after reboot. I've had to do "service netif restart" manually after the boot to get it online.
Created attachment 175963 [details]
dmesg before netif restart, after successful boot, no Wi-fi
Created attachment 175964 [details]
dmesg after netif restart
For some reason resume worked fine and I couldn't capture dmesg, however, I didn't have Wi-Fi straight after the next reboot. dmesg output attached.
Created attachment 175965 [details]
Try to fix device timeouts after AUTH -> AUTH state transition
Created attachment 175966 [details]
Fix possible driver hang (see r305745)
Try to apply both (first may fix device timeout's, second should fix automatic interface restart).
Created attachment 175967 [details]
my if_iwn.c before patching
It appears my if_iwn.c is different from yours.
Yes, it is from CURRENT (but this code path was not modified and patches should apply anyway).
Patched, but can't rebuild kernel: it can't find find dev/drm2/i915/intel_bios.h (fatal error when including from i915_drv.h) The file simply isn't there, although I have the .c file. :-(
OK, patched (had to grab that header file from GitHub), installed new kernel, still Wi-Fi not working after resume. Had to do service netif restart about 8 times to get it working. Attaching another dmesg.
Created attachment 175969 [details]
dmesg after patching, Wi-Fi not working after resume
wlandebug -i wlan0 state+auth+assoc+scan ?
Created attachment 175978 [details]
dmesg (patched kernel) before suspend
Created attachment 175979 [details]
dmesg (patched kernel) after resume
Here you go.
Is it reproducible when HT is disabled? (create_args_wlan0="-ht")
It appears to work absolutely fine with that line.
So disabling 11n fixes it? Hm, it shouldn't break association.
oooh, can you uhm, 'ifconfig -v wlan0' before you do stuff, and when it's working, and when it's not ? I'd like to see if this is another one of those "interface media type is out of whack and net80211 scan/association logic starts thinking things aren't useful" bugs. :(