public inbox for iwd@lists.linux.dev
 help / color / mirror / Atom feed
* disconnects when in AP mode
@ 2023-12-28 18:19 KeithG
  2023-12-28 18:42 ` KeithG
  0 siblings, 1 reply; 6+ messages in thread
From: KeithG @ 2023-12-28 18:19 UTC (permalink / raw)
  To: iwd

Group,

I finally gave up on getting connman to manage scanning when iwd is in
AP mode. What I have done is listen to James who posted this a long
time ago and I just finally figured out what he was saying.

I am doing what is outlined here:
https://lore.kernel.org/linux-wireless/87k0dhdg0d.fsf@bang-olufsen.dk/

I am running this on RPis all with the brcmfmac adapters. I can get it
all working, but when connected to the RPi on its advertised AP, I can
get a connection for a bit then it disconnects, requiring a reconnect.
I am running a freshly built iwd version 2.11 with ell 0.61 on RPiOS
fully up to date on Bookworm

I get tons of this in the log: "wiphy_estimate_data_rate() failed" and
a few others but it does not seem like this is what triggers it to
disconnect. I have not been able to pinpoint anything in the log where
it disconnects.

Any help appreciated.

# uname -a
Linux runeaudio 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian
1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

this is what shows at bootup
Dec 28 11:50:45 runeaudio kernel: brcmfmac: F1 signature read
@0x18000000=0x15264345
Dec 28 11:50:45 runeaudio kernel: brcmfmac: brcmf_fw_alloc_request:
using brcm/brcmfmac43455-sdio for chip BCM4345/6
Dec 28 11:50:45 runeaudio kernel: usbcore: registered new interface
driver brcmfmac
Dec 28 11:50:45 runeaudio kernel: Bluetooth: hci0: BCM4345C0
'brcm/BCM4345C0.raspberrypi,3-model-b-plus.hcd' Patch
Dec 28 11:50:45 runeaudio kernel: brcmfmac: brcmf_c_preinit_dcmds:
Firmware: BCM4345/6 wl0: Nov  1 2021 00:37:25 version 7.45.241
(1a2f2fa CY) FWID 01-703fd60
Dec 28 11:50:48 runeaudio kernel: brcmfmac:
brcmf_cfg80211_set_power_mgmt: power save enabled
Dec 28 11:50:55 runeaudio kernel: brcmfmac:
brcmf_cfg80211_set_power_mgmt: power save disabled
Dec 28 11:51:30 runeaudio kernel: brcmfmac:
brcmf_cfg80211_set_power_mgmt: power save disabled
Dec 28 11:51:31 runeaudio kernel: brcmfmac:
brcmf_cfg80211_set_power_mgmt: power save disabled
Dec 28 11:51:40 runeaudio kernel: ieee80211 phy0: brcmf_escan_timeout:
timer expired

I get this in the log:
Dec 28 11:51:30 runeaudio iwd[1306]: No Diffie-Hellman support found,
WPS will not be available
Dec 28 11:51:30 runeaudio iwd[1306]: The following options are missing
in the kernel:
Dec 28 11:51:30 runeaudio iwd[1306]:         CONFIG_KEY_DH_OPERATIONS
Dec 28 11:51:30 runeaudio iwd[1306]: Wireless daemon version 2.11
Dec 28 11:51:30 runeaudio iwd[1306]: Loaded configuration from
/etc/iwd/main.conf
Dec 28 11:51:30 runeaudio systemd[1]: Started iwd.service - Wireless service.
Dec 28 11:51:30 runeaudio iwd[1306]: Wiphy: 0, Name: phy0
Dec 28 11:51:30 runeaudio iwd[1306]:         Permanent Address:
b8:27:eb:52:cc:d0
Dec 28 11:51:30 runeaudio iwd[1306]:         2.4GHz Band:
Dec 28 11:51:30 runeaudio iwd[1306]:                 Bitrates (non-HT):
Dec 28 11:51:30 runeaudio iwd[1306]:                          1.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                          2.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                          5.5 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         11.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                          6.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                          9.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         12.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         18.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         24.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         36.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         48.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         54.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                 HT Capabilities:
Dec 28 11:51:30 runeaudio iwd[1306]:                         HT40
Dec 28 11:51:30 runeaudio iwd[1306]:                         Short GI for 20Mhz
Dec 28 11:51:30 runeaudio iwd[1306]:                 HT RX MCS indexes:
Dec 28 11:51:30 runeaudio iwd[1306]:                         0-7
Dec 28 11:51:30 runeaudio iwd[1306]:         5GHz Band:
Dec 28 11:51:30 runeaudio iwd[1306]:                 Bitrates (non-HT):
Dec 28 11:51:30 runeaudio iwd[1306]:                          6.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                          9.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         12.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         18.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         24.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         36.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         48.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                         54.0 Mbps
Dec 28 11:51:30 runeaudio iwd[1306]:                 HT Capabilities:
Dec 28 11:51:30 runeaudio iwd[1306]:                         HT40
Dec 28 11:51:30 runeaudio iwd[1306]:                         Short GI for 20Mhz
Dec 28 11:51:30 runeaudio iwd[1306]:                         Short GI for 40Mhz
Dec 28 11:51:30 runeaudio iwd[1306]:                 HT RX MCS indexes:
Dec 28 11:51:30 runeaudio iwd[1306]:                         0-7
Dec 28 11:51:30 runeaudio iwd[1306]:                 VHT Capabilities:
Dec 28 11:51:30 runeaudio iwd[1306]:                         Short GI for 80Mhz
Dec 28 11:51:30 runeaudio iwd[1306]:                         Max RX
MCS: 0-9 for NSS: 1
Dec 28 11:51:30 runeaudio iwd[1306]:                         Max TX
MCS: 0-9 for NSS: 1
Dec 28 11:51:30 runeaudio iwd[1306]:         Ciphers: BIP-CMAC-128 CCMP-128 TKIP
Dec 28 11:51:30 runeaudio iwd[1306]:         Supported iftypes: ad-hoc
station ap p2p-client p2p-go p2p-device
Dec 28 11:51:30 runeaudio iwd[1306]:         Driver Flags: DefaultInterface
Dec 28 11:51:30 runeaudio iwd[1306]: Wiphy phy0 will only use the
default interface
Dec 28 11:51:30 runeaudio iwd[1306]: Could not register frame watch
type 00b0: -22
Dec 28 11:51:46 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:51:56 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:52:22 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:52:22 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:52:29 runeaudio iwd[1306]: KEY_SEQ not returned in GET_KEY reply
Dec 28 11:52:29 runeaudio iwd[1306]: 4-Way handshake failed for
ifindex: 4, reason: 15
Dec 28 11:52:39 runeaudio iwd[1306]: KEY_SEQ not returned in GET_KEY reply
Dec 28 11:52:40 runeaudio iwd[1306]: 4-Way handshake failed for
ifindex: 4, reason: 15
Dec 28 11:52:49 runeaudio iwd[1306]: KEY_SEQ not returned in GET_KEY reply
Dec 28 11:52:49 runeaudio iwd[1306]: 4-Way handshake failed for
ifindex: 4, reason: 15
Dec 28 11:53:07 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:53:35 runeaudio iwd[1306]: KEY_SEQ not returned in GET_KEY reply
Dec 28 11:54:33 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed
Dec 28 11:54:33 runeaudio iwd[1306]: wiphy_estimate_data_rate() failed

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-29 22:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-28 18:19 disconnects when in AP mode KeithG
2023-12-28 18:42 ` KeithG
2023-12-29 18:53   ` KeithG
2023-12-29 22:16     ` James Prestwood
2023-12-29 22:17     ` KeithG
2023-12-29 22:23       ` James Prestwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox