nl80211: kernel reports: key addition failed

roland at treslong.com roland at treslong.com
Fri Jul 1 13:16:19 PDT 2022


Trying to make Fast Transfer work I observe an issue when associating the STA to the AP and the STA trying to set the new key resulting in the following log:

nl80211: Authenticate (ifindex=4)
  * bssid=13:58:c0:34:61:c2
  * freq=5500
  * SSID=Treslong
  * IEs - hexdump(len=0): [NULL]
  * Auth Type 2
  * Local state change only
nl80211: sending completed
nl80211: Authentication request send successfully
FT: Installing PTK to the driver.
wpa_driver_nl80211_set_key: ifindex=4 (wlx94a67e6e32ef) alg=0 addr=0xfcc63c key_idx=0 set_tx=0 seq_len=0 key_len=0 key_flag=0x20
nl80211: DEL_KEY
   addr=13:58:c0:34:61:c2
   pairwise key
nl80211: sending completed
wpa_driver_nl80211_set_key: ifindex=4 (wlx94a67e6e32ef) alg=3 addr=0xfcc63c key_idx=0 set_tx=1 seq_len=6 key_len=16 key_flag=0x2c
nl80211: NEW_KEY
nl80211: KEY_DATA - hexdump(len=16): [REMOVED]
nl80211: KEY_SEQ - hexdump(len=6): 00 00 00 00 00 00
   addr=13:58:c0:34:61:c2
   pairwise key
nl80211: sending completed
nl80211: kernel reports: key addition failed
nl80211: set_key failed; err=-2 No such file or directory
FT: Failed to set PTK to the driver
FT: Failed to set PTK prior to association - try again after reassociation

The weird element being that this doesn’t always happen but the debug log is not helping in identifying the difference.

I’ve seen multiple mentions of this issue or similar issues related to key additions  but never seen a real solution.

Running on a RPI3 (Bullseye), up to date hostapd/wpa_supplement recent up to this week and an additional Netgear WiFi A6210 adapter. (to be clear, the issues happens on the Netgear, the RPI internal WiFI adapter is not involved)

Any hint how to solve this.

Thnx




More information about the Hostap mailing list