look this thread
https://forums.freebsd.org/threads/i-cant-find-any-wlan0-interface-with-ifconfig.73899
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227044
https://www.intel.com/content/www/u...5511/network-and-i-o/wireless-networking.html
you need checkout svn code from svn.freebsd.org like this:
svn checkout https://svn.freebsd.org/base/stable/12/sys/dev/iwm/
and copy it to /usr/src/sys/dev/iwm (overwrite it)
you need download this Makefile to /usr/src/sys/modules/iwm/ (overwrite orgrinal Makefile file)
https://svnweb.freebsd.org/base/stable/12/sys/modules/iwm/Makefile?view=co
you need download intel wireless adapter firmware from following link.
for ac9560 download this https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-9000-pu-b0-jf-b0-34.618819.0.tgz
for ac9260 download this https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-9260-th-b0-jf-b0-34.618819.0.tgz
https://www.intel.com/content/www/u...5511/network-and-i-o/wireless-networking.html
Download: [Intel® Wireless-AC 9260](iwlwifi-9260-th-b0-jf-b0-34.618819.0.tgz]
	
	
	
		
add these lines to /usr/src/sys/conf/files at 2015 line (below iwm8265fw.fwo )
for AC9260
	
	
	
		
For AC9560
	
	
	
		
change 'iwm9000_cfg' to 'iwm_9560_cfg' in /usr/src/sys/dev/iwm/if_iwm_config.h
orginal content is "extern const struct iwm_cfg iwm9000_cfg;"
	
	
	
		
download Makefile from this link
For ac9260 https://svnweb.freebsd.org/base/sta...fw/iwm9260fw/Makefile?revision=354201&view=co and copy it to /usr/src/sys/modules/iwmfw/iwm9260fw/
for ac9560 https://svnweb.freebsd.org/base/sta...fw/iwm9000fw/Makefile?revision=354201&view=co and copy it to /usr/src/sys/modules/iwmfw/iwm9000fw/
install firmware for ac9260
	
	
	
		
install firmware for ac9560
	
	
	
		
install wpa_supplicant
	
	
	
		
configure your wpa_supplicant
your /etc/wpa_supplicant.conf should like this.
	
	
	
		
if you really don't know how to setup it, you could use wifimgr to do it in xwindow
install wifimgr
#pkg install wifimgr
add option in /etc/rc.conf
	
	
	
		
add auto load kernel module in loader.conf
	
	
	
		
restart your laptop now , you will find wlan0 interface with ifconfig
if you load module successfully , you could find some message with dmesg like this
iwm0: <Intel(R) Dual Band Wireless AC 9260> mem 0xf0800000-0xf0803fff at device 0.0 on pci2
iwm0: hw rev 0x320, fw ver 34.0.0, address xx:xx:xx:xx:xx:xx
note:
1.if you are running in securelevel , you can't load kernel by kldload , you need load it in loader.conf
2.sometime , the directory is not exist in /usr/src/sys so you need to make it with mkdir by hand
				
			https://forums.freebsd.org/threads/i-cant-find-any-wlan0-interface-with-ifconfig.73899
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227044
https://www.intel.com/content/www/u...5511/network-and-i-o/wireless-networking.html
you need checkout svn code from svn.freebsd.org like this:
svn checkout https://svn.freebsd.org/base/stable/12/sys/dev/iwm/
and copy it to /usr/src/sys/dev/iwm (overwrite it)
you need download this Makefile to /usr/src/sys/modules/iwm/ (overwrite orgrinal Makefile file)
https://svnweb.freebsd.org/base/stable/12/sys/modules/iwm/Makefile?view=co
you need download intel wireless adapter firmware from following link.
for ac9560 download this https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-9000-pu-b0-jf-b0-34.618819.0.tgz
for ac9260 download this https://wireless.wiki.kernel.org/_media/en/users/drivers/iwlwifi-9260-th-b0-jf-b0-34.618819.0.tgz
https://www.intel.com/content/www/u...5511/network-and-i-o/wireless-networking.html
Download: [Intel® Wireless-AC 9260](iwlwifi-9260-th-b0-jf-b0-34.618819.0.tgz]
		Code:
	
	# tar -xf iwlwifi-*.tgz
# cd ./iwlwifi-9xxx*/
For ac9260   # b64encode -o iwm-9260-34.fw.uu iwlwifi-9260-*.ucode iwm-9260-43.fw.uu
# mv iwm-9260-43.fw.uu /usr/src/sys/contrib/dev/iwm/
==> /usr/src/sys/contrib/dev/iwm/iwm-9260-34.fw.uu
For ac9560  # b64encode -o iwm-9000-34.fw.uu iwlwifi-9000-*.ucode iwm-9000-43.fw.uu
# mv iwm-9000-43.fw.uu /usr/src/sys/contrib/dev/iwm/
==> /usr/src/sys/contrib/dev/iwm/iwm-9000-43.fw.uuadd these lines to /usr/src/sys/conf/files at 2015 line (below iwm8265fw.fwo )
for AC9260
		Code:
	
	iwm9260.fw                      optional iwm9260fw | iwmfw              \
        dependency      "$S/contrib/dev/iwm/iwm-9260-43.fw.uu" \
        compile-with    "${NORMAL_FW}"                                  \
        no-obj no-implicit-rule                                         \
        clean           "iwm9260.fw"
