Bug 283436 - iwm0: cannot connect to local wifi
Summary: iwm0: cannot connect to local wifi
Status: Closed Works As Intended
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 14.2-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-20 13:44 UTC by Martin Filla
Modified: 2024-12-20 20:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Filla 2024-12-20 13:44:17 UTC
hi,
i have a problem with connecting to local wifi. I have wlan0 (iwm).
When i do hotspot from mobile with disable security, wlan0 connects it. 
I install also iwmbt-firmware but without the result the same error. 
I have firmware on disk but he cannot load.


em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=4e524bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
	ether 68:f7:28:61:fc:23
	media: Ethernet autoselect
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
	options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
	inet 127.0.0.1 netmask 0xff000000
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
	groups: lo
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=0
	ether e8:b1:fc:95:42:7d
	groups: wlan
	ssid "" channel 1 (2412 MHz 11b)
	regdomain FCC country US authmode OPEN privacy OFF txpower 30
	bmiss 10 scanvalid 60 wme bintval 0
	parent interface: iwm0
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=80000<LINKSTATE>
	ether ff:ff:ff:ff:ff:ff
	media: Ethernet autoselect
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

maxfx@hades2 ~> ifconfig wlan0 scan
SSID/MESH ID                      BSSID              CHAN RATE    S:N     INT CAPS
WIFI-ASUS                         00:e0:4c:99:55:c3    6   54M  -63:-96   100 EP   HTCAP WPA RSN WME WPS

maxfx@hades2 ~> sysctl -a | grep iwm
<118>Autoloading module: if_iwm
iwm0: <Intel(R) Dual Band Wireless AC 7260> mem 0xf0400000-0xf0401fff irq 17 at device 0.0 on pci2
iwm0: hw rev 0x140, fw ver 17.352738.0, address e8:b1:fc:95:42:7d
<118>	parent interface: iwm0
<118>iwmbtfw: iwmbt_fw_read: open: /usr/local/share/iwmbt-firmware/ibt-hw-37.7.bseq: No such file or directory
<118>iwmbtfw: iwmbt_hci_command: libusb_interrupt_transfer() failed: err=Other error
<118>iwmbtfw: main: Firmware download failed!
<118>iwmbtfw: iwmbt_hci_command: libusb_control_transfer() failed: err=No device
<118>iwmbtfw: main: Firmware download failed!
<118>Autoloading module: if_iwm
iwm0: <Intel(R) Dual Band Wireless AC 7260> mem 0xf0400000-0xf0401fff irq 17 at device 0.0 on pci2
iwm0: hw rev 0x140, fw ver 17.352738.0, address e8:b1:fc:95:42:7d
<118>	parent interface: iwm0
net.wlan.0.%parent: iwm0
net.wlan.devices: iwm0
irq56: iwm0:115 @cpu0(domain0): 165
dev.iwm.0.debug: 0
dev.iwm.0.%iommu: rid=0x300
dev.iwm.0.%parent: pci2
dev.iwm.0.%pnpinfo: vendor=0x8086 device=0x08b2 subvendor=0x8086 subdevice=0xc270 class=0x028000
dev.iwm.0.%location: slot=0 function=0 dbsf=pci0:3:0:0
dev.iwm.0.%driver: iwm
dev.iwm.0.%desc: Intel(R) Dual Band Wireless AC 7260
dev.iwm.%parent: 


