Fix wiphy regdom logic
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | wiphy: fix regdom change wiphy dump logicsrc/ | +54 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/1] Fix wiphy regdom logic
Below are some logs when this behavior was seen. IWD never transitions out of the ft-roaming state due to the key setting callbacks never being called. Its hard to know exactly what messages were sent/received since its coming from iwmon but netlink appears to completely lock up until a watchdog restarts the IWD service.
After the patch was applied there were zero instances of this behavior which seems to indicate the kernel is unable to handle multiple GET_WIPHY calls.
May 10 00:11:54 iwd[336880]: src/station.c:station_try_next_transition() 14, target aa:46:8d:1c:16:e6 May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_insert() Inserting work item 14498 May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_insert() Inserting work item 14499 May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_done() Work item 14497 done May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_next() Starting work item 14498 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Remain on Channel(55) May 10 00:11:54 iwd[336880]: src/ft.c:ft_send_authenticate() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Frame TX Status(60) May 10 00:11:54 kernel: wlan0: disconnect from AP aa:46:8d:1c:17:25 for new assoc to aa:46:8d:1c:16:e6 May 10 00:11:54 locus[917]: State changed to roaming May 10 00:11:54 locus[917]: Start 10000ms timeout waiting for connected/roaming May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_unicast_notify() Unicast notification Frame(59) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Cancel Remain on Channel(56) May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_done() Work item 14498 done May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_radio_work_next() Starting work item 14499 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_cqm_rssi_update() May 10 00:11:54 iwd[336880]: src/station.c:station_enter_state() Old State: connected, new state: ft-roaming May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Frame Wait Cancel(67) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Del Station(20) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Deauthenticate(39) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_deauthenticate_event() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Disconnect(48) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_disconnect_event() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification New Station(19) May 10 00:11:54 kernel: wlan0: associate with aa:46:8d:1c:16:e6 (try 1/3) May 10 00:11:54 kernel: wlan0: RX ReassocResp from aa:46:8d:1c:16:e6 (capab=0x1511 status=0 aid=7) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_reg_notify() Notification of command Reg Change(36) May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_update_reg_domain() New reg domain country code for (global) is XX May 10 00:11:54 systemd-networkd[393]: wlan0: Lost carrier May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Associate(38) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_associate_event() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_set_gtk() ifindex=14 key_idx=2 May 10 00:11:54 iwd[336880]: src/station.c:station_handshake_event() Setting keys May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_set_tk() ifindex=14 key_idx=0 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Connect(46) May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_connect_event() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_connect_event() aborting and ignore_connect_event not set, proceed May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_connect_event() expect_connect_failure not set, proceed May 10 00:11:54 iwd[336880]: src/netdev.c:parse_request_ies() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_connect_event() Request / Response IEs parsed May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_get_oci() May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/netdev.c:netdev_link_notify() event 16 on ifindex 14 May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_reg_notify() Notification of command Reg Change(36) May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_update_reg_domain() New reg domain country code for (global) is US May 10 00:11:54 iwd[336880]: src/wiphy.c:wiphy_cancel_last_dump() Canceling pending regdom wiphy dump (global) May 10 00:11:54 kernel: wlan0: associated May 10 00:11:54 kernel: ath: EEPROM regdomain: 0x8348 May 10 00:11:54 kernel: ath: EEPROM indicates we should expect a country code May 10 00:11:54 kernel: ath: doing EEPROM country->regdmn map search May 10 00:11:54 kernel: ath: country maps to regdmn code: 0x3a May 10 00:11:54 kernel: ath: Country alpha2 being used: US May 10 00:11:54 kernel: ath: Regpair used: 0x3a May 10 00:11:54 kernel: ath: regdomain 0x8348 dynamically updated by country element May 10 00:11:55 iwd[336880]: src/netdev.c:netdev_mlme_notify() MLME notification Notify CQM(64) May 10 00:11:55 iwd[336880]: src/netdev.c:netdev_cqm_event() Signal change event (above=0 signal=-76)
--- Nothing here for 10 seconds, until the watchdog triggers ---
May 10 00:12:04 locus[917]: IWD watchdog triggered (reason=state) May 10 00:12:04 iwd[336880]: Terminate May 10 00:12:04 iwd[336880]: src/netdev.c:netdev_free() Freeing netdev wlan0[14] May 10 00:12:04 iwd[336880]: src/device.c:device_free() May 10 00:12:04 iwd[336880]: src/station.c:station_free() May 10 00:12:04 iwd[336880]: src/netconfig.c:netconfig_destroy() May 10 00:12:04 iwd[336880]: src/netconfig.c:netconfig_event_handler() l_netconfig event 2 May 10 00:12:04 iwd[336880]: src/netconfig-commit.c:netconfig_commit_print_addrs() removing address: 10.193.158.118 May 10 00:12:04 iwd[336880]: src/resolve.c:resolve_systemd_revert() ifindex: 14 May 10 00:12:04 systemd[1]: Stopping Wireless service...
The iwmon logs are lengthy, but I've included the bit where the logs abruptly stop for 10 seconds until the watchdog kicks in. Prior there was no key setting or anything connection related after the connect event.
May 10 00:11:55: Extended Capabilities: len 8 May 10 00:11:55: Capability: bit 2: Extended channel switching May 10 00:11:55: Capability: bit 62: Opmode Notification May 10 00:11:55: Extended Capabilities Mask: 170 len 8 May 10 00:12:04: 04 00 00 00 00 00 00 40 .......@ May 10 00:12:04: VHT Capability Mask: 176 len 12 May 10 00:12:04: f0 1f 80 33 ff ff 00 00 ff ff 00 00 ...3........ May 10 00:12:04: MAC Address 00:0E:8E:A3:02:FE May 10 00:12:04: > Result: New Wiphy (0x03) len 36 [multi] 1683677515.942843 May 10 00:12:04: Wiphy: 0 (0x00000000) May 10 00:12:04: Wiphy Name: phy0 May 10 00:12:04: Generation: 1 (0x00000001) May 10 00:12:04: Max AP Assoc Station: 202 len 4 May 10 00:12:04: 20 00 00 00
James Prestwood (1):
wiphy: fix regdom change wiphy dump logic
src/wiphy.c | 103 +++++++++++++++++++++++++++------------------------- 1 file changed, 54 insertions(+), 49 deletions(-)
Signature · 1 line
2.25.1