iwm9260fw.c                     optional iwm9260fw | iwmfw              \
        compile-with    "${AWK} -f $S/tools/fw_stub.awk iwm9260.fw:iwm9260fw -miwm9260fw -c${.TARGET}" \
        no-implicit-rule before-depend local                            \
        clean           "iwm9260fw.c"
iwm9260fw.fwo                   optional iwm9260fw | iwmfw              \
        dependency      "iwm9260.fw"                                    \
        compile-with    "${NORMAL_FWO}"                                 \
        no-implicit-rule                                                \
        clean           "iwm9260fw.fwo"For AC9560
		Code:
	
	iwm9000.fw                      optional iwm9000fw | iwmfw              \
        dependency      "$S/contrib/dev/iwm/iwm-9000-43.fw.uu" \
        compile-with    "${NORMAL_FW}"                                  \
        no-obj no-implicit-rule                                         \
        clean           "iwm9000.fw"
iwm9000fw.c                     optional iwm9000fw | iwmfw              \
        compile-with    "${AWK} -f $S/tools/fw_stub.awk iwm9000.fw:iwm9000fw -miwm9000fw -c${.TARGET}" \
        no-implicit-rule before-depend local                            \
        clean           "iwm9000fw.c"
iwm9000fw.fwo                   optional iwm9000fw | iwmfw              \
        dependency      "iwm9000.fw"                                    \
        compile-with    "${NORMAL_FWO}"                                 \
        no-implicit-rule                                                \
        clean           "iwm9000fw.fwo"change 'iwm9000_cfg' to 'iwm_9560_cfg' in /usr/src/sys/dev/iwm/if_iwm_config.h
orginal content is "extern const struct iwm_cfg iwm9000_cfg;"
		Code:
	
	extern const struct iwm_cfg iwm9560_cfg;download Makefile from this link
For ac9260 https://svnweb.freebsd.org/base/sta...fw/iwm9260fw/Makefile?revision=354201&view=co and copy it to /usr/src/sys/modules/iwmfw/iwm9260fw/
for ac9560 https://svnweb.freebsd.org/base/sta...fw/iwm9000fw/Makefile?revision=354201&view=co and copy it to /usr/src/sys/modules/iwmfw/iwm9000fw/
install firmware for ac9260
		Code:
	
	# cd /usr/src/sys/modules/iwmfw/iwm9260fw
# make clean all install
==> /boot/modules/iwm9260fw.ko
# cd /usr/src/sys/modules/iwm
# make clean all install
==> /boot/modules/if_iwm.ko
# cd /usr/src/sys/modules/iwm
# make clean all install
# kldload /boot/modules/iwm9260fw.ko
# kldload /boot/modules/if_iwm.koinstall firmware for ac9560
		Code:
	
	#mkdir /usr/src/sys/modules/iwmfw/iwm9000fw
# cd /usr/src/sys/modules/iwmfw/iwm9000fw
# make clean all install
==> /boot/modules/iwm9000fw.ko
# cd /usr/src/sys/modules/iwm
# make clean all install
==> /boot/modules/iwm.ko
# kldload /boot/modules/iwm9000fw.ko
# kldload /boot/modules/if_iwm.koinstall wpa_supplicant
		Code:
	
	#pkg install wpa_supplicantconfigure your wpa_supplicant
your /etc/wpa_supplicant.conf should like this.
		Code:
	
	network={
    ssid="YourWifiRouter SSID"
    bssid=xx:xx:xx:xx:xx:xx  #your wifirouter bssid
    key_mgmt=WPA-PSK
    proto=RSN
    psk="password"
}install wifimgr
#pkg install wifimgr
add option in /etc/rc.conf
		Code:
	
	wpa_supplicant_program="/usr/local/sbin/wpa_supplicant"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA DHCP"
		Code:
	
	if_iwm_load="YES"
iwm9260fw_load="YES"  ### for ac9260
iwm9000fw_load="YES" ### for ac9560
legal.intel_iwi.license_ack=1
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"restart your laptop now , you will find wlan0 interface with ifconfig
if you load module successfully , you could find some message with dmesg like this
iwm0: <Intel(R) Dual Band Wireless AC 9260> mem 0xf0800000-0xf0803fff at device 0.0 on pci2
iwm0: hw rev 0x320, fw ver 34.0.0, address xx:xx:xx:xx:xx:xx
note:
1.if you are running in securelevel , you can't load kernel by kldload , you need load it in loader.conf
2.sometime , the directory is not exist in /usr/src/sys so you need to make it with mkdir by hand
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
			     
 
		