iwm drives does not work for Intel Wireless-AC 3165

Sebastian Schwarz seschwar at gmail.com
Sat Nov 25 19:01:26 UTC 2017

On 2017-11-25, DTD wrote:
> My laptop is a Lenovo ideapad 700. Windows shows 4 networking devices: Intel
> wireless bluetooth, Intel blue tooth RFCOMM TDI, Intel Dual Band Wireless-AC
> 3165, Realtek PCIe GBE controller. I got this system because as of 10.3 FreeBSD
> had support for Wireless-AC 3165.
> uname -a
> FreeBSD mneme.boltsys.com 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14
> 06:12:40 UTC 2017 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
> pciconf -lv
> pcib1 at pci0:0:1:0:       class=0x060400 card=0x380a17aa chip=0x19018086 rev=0x07
> hdr=0x01
>      vendor     = 'Intel Corporation'
>      device     = 'Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)'
>      class      = bridge
>      subclass   = PCI-PCI
> none5 at pci0:2:0:0:       class=0x028000 card=0x42108086 chip=0x31668086 rev=0x99 hdr=0x00
>      vendor     = 'Intel Corporation'
>      device     = 'Dual Band Wireless-AC 3165 Plus Bluetooth'
>      class      = network
> re0 at pci0:3:0:0: class=0x020000 card=0x004717aa chip=0x816810ec rev=0x15 hdr=0x00
>      vendor     = 'Realtek Semiconductor Co., Ltd.'
>      device     = 'RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller'
>      class      = network
>      subclass   = ethernet
> I think the none5@ means the iwm driver does not support this card. I had added
> the following to /boot/loader.conf:
>     if_iwm_load="YES"
>     iwm3160fw_load="YES"
>     iwm7260fw_load="YES"
>     iwm7265fw_load="YES"
>     iwm8000Cfw_load="YES"
> On the next boot that got:
>     rgephy0: <RTL8251 1000BASE-T media interface> PHY 1 on miibus0
>     rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
>       100baseTX-FDX, 100baseTX-FDX-flow, 1000ba seT-FDX, 1000baseT-FDX-master,
>       1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
> This I think is an error as RGEPHY(4): rgephy - RealTek RTL8168/8169/8110/8211
> series 10/100/1000 Gigabit Ethernet PHY driver. It should be iwm0 I would think.
> Anyway it can not be configured.
> ifconfig rgephy0 add inet netmask
> ifconfig: interface rgephy0 does not exist
> ifconfig wlan create wlandev inet netmask
> ifconfig: SIOCIFCREATE2: Device not configured

You have to create the WLAN interface from the actual wlan

# ifconfig wlan0 create wlandev rgephy0

> ifconfig wlan create rgephy0 inet netmask
> ifconfig: must specify a parent device (wlandev) when creating a wlan device
> ifconfig wlan create wlandev rgephy0 inet netmask
> ifconfig: SIOCIFCREATE2: Device not configured
> It seems to be an Intel design requirement to add stuff to invalidate FreeBSD
> wireless support. I think FreeBSD 7 or earlier was the last time wifi worked for
> me. Anyone know if there are plans to support any of the usb wireless devices?
> _____
> Douglas Denault
> http://www.safeport.com
> support at safeport.com
> Voice: 301-217-9220
>    Fax: 301-217-9277
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

Unfortunately the Handbook is not as clear on the WLAN setup as
it could be.  It took me a few hours to realize iwn0 wasn't
meant to show up in ifconfig's output.

After the drivers have attached you can list the available WLAN
devices using the command "sysctl net.wlan.devices":

# sysctl net.wlan.devices
net.wlan.devices: iwn0

You then have to create the actual WLAN interface from it:

# ifconfig wlan0 create wlandev iwn0
# ifconfig wlan0 up

Now run wpa_supplicant to associate it with an access point:

# wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 -P /var/run/wpa_supplicant/wlan0.pid

Then configure its IP address either statically:

# ifconfig wlan0 inet

or dynamically:

# dhclient wlan0


More information about the freebsd-questions mailing list