Dec 20 13:43:21 hades2 wpa_supplicant[344]: wlan0: No network configuration found for the current AP
Dec 20 13:43:21 hades2 kernel: wlan0: link state changed to UP
Dec 20 13:43:21 hades2 wpa_supplicant[344]: wlan0: CTRL-EVENT-DISCONNECTED bssid=9e:6a:8e:a5:a0:2a reason=3 locally_generated=1
Dec 20 13:43:21 hades2 wpa_supplicant[344]: wlan0: Added BSSID 9e:6a:8e:a5:a0:2a into ignore list, ignoring for 10 seconds
Dec 20 13:43:21 hades2 wpa_supplicant[344]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Dec 20 13:43:21 hades2 kernel: wlan0: link state changed to DOWN
Dec 20 13:43:23 hades2 wpa_supplicant[344]: wlan0: Removed BSSID 9e:6a:8e:a5:a0:2a from ignore list (clear)
Dec 20 13:43:33 hades2 root[1769]: /etc/rc.d/dhclient: WARNING: failed to start dhclient
Dec 20 13:46:21 hades2 kernel: lo0: link state changed to DOWN
Dec 20 13:46:22 hades2 wpa_supplicant[344]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Dec 20 13:46:22 hades2 syslogd: last message repeated 1 times
Dec 20 13:46:22 hades2 wpa_supplicant[344]: wlan0: CTRL-EVENT-TERMINATING 
Dec 20 13:46:22 hades2 kernel: wlan0: Ethernet address: e8:b1:fc:95:42:7d
Dec 20 13:46:22 hades2 kernel: lo0: link state changed to UP
Dec 20 13:46:22 hades2 wpa_supplicant[2115]: Successfully initialized wpa_supplicant
Dec 20 13:46:22 hades2 wpa_supplicant[2115]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument

ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1

network={
        ssid="WIFI-ASUS"
        password="********"
}
Comment 1 Martin Filla 2024-12-20 14:32:09 UTC
firmware looks like loaded

<118>Autoloading module: if_iwm
iwm0: <Intel(R) Dual Band Wireless AC 7260> mem 0xf0400000-0xf0401fff irq 17 at device 0.0 on pci2
iwm0: hw rev 0x140, fw ver 17.352738.0, address e8:b1:fc:95:42:7d
<118>	parent interface: iwm0
net.wlan.0.%parent: iwm0
net.wlan.devices: iwm0
irq56: iwm0:115 @cpu0(domain0): 10941
dev.iwm.0.debug: 0
dev.iwm.0.%iommu: rid=0x300
dev.iwm.0.%parent: pci2
dev.iwm.0.%pnpinfo: vendor=0x8086 device=0x08b2 subvendor=0x8086 subdevice=0xc270 class=0x028000
dev.iwm.0.%location: slot=0 function=0 dbsf=pci0:3:0:0
dev.iwm.0.%driver: iwm
dev.iwm.0.%desc: Intel(R) Dual Band Wireless AC 7260
dev.iwm.%parent:
Comment 2 Oleksandr Kryvulia 2024-12-20 17:29:21 UTC
Please add to /boot/loader.conf and reboot:

if_iwm_load="YES"
iwm7260fw_load="YES"

comms/iwmbt-firmware is for bluetooth and not for wifi.
Comment 3 Martin Filla 2024-12-20 17:48:17 UTC
(In reply to Oleksandr Kryvulia from comment #2)

Thank you for the idea but I have the same problem
Comment 4 Oleksandr Kryvulia 2024-12-20 18:19:47 UTC
Have you tried an iwlwifi(4) driver? Which FreeBSD version are you using?
Comment 5 Martin Filla 2024-12-20 19:02:15 UTC
(In reply to Oleksandr Kryvulia from comment #4)
No but I can to try iwlwifi(4). I use FreeBSD 14.2-RELEASE
Comment 6 Bjoern A. Zeeb freebsd_committer freebsd_triage 2024-12-20 19:30:10 UTC
(In reply to Martin Filla from comment #5)


Dec 20 13:43:21 hades2 wpa_supplicant[344]: wlan0: No network configuration found for the current AP

Are you sure the ssid is wpa_supplicant.conf is correct and you reloaded the config file (or restarted the supplicant) after you put it in?

Make sure there are no wide characters there by accident from pasting on a terminal which may not be immediately visible.

I'd probably also add a
proto=WPA2
line or maybe just try with a file like this:

=====
ctrl_interface=/var/run/wpa_supplicant

network={
        ssid="WIFI-ASUS"
        proto=WPA2
        psk="enter psk here"
}
=====

and see what happens.
Comment 7 Martin Filla 2024-12-20 20:21:04 UTC
(In reply to Bjoern A. Zeeb from comment #6)
Thank you Bjoern. It works. Problem was in "password".