based on dragonflybsd commit 0ce37bc4c6e593a32c291a336cded0c296f4f50b, de5b132c392d22d8b31019edfc45586208765554
tested on Lenovo X1 Carbon 2017
tested at office and in the airport (key_mgmt is NONE): works fine
tested at home (key_mgmt is WPA-PSK): controller panicked
Unit Tests Skipped
I can't do a code review but I can confirm it works - currently writing this comment using it :-)
iwm0: <Intel(R) Dual Band Wireless AC 8265> mem 0xdc200000-0xdc201fff at device 0.0 on pci2 iwm0: hw rev 0x230, fw ver 22.361476.0, address 00:28:f8:d0:91:52 iwm0: iwm_update_edca: called
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:28:f8:d0:91:52 inet6 fe80::228:f8ff:fed0:9152%wlan0 prefixlen 64 scopeid 0x2 inet 172.16.2.15 netmask 0xffffff00 broadcast 172.16.2.255 nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g status: associated ssid skunkwerks channel 6 (2437 MHz 11g) bssid 80:2a:a8:84:e2:a3 regdomain ETSI country AT authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 10 scanvalid 60 protmode CTS wme roaming MANUAL groups: wlan
I'll give you an update in a couple of days using this, let me know if there's any specific info you want.
h/w is a Kabylake Dell XPS13 running drm-next and D10597 patch.
Bumping to latest freebsd-desktop/drm-next branch I get the following failure:
Building /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/iwm/if_iwm.o Building /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/isci/sati_test_unit_ready.o Building /usr/obj/usr/src/sys/GENERIC/ar9300_stub.o Building /usr/obj/usr/src/sys/GENERIC/modules/usr/src/sys/modules/isci/sati_unmap.o /usr/src/sys/dev/iwm/if_iwm.c:5439:8: error: duplicate case value 'IWM_DEBUG_LOG_MSG' case IWM_DEBUG_LOG_MSG: ^ /usr/src/sys/dev/iwm/if_iwm.c:5435:8: note: previous case defined here case IWM_DEBUG_LOG_MSG: ^ 1 error generated. --- if_iwm.o --- *** [if_iwm.o] Error code 1
I think this is a conflict with "[iwm] Ignore IWM_DEBUG_LOG_MSG notifications." https://github.com/skunkwerks/freebsd/commit/f5210630304b98d8e16185c4737b9f1d04968488
This diff seems to fix it:
Author: Dave Cottlehuber <email@example.com> Date: Wed Jun 14 04:44:22 2017 +0000 iwm: fix conflicting diff diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 9b490b303d6e..619a4b1ea2d0 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -5432,9 +5432,6 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) * Firmware versions 21 and 22 generate some DEBUG_LOG_MSG * messages. Just ignore them for now. */ - case IWM_DEBUG_LOG_MSG: - break; - case IWM_MCAST_FILTER_CMD: case IWM_DEBUG_LOG_MSG: break;
Could you explain how you did that ? I'm new to the FreeBSD world, I come from GNU/Linux, and I've got the same issue. My laptop, Xiaomi Notebook Pro only got a wireless card, the intel 8265... I've installed FreeBSD, and I gotta patch it to get internet.
Hallo Guilllaume, welcome to FreeBSD :-)
You'll need to run FreeBSD-12.0-current which is the unreleased "latest kernel and world" version to get this device support. This might be a bigger step than what you're ready for right now, https://lists.freebsd.org/pipermail/freebsd-questions/2018-April/281496.html has my comments for another user already in it.
You might want to give trueos.org a quick try to see if your device is supported already there, it is a desktop "spin" of FreeBSD current but still using the same code/drivers already in FreeBSD 12.0-CURRENT, but with a few other differences. It's a good place to get started.
If you have further questions, just continue the conversation on the mailing list, I'll try to answer them there.