Re: rtw88: lkpi_iv_key_set: SET_KEY for CCMP returned unexpected key flags: 0x0021 & ~0x004d = 20<SW_MGMT_TX>

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sat, 26 Apr 2025 18:37:53 UTC
On Fri, 25 Apr 2025, Oleg Nauman wrote:

> I am observing
>
> Apr 25 22:38:44 wpa_supplicant[361]: wlan2: RSN: Group rekeying
> completed with a8:5e:45:47:0d:b8 [GTK=CCMP]
> Apr 25 22:38:44 kernel: [49747] rtw880: lkpi_iv_key_set: sta
> a8:5e:45:47:0d:b8 found with key information
> Apr 25 22:38:44 kernel: [49747] rtw880: lkpi_iv_key_set: SET_KEY for
> CCMP returned unexpected key flags:  0x0021 & ~0x004d = 20<SW_MGMT_TX>
>
> every time the wpa_suppicant performs group rekeying
> Access point is the ASUS RT-AC1200G+ wireless router
> Not sure what causes such type of warning ( wrong access point setup?
> ) or it is debug messages so nothing to worry about.

That's because I added the warnings to SET_KEY.  In Linux-land set-key
can return flags for the stack to work accordingly.  net80211 works
differently.  So I wanted to know if there are flags I didn't catch.

But SW_MGMT_TX is not supported on FreeBSD and should not show up;
seems rtw88 just unconditionally returns it.  I'll quiten this sometime
next week.

Thanks for reporting!

/bz

-- 
Bjoern A. Zeeb                                                     r15:7