Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Nov 2017 20:01:22 +0100
From:      Sebastian Schwarz <seschwar@gmail.com>
To:        DTD <support@safeport.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: iwm drives does not work for Intel Wireless-AC 3165
Message-ID:  <873752ji7x.fsf@domain.invalid>
In-Reply-To: <alpine.BSF.2.00.1711251316400.72866@bucksport.safeport.com>
References:  <alpine.BSF.2.00.1711251316400.72866@bucksport.safeport.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>
> pciconf -lv
> pcib1@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@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@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 192.168.2.124 netmask 255.255.255.0
> ifconfig: interface rgephy0 does not exist
>
> ifconfig wlan create wlandev inet 192.168.2.124 netmask 255.255.255.0
> ifconfig: SIOCIFCREATE2: Device not configured

You have to create the WLAN interface from the actual wlan
device:

# ifconfig wlan0 create wlandev rgephy0

> ifconfig wlan create rgephy0 inet 192.168.2.124 netmask 255.255.255.0
> ifconfig: must specify a parent device (wlandev) when creating a wlan device
>
> ifconfig wlan create wlandev rgephy0 inet 192.168.2.124 netmask 255.255.255.0
> 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@safeport.com
> Voice: 301-217-9220
>    Fax: 301-217-9277
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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 192.168.2.124/24

or dynamically:

# dhclient wlan0


ifconfig_wlan0="DHCP"
wlans_iwn0="wlan0"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?873752ji7x.fsf>