You are not logged in.

#1 2023-09-04 09:04:42

sebastiancarlos
Member
Registered: 2023-09-03
Posts: 2

[ SOLVED ] iwctl: Operation failed - Unable to connect to public wifi

My home wifi works fine, though.

The public wifi is, to be fair, one of those weird ones with an HTML login screen, but I see no reason for my mobile hotspot to fail.

My machine is a MacBookPro13,3 (2016), which requires some hackery to get the wifi driver (brcmfmac) working at all, but to the best of my knowledge I followed the recommended procedure.

iwctl scan and get-networks also work fine, but this doesn't:

$ sudo iwctl station wlan0 connect <wifi-name>
Operation failed

Here are some logs for you, beautiful sages:

$ networkctl
IDX LINK  TYPE     OPERATIONAL SETUP
  1 lo    loopback carrier     unmanaged
  2 wlan0 wlan     no-carrier  configuring

2 links listed.
$ systemctl --type=service
  UNIT                                              LOAD   ACTIVE SUB     DESCRIPTION
  alsa-restore.service                              loaded active exited  Save/Restore Sound Card State
  dbus.service                                      loaded active running D-Bus System Message Bus
  getty@tty1.service                                loaded active running Getty on tty1
  kmod-static-nodes.service                         loaded active exited  Create List of Static Device Nodes
  systemd-backlight@leds:spi::kbd_backlight.service loaded active exited  Load/Save Screen Backlight Brightness of leds:spi::kbd_backlight
  systemd-journal-flush.service                     loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                          loaded active running Journal Service
  systemd-logind.service                            loaded active running User Login Management
  systemd-modules-load.service                      loaded active exited  Load Kernel Modules
  systemd-random-seed.service                       loaded active exited  Load/Save OS Random Seed
  systemd-remount-fs.service                        loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service                            loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service                loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                    loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                      loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                             loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                       loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                     loaded active exited  Permit User Sessions
  systemd-vconsole-setup.service                    loaded active exited  Virtual Console Setup
  user-runtime-dir@1000.service                     loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                                 loaded active running User Manager for UID 1000

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
21 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
$ journalctl -b -u iwd
Sep 04 10:18:21 systemd[1]: Starting Wireless service...
Sep 04 10:18:21 iwd[1254]: Wireless daemon version 2.8
Sep 04 10:18:21 systemd[1]: Started Wireless service.
Sep 04 10:18:21 iwd[1254]: station: Network configuration is disabled.
Sep 04 10:18:21 iwd[1254]: Wiphy: 0, Name: phy0
Sep 04 10:18:21 iwd[1254]:         Permanent Address: 00:90:4c:0d:f4:3e
Sep 04 10:18:21 iwd[1254]:         2.4Ghz Band:
Sep 04 10:18:21 iwd[1254]:                 Bitrates (non-HT):
Sep 04 10:18:21 iwd[1254]:                          1.0 Mbps
Sep 04 10:18:21 iwd[1254]:                          2.0 Mbps
Sep 04 10:18:21 iwd[1254]:                          5.5 Mbps
Sep 04 10:18:21 iwd[1254]:                         11.0 Mbps
Sep 04 10:18:21 iwd[1254]:                          6.0 Mbps
Sep 04 10:18:21 iwd[1254]:                          9.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         12.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         18.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         24.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         36.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         48.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         54.0 Mbps
Sep 04 10:18:21 iwd[1254]:                 HT Capabilities:
Sep 04 10:18:21 iwd[1254]:                         HT40
Sep 04 10:18:21 iwd[1254]:                         Short GI for 20Mhz
Sep 04 10:18:21 iwd[1254]:                 HT RX MCS indexes:
Sep 04 10:18:21 iwd[1254]:                         0-15
Sep 04 10:18:21 iwd[1254]:         5Ghz Band:
Sep 04 10:18:21 iwd[1254]:                 Bitrates (non-HT):
Sep 04 10:18:21 iwd[1254]:                          6.0 Mbps
Sep 04 10:18:21 iwd[1254]:                          9.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         12.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         18.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         24.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         36.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         48.0 Mbps
Sep 04 10:18:21 iwd[1254]:                         54.0 Mbps
Sep 04 10:18:21 iwd[1254]:                 HT Capabilities:
Sep 04 10:18:21 iwd[1254]:                         HT40
Sep 04 10:18:21 iwd[1254]:                         Short GI for 20Mhz
Sep 04 10:18:21 iwd[1254]:                         Short GI for 40Mhz
Sep 04 10:18:21 iwd[1254]:                 HT RX MCS indexes:
Sep 04 10:18:21 iwd[1254]:                         0-15
Sep 04 10:18:21 iwd[1254]:                 VHT Capabilities:
Sep 04 10:18:21 iwd[1254]:                         Short GI for 80Mhz
Sep 04 10:18:21 iwd[1254]:                         Max RX MCS: 0-9 for NSS: 2
Sep 04 10:18:21 iwd[1254]:                         Max TX MCS: 0-9 for NSS: 2
Sep 04 10:18:21 iwd[1254]:         Ciphers: BIP-CMAC-128 CCMP-128 TKIP
Sep 04 10:18:21 iwd[1254]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
Sep 04 10:18:21 iwd[1254]:         Driver Flags: DefaultInterface
Sep 04 10:18:21 iwd[1254]: Wiphy phy0 will only use the default interface
Sep 04 10:18:21 iwd[1254]: Could not register frame watch type 00b0: -22
Sep 04 10:18:26 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:26 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:26 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:26 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:26 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:29 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:29 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:30 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:30 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:34 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:34 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:38 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:38 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:53 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:53 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:18:53 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:19:17 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:19:17 iwd[1254]: wiphy_estimate_data_rate() failed
Sep 04 10:19:17 iwd[1254]: wiphy_estimate_data_rate() failed
$ dmesg | grep brcmfmac
[    6.161713] usbcore: registered new interface driver brcmfmac
[    6.272164] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43602-pcie for chip BCM43602/2
[    6.273436] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.Apple Inc.-MacBookPro13,3.bin failed with error -2
[    6.291492] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.clm_blob failed with error -2
[    6.291661] brcmfmac 0000:03:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txcap_blob failed with error -2
[    6.702012] brcmfmac_wcc: brcmf_wcc_attach: executing
[    6.709569] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    6.709576] brcmfmac: brcmf_c_process_txcap_blob: no txcap_blob available (err=-2)
[    6.710325] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43602/2 wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c

Last edited by sebastiancarlos (2023-09-05 07:58:04)

Offline

#2 2023-09-04 12:43:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,103

Re: [ SOLVED ] iwctl: Operation failed - Unable to connect to public wifi

The beautiful  sages will require a complete system jouranal, not some random greps (the brcmfmac module alone depends on some other modules which might throw an error here)

On a limb: is your home wifi 2.4Ghz and the public AP and your mobile HS 5GHz?
Did you btw. try https://archlinux.org/packages/extra/x8 … oadcom-wl/ ?

Offline

#3 2023-09-05 07:56:59

sebastiancarlos
Member
Registered: 2023-09-03
Posts: 2

Re: [ SOLVED ] iwctl: Operation failed - Unable to connect to public wifi

The problem is fixed now, thanks!

seth wrote:

On a limb: is your home wifi 2.4Ghz and the public AP and your mobile HS 5GHz?

This limb proved to be accurate, as expected from the sages. It was the contrary actually, I found that all 5GHz worked but 2.4GHz didn't. By following the advice here I got everything to work.

For the record, broadcom-wl didn't work.

Last edited by sebastiancarlos (2023-09-05 07:57:20)

Offline

Board footer

Powered by FluxBB